CloneSet1523


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14230.991statement_sequence[9]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114437
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/GenerateHashCodeEqualsOperation.java
214615
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/GenerateHashCodeEqualsOperation.java
Clone Instance
1
Line Count
14
Source Line
437
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/GenerateHashCodeEqualsOperation.java

                hashCodeMethod.setBody(body);

                // PRIME NUMBER
                VariableDeclarationFragment frag = fAst.newVariableDeclarationFragment();
                frag.setName(fAst.newSimpleName(VARIABLE_NAME_PRIME));
                frag.setInitializer(fAst.newNumberLiteral(PRIME_NUMBER));

                VariableDeclarationStatement primeNumberDeclaration = fAst.newVariableDeclarationStatement(frag);
                primeNumberDeclaration.modifiers().add(fAst.newModifier(ModifierKeyword.FINAL_KEYWORD));
                primeNumberDeclaration.setType(fAst.newPrimitiveType(PrimitiveType.INT));
                body.statements().add(primeNumberDeclaration);

                // RESULT
                VariableDeclarationFragment fragment = fAst.newVariableDeclarationFragment();


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

                hashCodeMethod.setBody(body);

                // PRIME NUMBER
                VariableDeclarationFragment frag = fAst.newVariableDeclarationFragment();
                frag.setName(fAst.newSimpleName(VARIABLE_NAME_PRIME));
                frag.setInitializer(fAst.newNumberLiteral(PRIME_NUMBER));

                VariableDeclarationStatement primeNumberDeclaration = fAst.newVariableDeclarationStatement(frag);
                primeNumberDeclaration.modifiers().add(fAst.newModifier(ModifierKeyword.FINAL_KEYWORD));
                primeNumberDeclaration.setType(fAst.newPrimitiveType(PrimitiveType.INT));
                body.statements().add(primeNumberDeclaration);

                // IF STATEMENT
                IfStatement ifStatement = fAst.newIfStatement();


Clone AbstractionParameter Count: 3Parameter Bindings

hashCodeMethod.setBody(body);
// PRIME NUMBER
VariableDeclarationFragment frag = fAst.newVariableDeclarationFragment();
frag.setName(fAst.newSimpleName(VARIABLE_NAME_PRIME));
frag.setInitializer(fAst.newNumberLiteral(PRIME_NUMBER));
VariableDeclarationStatement primeNumberDeclaration = fAst.newVariableDeclarationStatement(frag);
primeNumberDeclaration.modifiers().add(fAst.newModifier(ModifierKeyword.FINAL_KEYWORD));
primeNumberDeclaration.setType(fAst.newPrimitiveType(PrimitiveType.INT));
body.statements().add(primeNumberDeclaration);
 [[#variableb1a967e0]]  [[#variable54ddc980]]= fAst. [[#variable54f9dea0]]();
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b1a967e0]]
// IF STATEMENT
IfStatement 
12[[#b1a967e0]]
// RESULT
VariableDeclarationFragment 
21[[#54ddc980]]
ifStatement 
22[[#54ddc980]]
fragment 
31[[#54f9dea0]]
newIfStatement 
32[[#54f9dea0]]
newVariableDeclarationFragment