| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 10 | 2 | 4 | 0.965 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 10 | 35 | plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/buildpath/JUnitHomeInitializer.java |
| 2 | 10 | 48 | plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/buildpath/JUnitHomeInitializer.java |
| ||||
private void initializeHome() {
try {
IPath location = BuildPathSupport.getBundleLocation(BuildPathSupport.JUNIT3_PLUGIN_ID);
if (location != null) {
JavaCore.setClasspathVariable(JUnitPlugin.JUNIT_HOME, location, null);
}
else {
JavaCore.removeClasspathVariable(JUnitPlugin.JUNIT_HOME, null);
}
} catch (JavaModelException e1) {
JavaCore.removeClasspathVariable(JUnitPlugin.JUNIT_HOME, null);
}
}
|
| ||||
private void initializeSource() {
try {
IPath sourceLocation = BuildPathSupport.getSourceLocation(BuildPathSupport.JUNIT3_PLUGIN_ID);
if (sourceLocation != null) {
JavaCore.setClasspathVariable(JUnitPlugin.JUNIT_SRC_HOME, sourceLocation, null);
}
else {
JavaCore.removeClasspathVariable(JUnitPlugin.JUNIT_SRC_HOME, null);
}
} catch (JavaModelException e1) {
JavaCore.removeClasspathVariable(JUnitPlugin.JUNIT_SRC_HOME, null);
}
}
|
| |||
private void [[#variableb94deb00]]() {
try {
IPath [[#variableb94dea40]]= BuildPathSupport. [[#variableb94de980]](BuildPathSupport.JUNIT3_PLUGIN_ID);
if ( [[#variableb94dea40]]!= null) {
JavaCore.setClasspathVariable(JUnitPlugin. [[#variableb94de8a0]], [[#variableb94dea40]], null);
}
else {
JavaCore.removeClasspathVariable(JUnitPlugin. [[#variableb94de8a0]], null);
}
}
catch (JavaModelException e1) {
JavaCore.removeClasspathVariable(JUnitPlugin. [[#variableb94de8a0]], null);
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#b94deb00]] | initializeHome |
| 1 | 2 | [[#b94deb00]] | initializeSource |
| 2 | 1 | [[#b94dea40]] | location |
| 2 | 2 | [[#b94dea40]] | sourceLocation |
| 3 | 1 | [[#b94de980]] | getBundleLocation |
| 3 | 2 | [[#b94de980]] | getSourceLocation |
| 4 | 1 | [[#b94de8a0]] | JUNIT_HOME |
| 4 | 2 | [[#b94de8a0]] | JUNIT_SRC_HOME |