CloneSet1754


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9210.993statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19142
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/NameEnvironment.java
29181
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/NameEnvironment.java
Clone Instance
1
Line Count
9
Source Line
142
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/NameEnvironment.java

                                                                ClasspathLocation[] existingLocations = (ClasspathLocation[]) binaryLocationsPerProject.get(prereqProject);
                                                                if (existingLocations == null) {
                                                                        existingLocations = new ClasspathLocation[] {
                                                                                                                     bLocation
                                                                                                                    };
                                                                }
                                                                else   {
                                                                        int size = existingLocations.length;
                                                                        System.arraycopy(existingLocations, 0, existingLocations = new ClasspathLocation[size + 1], 0, size);
                                                                        existingLocations[size] = bLocation;
                                                                }
                                                                binaryLocationsPerProject.put(prereqProject, existingLocations);


Clone Instance
2
Line Count
9
Source Line
181
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/NameEnvironment.java

                                                ClasspathLocation[] existingLocations = (ClasspathLocation[]) binaryLocationsPerProject.get(p);
                                                if (existingLocations == null) {
                                                        existingLocations = new ClasspathLocation[] {
                                                                                                     bLocation
                                                                                                    };
                                                }
                                                else   {
                                                        int size = existingLocations.length;
                                                        System.arraycopy(existingLocations, 0, existingLocations = new ClasspathLocation[size + 1], 0, size);
                                                        existingLocations[size] = bLocation;
                                                }
                                                binaryLocationsPerProject.put(p, existingLocations);


Clone AbstractionParameter Count: 1Parameter Bindings

ClasspathLocation[] existingLocations = (ClasspathLocation[]) binaryLocationsPerProject.get( [[#variable59622300]]);
if (existingLocations == null) {
  existingLocations = new ClasspathLocation[] {
                                                bLocation
                                              };
}
else {
  int size = existingLocations.length;
  System.arraycopy(existingLocations, 0, existingLocations = new ClasspathLocation[size + 1], 0, size);
  existingLocations[size] = bLocation;
}
binaryLocationsPerProject.put( [[#variable59622300]], existingLocations);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#59622300]]
prereqProject 
12[[#59622300]]
p