CloneSet2687


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10240.965class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11035
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/buildpath/JUnitHomeInitializer.java
21048
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/buildpath/JUnitHomeInitializer.java
Clone Instance
1
Line Count
10
Source Line
35
Source File
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);
                  }
        }


Clone Instance
2
Line Count
10
Source Line
48
Source File
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/buildpath/JUnitHomeInitializer.java

        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);
                  }
        }


Clone AbstractionParameter Count: 4Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b94deb00]]
initializeHome 
12[[#b94deb00]]
initializeSource 
21[[#b94dea40]]
location 
22[[#b94dea40]]
sourceLocation 
31[[#b94de980]]
getBundleLocation 
32[[#b94de980]]
getSourceLocation 
41[[#b94de8a0]]
JUNIT_HOME 
42[[#b94de8a0]]
JUNIT_SRC_HOME