Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 3 | 0.969 | executable_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 99 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ImportRewriteUtil.java |
2 | 6 | 106 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ImportRewriteUtil.java |
| ||||
{ final IVariableBinding variable = (IVariableBinding) binding; final ITypeBinding declaring = variable.getDeclaringClass(); if (declaring != null && (excludeBindings == null || !excludeBindings.contains(variable))) { staticImports.put(name, rewriter.addStaticImport(variable)); remover.registerAddedStaticImport(declaring.getQualifiedName(), variable.getName(), true); } } |
| ||||
{ final IMethodBinding method = (IMethodBinding) binding; final ITypeBinding declaring = method.getDeclaringClass(); if (declaring != null && (excludeBindings == null || !excludeBindings.contains(method))) { staticImports.put(name, rewriter.addStaticImport(method)); remover.registerAddedStaticImport(declaring.getQualifiedName(), method.getName(), false); } } |
| |||
{ final [[#variable50794c40]] [[#variable58b359e0]]= ( [[#variable50794c40]]) binding; final ITypeBinding declaring = [[#variable58b359e0]].getDeclaringClass(); if (declaring != null && (excludeBindings == null || !excludeBindings.contains( [[#variable58b359e0]]))) { staticImports.put(name, rewriter.addStaticImport( [[#variable58b359e0]])); remover.registerAddedStaticImport(declaring.getQualifiedName(), [[#variable58b359e0]].getName(), [[#variable5168cc20]]); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#50794c40]] | IMethodBinding |
1 | 2 | [[#50794c40]] | IVariableBinding |
2 | 1 | [[#58b359e0]] | method |
2 | 2 | [[#58b359e0]] | variable |
3 | 1 | [[#5168cc20]] | false |
3 | 2 | [[#5168cc20]] | true |