CloneSet4132


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12201.000executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112199
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/util/AptConfig.java
212358
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/util/AptConfig.java
Clone Instance
1
Line Count
12
Source Line
199
Source File
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/util/AptConfig.java

                                                                 {
                                IPath cpPath = entry.getPath();

                                IResource res = root.findMember(cpPath);

                                // If res is null, the path is absolute (it's an external jar)
                                if (res == null) {
                                        classpath.add(cpPath.toOSString());
                                }
                                else {
                                        // It's relative
                                        classpath.add(res.getLocation().toOSString());
                                }
                                                                 }


Clone Instance
2
Line Count
12
Source Line
358
Source File
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/util/AptConfig.java

                                                                                 {
                                IPath cpPath = entry.getPath();

                                IResource res = root.findMember(cpPath);

                                // If res is null, the path is absolute (it's an external jar)
                                if (res == null) {
                                        classpath.add(cpPath.toOSString());
                                }
                                else {
                                        // It's relative
                                        classpath.add(res.getLocation().toOSString());
                                }
                                                                                 }


Clone AbstractionParameter Count: 0Parameter Bindings

{
  IPath cpPath = entry.getPath();
  IResource res = root.findMember(cpPath);
  // If res is null, the path is absolute (it's an external jar)
  if (res == null) {
    classpath.add(cpPath.toOSString());
  }
  else {
    // It's relative
    classpath.add(res.getLocation().toOSString());
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None