Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 5 | 0.963 | statement_sequence[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 157 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/UnusedCodeCleanUp.java |
2 | 8 | 174 | 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$ } |
| ||||
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$ } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b1a70000]] | REMOVE_UNUSED_IMPORTS |
1 | 2 | [[#b1a70000]] | REMOVE_UNUSED_PRIVATE_METHODS |
2 | 1 | [[#a37f9f40]] | "import pack.Bar;\n" |
2 | 2 | [[#a37f9f40]] | " private void foo() {}\n" |
3 | 1 | [[#a3457d60]] | "class Example {\n" |
3 | 2 | [[#a3457d60]] | " public void bar() {\n" |
4 | 1 | [[#a37f9f80]] | REMOVE_UNUSED_PRIVATE_TYPES |
4 | 2 | [[#a37f9f80]] | REMOVE_UNUSED_LOCAL_VARIABLES |
5 | 1 | [[#a37f88a0]] | " private class Sub {}\n" |
5 | 2 | [[#a37f88a0]] | " int i= 10;\n" |