CloneSet1879


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10220.962class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110317
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/NameEnvironment.java
29199
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/JavaSearchNameEnvironment.java
Clone Instance
1
Line Count
10
Source Line
317
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/NameEnvironment.java

public boolean isPackage(char[][] compoundName, char[] packageName) {
        return isPackage(new String(CharOperation.concatWith(compoundName, packageName, '/')));
}

public boolean isPackage(String qualifiedPackageName) {
        // NOTE: the output folders are added at the beginning of the binaryLocations
        for (int i = 0, l = binaryLocations.length; i < l; i++)
                if (binaryLocations[i].isPackage(qualifiedPackageName))
                        return true;
        return false;
}


Clone Instance
2
Line Count
9
Source Line
199
Source File
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/JavaSearchNameEnvironment.java

public boolean isPackage(char[][] compoundName, char[] packageName) {
        return isPackage(new String(CharOperation.concatWith(compoundName, packageName, '/')));
}

public boolean isPackage(String qualifiedPackageName) {
        for (int i = 0, length = this.locations.length; i < length; i++)
                if (this.locations[i].isPackage(qualifiedPackageName))
                        return true;
        return false;
}


Clone AbstractionParameter Count: 2Parameter Bindings

public boolean isPackage(char[][] compoundName, char[] packageName) {
  return isPackage(new String(CharOperation.concatWith(compoundName, packageName, '/')));
}

public boolean isPackage(String qualifiedPackageName) {
  // NOTE: the output folders are added at the beginning of the binaryLocations
  for (int i = 0, [[#variableb5807800]]= [[#variableb5807820]].length; i <  [[#variableb5807800]]; i++)
    if ( [[#variableb5807820]][i].isPackage(qualifiedPackageName))
      return true;
  return false;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b5807800]]
l 
12[[#b5807800]]
length 
21[[#b5807820]]
binaryLocations 
22[[#b5807820]]
this.locations