Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 2 | 3 | 0.979 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 248 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/HierarchyProcessor.java |
2 | 4 | 254 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/HierarchyProcessor.java |
| ||||
protected static void copyThrownExceptions( final MethodDeclaration oldMethod, final MethodDeclaration newMethod) { final AST ast = newMethod.getAST(); for (int index = 0,n = oldMethod.thrownExceptions().size(); index < n; index++) newMethod.thrownExceptions().add(index, ASTNode.copySubtree(ast, (Name) oldMethod.thrownExceptions().get(index))); } |
| ||||
protected static void copyTypeParameters( final MethodDeclaration oldMethod, final MethodDeclaration newMethod) { final AST ast = newMethod.getAST(); for (int index = 0,n = oldMethod.typeParameters().size(); index < n; index++) newMethod.typeParameters().add(index, ASTNode.copySubtree(ast, (TypeParameter) oldMethod.typeParameters().get(index))); } |
| |||
protected static void [[#variable5faa0a20]]( final MethodDeclaration oldMethod, final MethodDeclaration newMethod) { final AST ast = newMethod.getAST(); for (int index = 0, n = oldMethod. [[#variable5faa09a0]]().size(); index < n; index++) newMethod. [[#variable5faa09a0]]().add(index, ASTNode.copySubtree(ast, ( [[#variable5faa0940]]) oldMethod. [[#variable5faa09a0]]().get(index))); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5faa0a20]] | copyThrownExceptions |
1 | 2 | [[#5faa0a20]] | copyTypeParameters |
2 | 1 | [[#5faa09a0]] | thrownExceptions |
2 | 2 | [[#5faa09a0]] | typeParameters |
3 | 1 | [[#5faa0940]] | Name |
3 | 2 | [[#5faa0940]] | TypeParameter |