CloneSet984


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12260.979class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11258
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringScopeFactory.java
21275
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringScopeFactory.java
Clone Instance
1
Line Count
12
Source Line
58
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringScopeFactory.java

        private static void addRelatedReferencing(IJavaProject focus, Set projects) throws CoreException {
                IProject[] referencingProjects = focus.getProject().getReferencingProjects();
                for (int i = 0; i < referencingProjects.length; i++) {
                        IJavaProject candidate = JavaCore.create(referencingProjects[i]);
                        if (candidate == null || projects.contains(candidate) || !candidate.exists())
                                continue ; // break cycle
                        IClasspathEntry entry = getReferencingClassPathEntry(candidate, focus);
                        if (entry != null) {
                                projects.add(candidate);
                                if (entry.isExported()) {
                                        addRelatedReferencing(candidate, projects);
                                        addRelatedReferenced(candidate, projects);
                                }
                        }
                }
        }


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

        private static void addRelatedReferenced(IJavaProject focus, Set projects) throws CoreException {
                IProject[] referencedProjects = focus.getProject().getReferencedProjects();
                for (int i = 0; i < referencedProjects.length; i++) {
                        IJavaProject candidate = JavaCore.create(referencedProjects[i]);
                        if (candidate == null || projects.contains(candidate) || !candidate.exists())
                                continue ; // break cycle
                        IClasspathEntry entry = getReferencingClassPathEntry(focus, candidate);
                        if (entry != null) {
                                projects.add(candidate);
                                if (entry.isExported()) {
                                        addRelatedReferenced(candidate, projects);
                                        addRelatedReferencing(candidate, projects);
                                }
                        }
                }
        }


Clone AbstractionParameter Count: 6Parameter Bindings

private static void [[#variable528a6ec0]](IJavaProject focus, Set projects) throws CoreException {
  IProject[]  [[#variable528a6dc0]]= focus.getProject(). [[#variable528a6d20]]();
  for (int i = 0; i <  [[#variable528a6dc0]].length; i++) {
    IJavaProject candidate = JavaCore.create( [[#variable528a6dc0]][i]);
    if (candidate == null || projects.contains(candidate) || !candidate.exists())
      continue ; // break cycle
    IClasspathEntry entry = getReferencingClassPathEntry( [[#variable528a6cc0]],  [[#variable53086660]]);
    if (entry != null) {
      projects.add(candidate);
      if (entry.isExported()) {
         [[#variable528a6ec0]](candidate, projects);
         [[#variable528a6d40]](candidate, projects);
      }
    }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#528a6ec0]]
addRelatedReferencing 
12[[#528a6ec0]]
addRelatedReferenced 
21[[#528a6dc0]]
referencingProjects 
22[[#528a6dc0]]
referencedProjects 
31[[#528a6d20]]
getReferencingProjects 
32[[#528a6d20]]
getReferencedProjects 
41[[#528a6cc0]]
candidate 
42[[#528a6cc0]]
focus 
51[[#53086660]]
focus 
52[[#53086660]]
candidate 
61[[#528a6d40]]
addRelatedReferenced 
62[[#528a6d40]]
addRelatedReferencing