CloneSet1236


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113657
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaElement.java
213311
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/javadoc/JavaDocLocations.java
Clone Instance
1
Line Count
13
Source Line
657
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaElement.java

        private static IClasspathEntry getRealClasspathEntry(IJavaProject jproject, IPath containerPath, IPath libPath) throws JavaModelException {
                IClasspathContainer container = JavaCore.getClasspathContainer(containerPath, jproject);
                if (container != null) {
                        IClasspathEntry[] entries = container.getClasspathEntries();
                        for (int i = 0; i < entries.length; i++) {
                                IClasspathEntry curr = entries[i];
                                IClasspathEntry resolved = JavaCore.getResolvedClasspathEntry(curr);
                                if (resolved != null && libPath.equals(resolved.getPath())) {
                                        return curr; // return the real entry
                                }
                        }
                }
                return null; // not found
        }


Clone Instance
2
Line Count
13
Source Line
311
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/javadoc/JavaDocLocations.java

        private static IClasspathEntry getRealClasspathEntry(IJavaProject jproject, IPath containerPath, IPath libPath) throws JavaModelException {
                IClasspathContainer container = JavaCore.getClasspathContainer(containerPath, jproject);
                if (container != null) {
                        IClasspathEntry[] entries = container.getClasspathEntries();
                        for (int i = 0; i < entries.length; i++) {
                                IClasspathEntry curr = entries[i];
                                IClasspathEntry resolved = JavaCore.getResolvedClasspathEntry(curr);
                                if (resolved != null && libPath.equals(resolved.getPath())) {
                                        return curr; // return the real entry
                                }
                        }
                }
                return null; // not found
        }


Clone AbstractionParameter Count: 0Parameter Bindings

private static IClasspathEntry getRealClasspathEntry(IJavaProject jproject, IPath containerPath, IPath libPath) throws JavaModelException {
  IClasspathContainer container = JavaCore.getClasspathContainer(containerPath, jproject);
  if (container != null) {
    IClasspathEntry[] entries = container.getClasspathEntries();
    for (int i = 0; i < entries.length; i++) {
      IClasspathEntry curr = entries[i];
      IClasspathEntry resolved = JavaCore.getResolvedClasspathEntry(curr);
      if (resolved != null && libPath.equals(resolved.getPath())) {
        return curr; // return the real entry
      }
    }
  }
  return null; // not found
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None