CloneSet2073


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7210.996class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1797
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/DeletePackageFragmentRootOperation.java
27232
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/MovePackageFragmentRootOperation.java
Clone Instance
1
Line Count
7
Source Line
97
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/DeletePackageFragmentRootOperation.java

        /*
         * Deletes the classpath entries equals to the given rootPath from all Java projects.
         */
        protected void updateReferringProjectClasspaths(IPath rootPath, IJavaProject projectOfRoot) throws JavaModelException {
                IJavaModel model = this.getJavaModel();
                IJavaProject[] projects = model.getJavaProjects();
                for (int i = 0, length = projects.length; i < length; i++) {
                        IJavaProject project = projects[i];
                        if (project.equals(projectOfRoot)) continue ;
                        updateProjectClasspath(rootPath, project);
                }
        }


Clone Instance
2
Line Count
7
Source Line
232
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/MovePackageFragmentRootOperation.java

        /*
         * Renames the classpath entries equal to the given path in all Java projects.
         */
        protected void updateReferringProjectClasspaths(IPath rootPath, IJavaProject projectOfRoot) throws JavaModelException {
                IJavaModel model = this.getJavaModel();
                IJavaProject[] projects = model.getJavaProjects();
                for (int i = 0, length = projects.length; i < length; i++) {
                        IJavaProject project = projects[i];
                        if (project.equals(projectOfRoot)) continue ;
                        renameEntryInClasspath(rootPath, project);
                }
        }


Clone AbstractionParameter Count: 1Parameter Bindings

/*
         * Renames the classpath entries equal to the given path in all Java projects.
         */
/*
         * Deletes the classpath entries equals to the given rootPath from all Java projects.
         */
protected void updateReferringProjectClasspaths(IPath rootPath, IJavaProject projectOfRoot) throws JavaModelException {
  IJavaModel model = this.getJavaModel();
  IJavaProject[] projects = model.getJavaProjects();
  for (int i = 0, length = projects.length; i < length; i++) {
    IJavaProject project = projects[i];
    if (project.equals(projectOfRoot))
      continue ;
     [[#variableb4783e80]](rootPath, project);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b4783e80]]
renameEntryInClasspath 
12[[#b4783e80]]
updateProjectClasspath