CloneSet821


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
22230.994statement_sequence[9]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
122196
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddUnimplementedConstructorsOperation.java
222170
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddUnimplementedMethodsOperation.java
Clone Instance
1
Line Count
22
Source Line
196
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddUnimplementedConstructorsOperation.java

                        ImportRewrite importRewrite = StubUtility.createImportRewrite(fASTRoot, true);

                        ITypeBinding currTypeBinding = fType;
                        ListRewrite memberRewriter = null;

                        ASTNode node = fASTRoot.findDeclaringNode(currTypeBinding);
                        if (node instanceof AnonymousClassDeclaration) {
                                memberRewriter = astRewrite.getListRewrite(node, AnonymousClassDeclaration.BODY_DECLARATIONS_PROPERTY);
                        }
                        else   if (node instanceof AbstractTypeDeclaration) {
                                ChildListPropertyDescriptor property = ((AbstractTypeDeclaration) node).getBodyDeclarationsProperty();
                                memberRewriter = astRewrite.getListRewrite(node, property);
                               }
                               else {
                                throw new IllegalArgumentException();
                                // not possible, we checked this in the constructor
                               }
                        final CodeGenerationSettings settings = JavaPreferencesSettings.getCodeGenerationSettings(cu.getJavaProject());
                        settings.createComments = fCreateComments;
                        ASTNode insertion = getNodeToInsertBefore(memberRewriter);

                        IMethodBinding[] toImplement = fConstructorsToImplement;


Clone Instance
2
Line Count
22
Source Line
170
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddUnimplementedMethodsOperation.java

                        ImportRewrite importRewrite = StubUtility.createImportRewrite(fASTRoot, true);

                        ITypeBinding currTypeBinding = fType;
                        ListRewrite memberRewriter = null;

                        ASTNode node = fASTRoot.findDeclaringNode(currTypeBinding);
                        if (node instanceof AnonymousClassDeclaration) {
                                memberRewriter = astRewrite.getListRewrite(node, AnonymousClassDeclaration.BODY_DECLARATIONS_PROPERTY);
                        }
                        else   if (node instanceof AbstractTypeDeclaration) {
                                ChildListPropertyDescriptor property = ((AbstractTypeDeclaration) node).getBodyDeclarationsProperty();
                                memberRewriter = astRewrite.getListRewrite(node, property);
                               }
                               else {
                                throw new IllegalArgumentException();
                                // not possible, we checked this in the constructor
                               }
                        final CodeGenerationSettings settings = JavaPreferencesSettings.getCodeGenerationSettings(cu.getJavaProject());
                        settings.createComments = fDoCreateComments;
                        ASTNode insertion = getNodeToInsertBefore(memberRewriter);

                        IMethodBinding[] methodsToImplement = fMethodsToImplement;


Clone AbstractionParameter Count: 3Parameter Bindings

ImportRewrite importRewrite = StubUtility.createImportRewrite(fASTRoot, true);
ITypeBinding currTypeBinding = fType;
ListRewrite memberRewriter = null;
ASTNode node = fASTRoot.findDeclaringNode(currTypeBinding);
if (node instanceof AnonymousClassDeclaration) {
  memberRewriter = astRewrite.getListRewrite(node, AnonymousClassDeclaration.BODY_DECLARATIONS_PROPERTY);
}
else
  if (node instanceof AbstractTypeDeclaration) {
    ChildListPropertyDescriptor property = ((AbstractTypeDeclaration) node).getBodyDeclarationsProperty();
    memberRewriter = astRewrite.getListRewrite(node, property);
  }
  else {
    throw new IllegalArgumentException();
  // not possible, we checked this in the constructor
  }
final CodeGenerationSettings settings = JavaPreferencesSettings.getCodeGenerationSettings(cu.getJavaProject());
settings.createComments = [[#variable5ef6db80]];
ASTNode insertion = getNodeToInsertBefore(memberRewriter);
IMethodBinding[]  [[#variable5ef6dba0]]= [[#variable98759440]];
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5ef6db80]]
fCreateComments 
12[[#5ef6db80]]
fDoCreateComments 
21[[#5ef6dba0]]
toImplement 
22[[#5ef6dba0]]
methodsToImplement 
31[[#98759440]]
fConstructorsToImplement 
32[[#98759440]]
fMethodsToImplement