Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
2 | 4 | 2 | 0.958 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 2 | 640 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/GenerateHashCodeEqualsOperation.java |
2 | 2 | 650 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/GenerateHashCodeEqualsOperation.java |
3 | 2 | 832 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/GenerateHashCodeEqualsOperation.java |
4 | 2 | 277 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/nls/AccessorClassModifier.java |
| ||||
// RESULT VariableDeclarationFragment resultFragment = fAst.newVariableDeclarationFragment(); resultFragment.setName(fAst.newSimpleName(VARIABLE_NAME_RESULT)); |
| ||||
VariableDeclarationFragment indexDeclaration = fAst.newVariableDeclarationFragment(); indexDeclaration.setName(fAst.newSimpleName(VARIABLE_NAME_INDEX)); |
| ||||
// Type other= (Type) obj; VariableDeclarationFragment sd = fAst.newVariableDeclarationFragment(); sd.setName(fAst.newSimpleName(VARIABLE_NAME_EQUALS_CASTED)); |
| ||||
VariableDeclarationFragment variableDeclarationFragment = fAst.newVariableDeclarationFragment(); variableDeclarationFragment.setName(fAst.newSimpleName(name)); |
| |||
// Type other= (Type) obj; // RESULT VariableDeclarationFragment [[#variable5255d5c0]]= fAst.newVariableDeclarationFragment(); [[#variable5255d5c0]].setName(fAst.newSimpleName( [[#variable5255d640]])); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5255d5c0]] | variableDeclarationFragment |
1 | 2 | [[#5255d5c0]] | sd |
1 | 3 | [[#5255d5c0]] | indexDeclaration |
1 | 4 | [[#5255d5c0]] | resultFragment |
2 | 1 | [[#5255d640]] | name |
2 | 2 | [[#5255d640]] | VARIABLE_NAME_EQUALS_CASTED |
2 | 3 | [[#5255d640]] | VARIABLE_NAME_INDEX |
2 | 4 | [[#5255d640]] | VARIABLE_NAME_RESULT |