CloneSet3169


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5230.965statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15430
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/GenerateHashCodeEqualsOperation.java
25780
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/GenerateHashCodeEqualsOperation.java
Clone Instance
1
Line Count
5
Source Line
430
Source File
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));


Clone Instance
2
Line Count
5
Source Line
780
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/GenerateHashCodeEqualsOperation.java

                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));


Clone AbstractionParameter Count: 3Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#568db9c0]]
hashCodeMethod 
12[[#568db9c0]]
equalsMethodDeclaration 
21[[#568db980]]
METHODNAME_HASH_CODE 
22[[#568db980]]
METHODNAME_EQUALS 
31[[#568db8e0]]
INT 
32[[#568db8e0]]
BOOLEAN