CloneSet1738


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11240.984class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11184
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/buildpath/BuildPathSupport.java
21197
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/buildpath/BuildPathSupport.java
Clone Instance
1
Line Count
11
Source Line
84
Source File
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/buildpath/BuildPathSupport.java

        public static IClasspathEntry getJUnit3LibraryEntry() {
                IPath bundleBase = getBundleLocation(JUNIT3_PLUGIN_ID);
                if (bundleBase != null) {
                        IPath jarLocation = bundleBase.append("junit.jar"); //$NON-NLS-1$

                        IPath sourceBase = getSourceLocation(JUNIT3_PLUGIN_ID);
                        IPath srcLocation = sourceBase != null ? sourceBase.append("junitsrc.zip"):  null; //$NON-NLS-1$

                        return JavaCore.newLibraryEntry(jarLocation, srcLocation, null);
                }
                return null;
        }


Clone Instance
2
Line Count
11
Source Line
97
Source File
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/buildpath/BuildPathSupport.java

        public static IClasspathEntry getJUnit4LibraryEntry() {
                IPath bundleBase = getBundleLocation(JUNIT4_PLUGIN_ID);
                if (bundleBase != null) {
                        IPath jarLocation = bundleBase.append("junit-4.1.jar"); //$NON-NLS-1$

                        IPath sourceBase = getSourceLocation(JUNIT4_PLUGIN_ID);
                        IPath srcLocation = sourceBase != null ? sourceBase.append("junit-4.1src.zip"):  null; //$NON-NLS-1$

                        return JavaCore.newLibraryEntry(jarLocation, srcLocation, null);
                }
                return null;
        }


Clone AbstractionParameter Count: 4Parameter Bindings

public static IClasspathEntry  [[#variablebb83cd80]]() {
  IPath bundleBase = getBundleLocation( [[#variablebb83cce0]]);
  if (bundleBase != null) {
    IPath jarLocation = bundleBase.append( [[#variablebb83cc40]]); //$NON-NLS-1$
    IPath sourceBase = getSourceLocation( [[#variablebb83cce0]]);
    IPath srcLocation = sourceBase != null ? sourceBase.append( [[#variablebb83cbc0]]): null; //$NON-NLS-1$
    return JavaCore.newLibraryEntry(jarLocation, srcLocation, null);
  }
  return null;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#bb83cd80]]
getJUnit3LibraryEntry 
12[[#bb83cd80]]
getJUnit4LibraryEntry 
21[[#bb83cce0]]
JUNIT3_PLUGIN_ID 
22[[#bb83cce0]]
JUNIT4_PLUGIN_ID 
31[[#bb83cc40]]
"junit.jar" 
32[[#bb83cc40]]
"junit-4.1.jar" 
41[[#bb83cbc0]]
"junitsrc.zip" 
42[[#bb83cbc0]]
"junit-4.1src.zip"