CloneSet1504


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13201.000class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113200
plugins/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/FileSystem.java
214301
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/NameEnvironment.java
Clone Instance
1
Line Count
13
Source Line
200
Source File
plugins/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/FileSystem.java

public NameEnvironmentAnswer findType(char[][] compoundName) {
        if (compoundName != null)
                return findClass(
                        new String(CharOperation.concatWith(compoundName, '/')), 
                        compoundName[compoundName.length - 1]);
        return null;
}

public NameEnvironmentAnswer findType(char[] typeName, char[][] packageName) {
        if (typeName != null)
                return findClass(
                        new String(CharOperation.concatWith(packageName, typeName, '/')), 
                        typeName);
        return null;
}


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

public NameEnvironmentAnswer findType(char[][] compoundName) {
        if (compoundName != null)
                return findClass(
                        new String(CharOperation.concatWith(compoundName, '/')), 
                        compoundName[compoundName.length - 1]);
        return null;
}

public NameEnvironmentAnswer findType(char[] typeName, char[][] packageName) {
        if (typeName != null)
                return findClass(
                        new String(CharOperation.concatWith(packageName, typeName, '/')), 
                        typeName);
        return null;
}


Clone AbstractionParameter Count: 0Parameter Bindings

public NameEnvironmentAnswer findType(char[][] compoundName) {
  if (compoundName != null)
    return findClass(new String(CharOperation.concatWith(compoundName, '/')), compoundName[compoundName.length - 1]);
  return null;
}

public NameEnvironmentAnswer findType(char[] typeName, char[][] packageName) {
  if (typeName != null)
    return findClass(new String(CharOperation.concatWith(packageName, typeName, '/')), typeName);
  return null;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None