Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 3 | 0.965 | statement_sequence[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 430 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/GenerateHashCodeEqualsOperation.java |
2 | 5 | 780 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/GenerateHashCodeEqualsOperation.java |
| ||||
MethodDeclaration hashCodeMethod = fAst.newMethodDeclaration(); hashCodeMethod.modifiers().addAll(ASTNodeFactory.newModifiers(fAst, Modifier.PUBLIC)); hashCodeMethod.setName(fAst.newSimpleName(METHODNAME_HASH_CODE)); hashCodeMethod.setConstructor(false); hashCodeMethod.setReturnType2(fAst.newPrimitiveType(PrimitiveType.INT)); |
| ||||
MethodDeclaration equalsMethodDeclaration = fAst.newMethodDeclaration(); equalsMethodDeclaration.modifiers().addAll(ASTNodeFactory.newModifiers(fAst, Modifier.PUBLIC)); equalsMethodDeclaration.setName(fAst.newSimpleName(METHODNAME_EQUALS)); equalsMethodDeclaration.setConstructor(false); equalsMethodDeclaration.setReturnType2(fAst.newPrimitiveType(PrimitiveType.BOOLEAN)); |
| |||
MethodDeclaration [[#variable568db9c0]]= fAst.newMethodDeclaration(); [[#variable568db9c0]].modifiers().addAll(ASTNodeFactory.newModifiers(fAst, Modifier.PUBLIC)); [[#variable568db9c0]].setName(fAst.newSimpleName( [[#variable568db980]])); [[#variable568db9c0]].setConstructor(false); [[#variable568db9c0]].setReturnType2(fAst.newPrimitiveType(PrimitiveType. [[#variable568db8e0]])); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#568db9c0]] | hashCodeMethod |
1 | 2 | [[#568db9c0]] | equalsMethodDeclaration |
2 | 1 | [[#568db980]] | METHODNAME_HASH_CODE |
2 | 2 | [[#568db980]] | METHODNAME_EQUALS |
3 | 1 | [[#568db8e0]] | INT |
3 | 2 | [[#568db8e0]] | BOOLEAN |