CloneSet2220


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6230.969executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1699
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ImportRewriteUtil.java
26106
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ImportRewriteUtil.java
Clone Instance
1
Line Count
6
Source Line
99
Source File
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);
                                }
                                                                 }


Clone Instance
2
Line Count
6
Source Line
106
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ImportRewriteUtil.java

                                                                      {
                                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);
                                }
                                                                      }


Clone AbstractionParameter Count: 3Parameter Bindings

{
  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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#50794c40]]
IMethodBinding 
12[[#50794c40]]
IVariableBinding 
21[[#58b359e0]]
method 
22[[#58b359e0]]
variable 
31[[#5168cc20]]
false 
32[[#5168cc20]]
true