CloneSet1010


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

                if (astRoot == null || !(astRoot.getJavaElement() instanceof ICompilationUnit)) {
                        throw new IllegalArgumentException("AST must not be null and has to be created from a ICompilationUnit"); //$NON-NLS-1$
                }
                if (type == null) {
                        throw new IllegalArgumentException("The type must not be null"); //$NON-NLS-1$
                }
                ASTNode node = astRoot.findDeclaringNode(type);
                if ( !(node instanceof AnonymousClassDeclaration || node instanceof AbstractTypeDeclaration)) {
                        throw new IllegalArgumentException("type has to map to a type declaration in the AST"); //$NON-NLS-1$
                }

                fType = type;
                fInsertPos = insertPos;
                fASTRoot = astRoot;
                fConstructorsToImplement = constructorsToImplement;
                fSave = save;
                fApply = apply;
                fImports = imports;

                fCreateComments = StubUtility.doAddComments(astRoot.getJavaElement().getJavaProject());


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

                if (astRoot == null || !(astRoot.getJavaElement() instanceof ICompilationUnit)) {
                        throw new IllegalArgumentException("AST must not be null and has to be created from a ICompilationUnit"); //$NON-NLS-1$
                }
                if (type == null) {
                        throw new IllegalArgumentException("The type must not be null"); //$NON-NLS-1$
                }
                ASTNode node = astRoot.findDeclaringNode(type);
                if ( !(node instanceof AnonymousClassDeclaration || node instanceof AbstractTypeDeclaration)) {
                        throw new IllegalArgumentException("type has to map to a type declaration in the AST"); //$NON-NLS-1$
                }

                fType = type;
                fInsertPos = insertPos;
                fASTRoot = astRoot;
                fMethodsToImplement = methodsToImplement;
                fSave = save;
                fApply = apply;
                fImports = imports;

                fDoCreateComments = StubUtility.doAddComments(astRoot.getJavaElement().getJavaProject());


Clone AbstractionParameter Count: 3Parameter Bindings

if (astRoot == null || !(astRoot.getJavaElement() instanceof ICompilationUnit)) {
  throw new IllegalArgumentException("AST must not be null and has to be created from a ICompilationUnit"); //$NON-NLS-1$
}
if (type == null) {
  throw new IllegalArgumentException("The type must not be null"); //$NON-NLS-1$
}
ASTNode node = astRoot.findDeclaringNode(type);
if ( !(node instanceof AnonymousClassDeclaration || node instanceof AbstractTypeDeclaration)) {
  throw new IllegalArgumentException("type has to map to a type declaration in the AST"); //$NON-NLS-1$
}
fType = type;
fInsertPos = insertPos;
fASTRoot = astRoot;
 [[#variableb3483780]]= [[#variable7629dc80]];
fSave = save;
fApply = apply;
fImports = imports;
 [[#variableb3483740]]= StubUtility.doAddComments(astRoot.getJavaElement().getJavaProject());
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b3483780]]
fConstructorsToImplement 
12[[#b3483780]]
fMethodsToImplement 
21[[#7629dc80]]
constructorsToImplement 
22[[#7629dc80]]
methodsToImplement 
31[[#b3483740]]
fCreateComments 
32[[#b3483740]]
fDoCreateComments