Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 2 | 4 | 0.984 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 84 | plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/buildpath/BuildPathSupport.java |
2 | 11 | 97 | 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; } |
| ||||
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; } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#bb83cd80]] | getJUnit3LibraryEntry |
1 | 2 | [[#bb83cd80]] | getJUnit4LibraryEntry |
2 | 1 | [[#bb83cce0]] | JUNIT3_PLUGIN_ID |
2 | 2 | [[#bb83cce0]] | JUNIT4_PLUGIN_ID |
3 | 1 | [[#bb83cc40]] | "junit.jar" |
3 | 2 | [[#bb83cc40]] | "junit-4.1.jar" |
4 | 1 | [[#bb83cbc0]] | "junitsrc.zip" |
4 | 2 | [[#bb83cbc0]] | "junit-4.1src.zip" |