CloneSet1016


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
41130.962executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14193
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/CodeStyleCleanUp.java
24203
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/CodeStyleCleanUp.java
34213
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/CodeStyleCleanUp.java
44221
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/CodeStyleCleanUp.java
54231
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/CodeStyleCleanUp.java
64240
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/CodeStyleCleanUp.java
74104
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/ExpressionsCleanUp.java
84115
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/StringCleanUp.java
94110
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/UnnecessaryCodeCleanUp.java
104113
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/VariableDeclarationCleanUp.java
114118
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/VariableDeclarationCleanUp.java
Clone Instance
1
Line Count
4
Source Line
193
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/CodeStyleCleanUp.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$
                       }


Clone Instance
2
Line Count
4
Source Line
203
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/CodeStyleCleanUp.java

                       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$
                       }


Clone Instance
3
Line Count
4
Source Line
213
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/CodeStyleCleanUp.java

                if (isFlag(QUALIFY_STATIC_FIELD_ACCESS)) {
                        buf.append("        E.NUMBER= i;\n"); //$NON-NLS-1$
                }
                else   {
                        buf.append("        NUMBER= i;\n"); //$NON-NLS-1$
                }


Clone Instance
4
Line Count
4
Source Line
221
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/CodeStyleCleanUp.java

                if (isFlag(QUALIFY_STATIC_METHOD_ACCESS)) {
                        buf.append("        E.set(0);\n"); //$NON-NLS-1$
                }
                else   {
                        buf.append("        set(0);\n"); //$NON-NLS-1$
                }


Clone Instance
5
Line Count
4
Source Line
231
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/CodeStyleCleanUp.java

                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$
                }


Clone Instance
6
Line Count
4
Source Line
240
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/CodeStyleCleanUp.java

                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$
                }


Clone Instance
7
Line Count
4
Source Line
104
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/ExpressionsCleanUp.java

                       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$
                       }


Clone Instance
8
Line Count
4
Source Line
115
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/StringCleanUp.java

                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$
                }


Clone Instance
9
Line Count
4
Source Line
110
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/UnnecessaryCodeCleanUp.java

                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$
                }


Clone Instance
10
Line Count
4
Source Line
113
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/VariableDeclarationCleanUp.java

                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$
                }


Clone Instance
11
Line Count
4
Source Line
118
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/VariableDeclarationCleanUp.java

                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$
                }


Clone AbstractionParameter Count: 3Parameter Bindings

if (isFlag( [[#variableb82ef060]])) {
  buf.append( [[#variableb82ef000]]); //$NON-NLS-1$
}
else {
  buf.append( [[#variableb82eef60]]); //$NON-NLS-1$
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b82ef060]]
ADD_FINAL_MODIFIER_FIELDS 
12[[#b82ef060]]
ADD_FINAL_MODIFIER_PARAMETERS 
13[[#b82ef060]]
REMOVE_UNUSED_CAST 
14[[#b82ef060]]
REMOVE_UNNECESSARY_NLS_TAG 
15[[#b82ef060]]
REMOVE_UNNECESSARY_PARENTHESIS 
16[[#b82ef060]]
REMOVE_THIS_FIELD_QUALIFIER 
17[[#b82ef060]]
REMOVE_THIS_METHOD_QUALIFIER 
18[[#b82ef060]]
QUALIFY_STATIC_FIELD_ACCESS 
19[[#b82ef060]]
QUALIFY_STATIC_METHOD_ACCESS 
110[[#b82ef060]]
CHANGE_INDIRECT_STATIC_ACCESS_TO_DIRECT 
111[[#b82ef060]]
CHANGE_NON_STATIC_ACCESS_TO_STATIC 
21[[#b82ef000]]
"private final int i= 0;\n" 
22[[#b82ef000]]
"public void foo(final int j) {\n" 
23[[#b82ef000]]
"Boolean b= Boolean.TRUE;\n" 
24[[#b82ef000]]
"public String s;" 
25[[#b82ef000]]
"boolean b= i > 0 && i < 10 || i == 50;\n" 
26[[#b82ef000]]
"    return value + value;\n" 
27[[#b82ef000]]
"    return get() - get();\n" 
28[[#b82ef000]]
"        E.NUMBER= i;\n" 
29[[#b82ef000]]
"        E.set(0);\n" 
210[[#b82ef000]]
"        E.NUMBER= 0;\n" 
211[[#b82ef000]]
"    E.NUMBER--;\n" 
31[[#b82eef60]]
"private int i= 0;\n" 
32[[#b82eef60]]
"public void foo(int j) {\n" 
33[[#b82eef60]]
"Boolean b= (Boolean) Boolean.TRUE;\n" 
34[[#b82eef60]]
"public String s; //$NON-NLS-1$" 
35[[#b82eef60]]
"boolean b= (i > 0 && i < 10 || i == 50);\n" 
36[[#b82eef60]]
"    return this.value + value;\n" 
37[[#b82eef60]]
"    return this.get() - get();\n" 
38[[#b82eef60]]
"        NUMBER= i;\n" 
39[[#b82eef60]]
"        set(0);\n" 
310[[#b82eef60]]
"        ESub.NUMBER= 0;\n" 
311[[#b82eef60]]
"    (new E()).NUMBER--;\n"