CloneSet1832


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13201.000statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113241
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/buildpath/ClasspathModifier.java
213218
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/newsourcepage/AddFolderToBuildpathAction.java
Clone Instance
1
Line Count
13
Source Line
241
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/buildpath/ClasspathModifier.java

                                for (int i = 0; i < newEntries.size(); i++) {
                                        IClasspathEntry entry = ((CPListElement) newEntries.get(i)).getClasspathEntry();
                                        IJavaElement root;
                                        if (entry.getPath().equals(project.getPath()))
                                                root = project;
                                        else
                                                root = project.findPackageFragmentRoot(entry.getPath());
                                        if (root != null) {
                                                result.add(root);
                                        }
                                }

                                return result;


Clone Instance
2
Line Count
13
Source Line
218
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/newsourcepage/AddFolderToBuildpathAction.java

                        for (int i = 0; i < newEntries.size(); i++) {
                                IClasspathEntry entry = ((CPListElement) newEntries.get(i)).getClasspathEntry();
                                IJavaElement root;
                                if (entry.getPath().equals(project.getPath()))
                                        root = project;
                                else
                                        root = project.findPackageFragmentRoot(entry.getPath());
                                if (root != null) {
                                        result.add(root);
                                }
                        }

                        return result;


Clone AbstractionParameter Count: 0Parameter Bindings

for (int i = 0; i < newEntries.size(); i++) {
  IClasspathEntry entry = ((CPListElement) newEntries.get(i)).getClasspathEntry();
  IJavaElement root;
  if (entry.getPath().equals(project.getPath()))
    root = project;
  else
    root = project.findPackageFragmentRoot(entry.getPath());
  if (root != null) {
    result.add(root);
  }
}
return result;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None