Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
20 | 2 | 3 | 0.993 | statement_sequence[12] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 20 | 102 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddUnimplementedConstructorsOperation.java |
2 | 20 | 96 | 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; fConstructorsToImplement = constructorsToImplement; fSave = save; fApply = apply; fImports = imports; fCreateComments = StubUtility.doAddComments(astRoot.getJavaElement().getJavaProject()); |
| ||||
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()); |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b3483780]] | fConstructorsToImplement |
1 | 2 | [[#b3483780]] | fMethodsToImplement |
2 | 1 | [[#7629dc80]] | constructorsToImplement |
2 | 2 | [[#7629dc80]] | methodsToImplement |
3 | 1 | [[#b3483740]] | fCreateComments |
3 | 2 | [[#b3483740]] | fDoCreateComments |