CloneSet5325


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8250.963statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18157
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/UnusedCodeCleanUp.java
28174
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/UnusedCodeCleanUp.java
Clone Instance
1
Line Count
8
Source Line
157
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/UnusedCodeCleanUp.java

                if (isFlag(REMOVE_UNUSED_IMPORTS)) {
                }
                else   {
                        buf.append("import pack.Bar;\n"); //$NON-NLS-1$
                }
                buf.append("class Example {\n"); //$NON-NLS-1$
                if (isFlag(REMOVE_UNUSED_PRIVATE_TYPES)) {
                }
                else   {
                        buf.append("    private class Sub {}\n"); //$NON-NLS-1$
                }


Clone Instance
2
Line Count
8
Source Line
174
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/UnusedCodeCleanUp.java

                if (isFlag(REMOVE_UNUSED_PRIVATE_METHODS)) {
                }
                else   {
                        buf.append("    private void foo() {}\n"); //$NON-NLS-1$
                }
                buf.append("    public void bar() {\n"); //$NON-NLS-1$
                if (isFlag(REMOVE_UNUSED_LOCAL_VARIABLES)) {
                }
                else   {
                        buf.append("        int i= 10;\n"); //$NON-NLS-1$
                }


Clone AbstractionParameter Count: 5Parameter Bindings

if (isFlag( [[#variableb1a70000]])) {
}
else {
  buf.append( [[#variablea37f9f40]]); //$NON-NLS-1$
}
buf.append( [[#variablea3457d60]]); //$NON-NLS-1$
if (isFlag( [[#variablea37f9f80]])) {
}
else {
  buf.append( [[#variablea37f88a0]]); //$NON-NLS-1$
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b1a70000]]
REMOVE_UNUSED_IMPORTS 
12[[#b1a70000]]
REMOVE_UNUSED_PRIVATE_METHODS 
21[[#a37f9f40]]
"import pack.Bar;\n" 
22[[#a37f9f40]]
"    private void foo() {}\n" 
31[[#a3457d60]]
"class Example {\n" 
32[[#a3457d60]]
"    public void bar() {\n" 
41[[#a37f9f80]]
REMOVE_UNUSED_PRIVATE_TYPES 
42[[#a37f9f80]]
REMOVE_UNUSED_LOCAL_VARIABLES 
51[[#a37f88a0]]
"    private class Sub {}\n" 
52[[#a37f88a0]]
"        int i= 10;\n"