CloneSet2378


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

                             if (kind == IClasspathEntry.CPE_PROJECT) {
                                // Add the dependent project's build path and classpath to ours
                                IPath otherProjectPath = entry.getPath();
                                IProject otherProject = root.getProject(otherProjectPath.segment(0));

                                // Note: JavaCore.create() is safe, even if the project is null -- 
                                // in that case, we get null back
                                IJavaProject otherJavaProject = JavaCore.create(otherProject);

                                // If it doesn't exist, ignore it
                                if (otherJavaProject != null) {
                                        addProjectClasspath(root, otherJavaProject, projectsProcessed, classpath);
                                }
                             }


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

                             if (entry.getEntryKind() == IClasspathEntry.CPE_PROJECT) {
                                IPath otherProjectPath = entry.getPath();
                                IProject otherProject = root.getProject(otherProjectPath.segment(0));
                                        IJavaProject yetAnotherJavaProject = JavaCore.create(otherProject);
                                        if (yetAnotherJavaProject != null) {
                                                addProjectClasspath(root, yetAnotherJavaProject, projectsProcessed, classpath);
                                        }
                             }


Clone AbstractionParameter Count: 2Parameter Bindings

if ( [[#variableba463d80]]== IClasspathEntry.CPE_PROJECT) {
  // Add the dependent project's build path and classpath to ours
  IPath otherProjectPath = entry.getPath();
  IProject otherProject = root.getProject(otherProjectPath.segment(0));
  // Note: JavaCore.create() is safe, even if the project is null -- 
  // in that case, we get null back
  IJavaProject  [[#variableba463de0]]= JavaCore.create(otherProject);
  // If it doesn't exist, ignore it
  if ( [[#variableba463de0]]!= null) {
    addProjectClasspath(root,  [[#variableba463de0]], projectsProcessed, classpath);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#ba463d80]]
entry.getEntryKind() 
12[[#ba463d80]]
kind 
21[[#ba463de0]]
yetAnotherJavaProject 
22[[#ba463de0]]
otherJavaProject