Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 11 | 3 | 0.962 | executable_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 193 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/CodeStyleCleanUp.java |
2 | 4 | 203 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/CodeStyleCleanUp.java |
3 | 4 | 213 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/CodeStyleCleanUp.java |
4 | 4 | 221 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/CodeStyleCleanUp.java |
5 | 4 | 231 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/CodeStyleCleanUp.java |
6 | 4 | 240 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/CodeStyleCleanUp.java |
7 | 4 | 104 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/ExpressionsCleanUp.java |
8 | 4 | 115 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/StringCleanUp.java |
9 | 4 | 110 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/UnnecessaryCodeCleanUp.java |
10 | 4 | 113 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/VariableDeclarationCleanUp.java |
11 | 4 | 118 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/VariableDeclarationCleanUp.java |
| ||||
if (isFlag(REMOVE_THIS_FIELD_QUALIFIER)) { buf.append(" return value + value;\n"); //$NON-NLS-1$ } else { buf.append(" return this.value + value;\n"); //$NON-NLS-1$ } |
| ||||
if (isFlag(REMOVE_THIS_METHOD_QUALIFIER)) { buf.append(" return get() - get();\n"); //$NON-NLS-1$ } else { buf.append(" return this.get() - get();\n"); //$NON-NLS-1$ } |
| ||||
if (isFlag(QUALIFY_STATIC_FIELD_ACCESS)) { buf.append(" E.NUMBER= i;\n"); //$NON-NLS-1$ } else { buf.append(" NUMBER= i;\n"); //$NON-NLS-1$ } |
| ||||
if (isFlag(QUALIFY_STATIC_METHOD_ACCESS)) { buf.append(" E.set(0);\n"); //$NON-NLS-1$ } else { buf.append(" set(0);\n"); //$NON-NLS-1$ } |
| ||||
if (isFlag(CHANGE_INDIRECT_STATIC_ACCESS_TO_DIRECT)) { buf.append(" E.NUMBER= 0;\n"); //$NON-NLS-1$ } else { buf.append(" ESub.NUMBER= 0;\n"); //$NON-NLS-1$ } |
| ||||
if (isFlag(CHANGE_NON_STATIC_ACCESS_TO_STATIC)) { buf.append(" E.NUMBER--;\n"); //$NON-NLS-1$ } else { buf.append(" (new E()).NUMBER--;\n"); //$NON-NLS-1$ } |
| ||||
if (isFlag(REMOVE_UNNECESSARY_PARENTHESIS)) { buf.append("boolean b= i > 0 && i < 10 || i == 50;\n"); //$NON-NLS-1$ } else { buf.append("boolean b= (i > 0 && i < 10 || i == 50);\n"); //$NON-NLS-1$ } |
| ||||
if (isFlag(REMOVE_UNNECESSARY_NLS_TAG)) { buf.append("public String s;"); //$NON-NLS-1$ } else { buf.append("public String s; //$NON-NLS-1$"); //$NON-NLS-1$ } |
| ||||
if (isFlag(REMOVE_UNUSED_CAST)) { buf.append("Boolean b= Boolean.TRUE;\n"); //$NON-NLS-1$ } else { buf.append("Boolean b= (Boolean) Boolean.TRUE;\n"); //$NON-NLS-1$ } |
| ||||
if (isFlag(ADD_FINAL_MODIFIER_FIELDS)) { buf.append("private final int i= 0;\n"); //$NON-NLS-1$ } else { buf.append("private int i= 0;\n"); //$NON-NLS-1$ } |
| ||||
if (isFlag(ADD_FINAL_MODIFIER_PARAMETERS)) { buf.append("public void foo(final int j) {\n"); //$NON-NLS-1$ } else { buf.append("public void foo(int j) {\n"); //$NON-NLS-1$ } |
| |||
if (isFlag( [[#variableb82ef060]])) { buf.append( [[#variableb82ef000]]); //$NON-NLS-1$ } else { buf.append( [[#variableb82eef60]]); //$NON-NLS-1$ } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b82ef060]] | ADD_FINAL_MODIFIER_FIELDS |
1 | 2 | [[#b82ef060]] | ADD_FINAL_MODIFIER_PARAMETERS |
1 | 3 | [[#b82ef060]] | REMOVE_UNUSED_CAST |
1 | 4 | [[#b82ef060]] | REMOVE_UNNECESSARY_NLS_TAG |
1 | 5 | [[#b82ef060]] | REMOVE_UNNECESSARY_PARENTHESIS |
1 | 6 | [[#b82ef060]] | REMOVE_THIS_FIELD_QUALIFIER |
1 | 7 | [[#b82ef060]] | REMOVE_THIS_METHOD_QUALIFIER |
1 | 8 | [[#b82ef060]] | QUALIFY_STATIC_FIELD_ACCESS |
1 | 9 | [[#b82ef060]] | QUALIFY_STATIC_METHOD_ACCESS |
1 | 10 | [[#b82ef060]] | CHANGE_INDIRECT_STATIC_ACCESS_TO_DIRECT |
1 | 11 | [[#b82ef060]] | CHANGE_NON_STATIC_ACCESS_TO_STATIC |
2 | 1 | [[#b82ef000]] | "private final int i= 0;\n" |
2 | 2 | [[#b82ef000]] | "public void foo(final int j) {\n" |
2 | 3 | [[#b82ef000]] | "Boolean b= Boolean.TRUE;\n" |
2 | 4 | [[#b82ef000]] | "public String s;" |
2 | 5 | [[#b82ef000]] | "boolean b= i > 0 && i < 10 || i == 50;\n" |
2 | 6 | [[#b82ef000]] | " return value + value;\n" |
2 | 7 | [[#b82ef000]] | " return get() - get();\n" |
2 | 8 | [[#b82ef000]] | " E.NUMBER= i;\n" |
2 | 9 | [[#b82ef000]] | " E.set(0);\n" |
2 | 10 | [[#b82ef000]] | " E.NUMBER= 0;\n" |
2 | 11 | [[#b82ef000]] | " E.NUMBER--;\n" |
3 | 1 | [[#b82eef60]] | "private int i= 0;\n" |
3 | 2 | [[#b82eef60]] | "public void foo(int j) {\n" |
3 | 3 | [[#b82eef60]] | "Boolean b= (Boolean) Boolean.TRUE;\n" |
3 | 4 | [[#b82eef60]] | "public String s; //$NON-NLS-1$" |
3 | 5 | [[#b82eef60]] | "boolean b= (i > 0 && i < 10 || i == 50);\n" |
3 | 6 | [[#b82eef60]] | " return this.value + value;\n" |
3 | 7 | [[#b82eef60]] | " return this.get() - get();\n" |
3 | 8 | [[#b82eef60]] | " NUMBER= i;\n" |
3 | 9 | [[#b82eef60]] | " set(0);\n" |
3 | 10 | [[#b82eef60]] | " ESub.NUMBER= 0;\n" |
3 | 11 | [[#b82eef60]] | " (new E()).NUMBER--;\n" |