CloneSet1368


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10450.972executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110124
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/ControlStatementsCleanUp.java
210134
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/ControlStatementsCleanUp.java
310144
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/ControlStatementsCleanUp.java
410154
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/ControlStatementsCleanUp.java
Clone Instance
1
Line Count
10
Source Line
124
Source File
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$
                                                             }


Clone Instance
2
Line Count
10
Source Line
134
Source File
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$
                                                             }


Clone Instance
3
Line Count
10
Source Line
144
Source File
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$
                                                                                         }


Clone Instance
4
Line Count
10
Source Line
154
Source File
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$
                       }


Clone AbstractionParameter Count: 5Parameter Bindings

{
  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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b4880620]]
"if (obj == null) {\n" 
12[[#b4880620]]
"if (obj == null)\n" 
13[[#b4880620]]
"if (obj == null)\n" 
14[[#b4880620]]
"if (obj == null) {\n" 
21[[#b48805c0]]
"}\n" 
22[[#b48805c0]]
"\n" 
23[[#b48805c0]]
"\n" 
24[[#b48805c0]]
"}\n" 
31[[#b4880540]]
"if (ids.length > 0) {\n" 
32[[#b4880540]]
"if (ids.length > 0) {\n" 
33[[#b4880540]]
"if (ids.length > 0)\n" 
34[[#b4880540]]
"if (ids.length > 0) {\n" 
41[[#b48804a0]]
"} else \n" 
42[[#b48804a0]]
"} else \n" 
43[[#b48804a0]]
"else\n" 
44[[#b48804a0]]
"} else {\n" 
51[[#b4880440]]
"\n" 
52[[#b4880440]]
"\n" 
53[[#b4880440]]
"\n" 
54[[#b4880440]]
"}\n"