CloneSet1676


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12210.994statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1121021
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/constraints/SuperTypeRefactoringProcessor.java
212753
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ExtractSupertypeProcessor.java
Clone Instance
1
Line Count
12
Source Line
1021
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/constraints/SuperTypeRefactoringProcessor.java

                                Collection collection = null;
                                IJavaProject project = null;
                                ICompilationUnit current = null;
                                for ( final Iterator iterator = units.iterator(); iterator.hasNext();) {
                                        current = (ICompilationUnit) iterator.next();
                                        project = current.getJavaProject();
                                        collection = (Collection) projects.get(project);
                                        if (collection == null) {
                                                collection = new ArrayList();
                                                projects.put(project, collection);
                                        }
                                        collection.add(current);
                                }


Clone Instance
2
Line Count
12
Source Line
753
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ExtractSupertypeProcessor.java

                        Collection collection = null;
                        IJavaProject project = null;
                        ICompilationUnit current = null;
                        for ( final Iterator iterator = units.iterator(); iterator.hasNext();) {
                                current = (ICompilationUnit) iterator.next();
                                project = current.getJavaProject();
                                collection = (Collection) projectToUnits.get(project);
                                if (collection == null) {
                                        collection = new ArrayList();
                                        projectToUnits.put(project, collection);
                                }
                                collection.add(current);
                        }


Clone AbstractionParameter Count: 1Parameter Bindings

Collection collection = null;
IJavaProject project = null;
ICompilationUnit current = null;
for ( final Iterator iterator = units.iterator(); iterator.hasNext();) {
  current = (ICompilationUnit) iterator.next();
  project = current.getJavaProject();
  collection = (Collection)  [[#variablec076afa0]].get(project);
  if (collection == null) {
    collection = new ArrayList();
     [[#variablec076afa0]].put(project, collection);
  }
  collection.add(current);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#c076afa0]]
projects 
12[[#c076afa0]]
projectToUnits