CloneSet1446


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9201.000statement_sequence[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19128
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypeBinding.java
29447
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypeBinding.java
Clone Instance
1
Line Count
9
Source Line
128
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypeBinding.java

                int jarSeparator = CharOperation.indexOf(IDependent.JAR_FILE_ENTRY_SEPARATOR, fileName);
                int pkgEnd = CharOperation.lastIndexOf('/', fileName); // pkgEnd is exclusive
                if (pkgEnd == -1)
                        pkgEnd = CharOperation.lastIndexOf(File.separatorChar, fileName);
                if (jarSeparator != -1 && pkgEnd < jarSeparator) // if in a jar and no slash, it is a default package -> pkgEnd should be equal to jarSeparator
                        pkgEnd = jarSeparator;
                if (pkgEnd == -1)
                        return null;
                IPackageFragment pkg = getPackageFragment(fileName, pkgEnd, jarSeparator);


Clone Instance
2
Line Count
9
Source Line
447
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypeBinding.java

                                int jarSeparator = CharOperation.indexOf(IDependent.JAR_FILE_ENTRY_SEPARATOR, fileName);
                                int pkgEnd = CharOperation.lastIndexOf('/', fileName); // pkgEnd is exclusive
                                if (pkgEnd == -1)
                                        pkgEnd = CharOperation.lastIndexOf(File.separatorChar, fileName);
                                if (jarSeparator != -1 && pkgEnd < jarSeparator) // if in a jar and no slash, it is a default package -> pkgEnd should be equal to jarSeparator
                                        pkgEnd = jarSeparator;
                                if (pkgEnd == -1)
                                        return null;
                                IPackageFragment pkg = getPackageFragment(fileName, pkgEnd, jarSeparator);


Clone AbstractionParameter Count: 0Parameter Bindings

int jarSeparator = CharOperation.indexOf(IDependent.JAR_FILE_ENTRY_SEPARATOR, fileName);
int pkgEnd = CharOperation.lastIndexOf('/', fileName); // pkgEnd is exclusive
if (pkgEnd == -1)
  pkgEnd = CharOperation.lastIndexOf(File.separatorChar, fileName);
if (jarSeparator != -1 && pkgEnd < jarSeparator) // if in a jar and no slash, it is a default package -> pkgEnd should be equal to jarSeparator
  pkgEnd = jarSeparator;
if (pkgEnd == -1)
  return null;
IPackageFragment pkg = getPackageFragment(fileName, pkgEnd, jarSeparator);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None