CloneSet4927


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
2420.958statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12640
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/GenerateHashCodeEqualsOperation.java
22650
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/GenerateHashCodeEqualsOperation.java
32832
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/GenerateHashCodeEqualsOperation.java
42277
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/nls/AccessorClassModifier.java
Clone Instance
1
Line Count
2
Source Line
640
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/GenerateHashCodeEqualsOperation.java

                // RESULT
                VariableDeclarationFragment resultFragment = fAst.newVariableDeclarationFragment();
                resultFragment.setName(fAst.newSimpleName(VARIABLE_NAME_RESULT));


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

                VariableDeclarationFragment indexDeclaration = fAst.newVariableDeclarationFragment();
                indexDeclaration.setName(fAst.newSimpleName(VARIABLE_NAME_INDEX));


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

                // Type other= (Type) obj;
                VariableDeclarationFragment sd = fAst.newVariableDeclarationFragment();
                sd.setName(fAst.newSimpleName(VARIABLE_NAME_EQUALS_CASTED));


Clone Instance
4
Line Count
2
Source Line
277
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/nls/AccessorClassModifier.java

                VariableDeclarationFragment variableDeclarationFragment = fAst.newVariableDeclarationFragment();
                variableDeclarationFragment.setName(fAst.newSimpleName(name));


Clone AbstractionParameter Count: 2Parameter Bindings

// Type other= (Type) obj;
// RESULT
VariableDeclarationFragment  [[#variable5255d5c0]]= fAst.newVariableDeclarationFragment();
 [[#variable5255d5c0]].setName(fAst.newSimpleName( [[#variable5255d640]]));
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5255d5c0]]
variableDeclarationFragment 
12[[#5255d5c0]]
sd 
13[[#5255d5c0]]
indexDeclaration 
14[[#5255d5c0]]
resultFragment 
21[[#5255d640]]
name 
22[[#5255d640]]
VARIABLE_NAME_EQUALS_CASTED 
23[[#5255d640]]
VARIABLE_NAME_INDEX 
24[[#5255d640]]
VARIABLE_NAME_RESULT