Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 4 | 5 | 0.972 | executable_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 124 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/ControlStatementsCleanUp.java |
2 | 10 | 134 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/ControlStatementsCleanUp.java |
3 | 10 | 144 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/ControlStatementsCleanUp.java |
4 | 10 | 154 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/ControlStatementsCleanUp.java |
| ||||
{ buf.append("if (obj == null) {\n"); //$NON-NLS-1$ buf.append(" throw new IllegalArgumentException();\n"); //$NON-NLS-1$ buf.append("}\n"); //$NON-NLS-1$ buf.append("if (ids.length > 0) {\n"); //$NON-NLS-1$ buf.append(" System.out.println(ids[0]);\n"); //$NON-NLS-1$ buf.append("} else {\n"); //$NON-NLS-1$ buf.append(" return;\n"); //$NON-NLS-1$ buf.append("}\n"); //$NON-NLS-1$ } |
| ||||
{ buf.append("if (obj == null)\n"); //$NON-NLS-1$ buf.append(" throw new IllegalArgumentException();\n"); //$NON-NLS-1$ buf.append("\n"); //$NON-NLS-1$ buf.append("if (ids.length > 0)\n"); //$NON-NLS-1$ buf.append(" System.out.println(ids[0]);\n"); //$NON-NLS-1$ buf.append("else\n"); //$NON-NLS-1$ buf.append(" return;\n"); //$NON-NLS-1$ buf.append("\n"); //$NON-NLS-1$ } |
| ||||
{ buf.append("if (obj == null)\n"); //$NON-NLS-1$ buf.append(" throw new IllegalArgumentException();\n"); //$NON-NLS-1$ buf.append("\n"); //$NON-NLS-1$ buf.append("if (ids.length > 0) {\n"); //$NON-NLS-1$ buf.append(" System.out.println(ids[0]);\n"); //$NON-NLS-1$ buf.append("} else \n"); //$NON-NLS-1$ buf.append(" return;\n"); //$NON-NLS-1$ buf.append("\n"); //$NON-NLS-1$ } |
| ||||
{ buf.append("if (obj == null) {\n"); //$NON-NLS-1$ buf.append(" throw new IllegalArgumentException();\n"); //$NON-NLS-1$ buf.append("}\n"); //$NON-NLS-1$ buf.append("if (ids.length > 0) {\n"); //$NON-NLS-1$ buf.append(" System.out.println(ids[0]);\n"); //$NON-NLS-1$ buf.append("} else \n"); //$NON-NLS-1$ buf.append(" return;\n"); //$NON-NLS-1$ buf.append("\n"); //$NON-NLS-1$ } |
| |||
{ buf.append( [[#variableb4880620]]); //$NON-NLS-1$ buf.append(" throw new IllegalArgumentException();\n"); //$NON-NLS-1$ buf.append( [[#variableb48805c0]]); //$NON-NLS-1$ buf.append( [[#variableb4880540]]); //$NON-NLS-1$ buf.append(" System.out.println(ids[0]);\n"); //$NON-NLS-1$ buf.append( [[#variableb48804a0]]); //$NON-NLS-1$ buf.append(" return;\n"); //$NON-NLS-1$ buf.append( [[#variableb4880440]]); //$NON-NLS-1$ } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b4880620]] | "if (obj == null) {\n" |
1 | 2 | [[#b4880620]] | "if (obj == null)\n" |
1 | 3 | [[#b4880620]] | "if (obj == null)\n" |
1 | 4 | [[#b4880620]] | "if (obj == null) {\n" |
2 | 1 | [[#b48805c0]] | "}\n" |
2 | 2 | [[#b48805c0]] | "\n" |
2 | 3 | [[#b48805c0]] | "\n" |
2 | 4 | [[#b48805c0]] | "}\n" |
3 | 1 | [[#b4880540]] | "if (ids.length > 0) {\n" |
3 | 2 | [[#b4880540]] | "if (ids.length > 0) {\n" |
3 | 3 | [[#b4880540]] | "if (ids.length > 0)\n" |
3 | 4 | [[#b4880540]] | "if (ids.length > 0) {\n" |
4 | 1 | [[#b48804a0]] | "} else \n" |
4 | 2 | [[#b48804a0]] | "} else \n" |
4 | 3 | [[#b48804a0]] | "else\n" |
4 | 4 | [[#b48804a0]] | "} else {\n" |
5 | 1 | [[#b4880440]] | "\n" |
5 | 2 | [[#b4880440]] | "\n" |
5 | 3 | [[#b4880440]] | "\n" |
5 | 4 | [[#b4880440]] | "}\n" |