Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 1 | 0.996 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 97 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/DeletePackageFragmentRootOperation.java |
2 | 7 | 232 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/MovePackageFragmentRootOperation.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); } } |
| ||||
/* * 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); } } |
| |||
/* * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b4783e80]] | renameEntryInClasspath |
1 | 2 | [[#b4783e80]] | updateProjectClasspath |