CloneSet2396


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111183
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/EditVariableEntryDialog.java
211347
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceAttachmentBlock.java
Clone Instance
1
Line Count
11
Source Line
183
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/EditVariableEntryDialog.java

        private IPath getResolvedPath(IPath path) {
                if (path != null) {
                        String varName = path.segment(0);
                        if (varName != null) {
                                IPath varPath = JavaCore.getClasspathVariable(varName);
                                if (varPath != null) {
                                        return varPath.append(path.removeFirstSegments(1));
                                }
                        }
                }
                return null;
        }


Clone Instance
2
Line Count
11
Source Line
347
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceAttachmentBlock.java

        private IPath getResolvedPath(IPath path) {
                if (path != null) {
                        String varName = path.segment(0);
                        if (varName != null) {
                                IPath varPath = JavaCore.getClasspathVariable(varName);
                                if (varPath != null) {
                                        return varPath.append(path.removeFirstSegments(1));
                                }
                        }
                }
                return null;
        }


Clone AbstractionParameter Count: 0Parameter Bindings

private IPath getResolvedPath(IPath path) {
  if (path != null) {
    String varName = path.segment(0);
    if (varName != null) {
      IPath varPath = JavaCore.getClasspathVariable(varName);
      if (varPath != null) {
        return varPath.append(path.removeFirstSegments(1));
      }
    }
  }
  return null;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None