CloneSet1172


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16250.954statement_sequence[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11674
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/Standard11xVMRunner.java
215181
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/SerialVersionLaunchConfigurationDelegate.java
Clone Instance
1
Line Count
16
Source Line
74
Source File
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/Standard11xVMRunner.java

                combinedPath = new String[bootCP.length + classPath.length];
                int offset = 0;
                for (int i = 0; i < bootCP.length; i++) {
                        combinedPath[offset] = bootCP[i];
                        offset++;
                }
                for (int i = 0; i < classPath.length; i++) {
                        combinedPath[offset] = classPath[i];
                        offset++;
                }

                if (combinedPath.length > 0) {
                        arguments.add("-classpath"); //$NON-NLS-1$
                        arguments.add(convertClassPath(combinedPath));
                }
                arguments.add(config.getClassToLaunch());


Clone Instance
2
Line Count
15
Source Line
181
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/SerialVersionLaunchConfigurationDelegate.java

                                combinedClassPath = new String[bootClassPath.length + classPath.length];
                                int offset = 0;
                                for (int index = 0; index < bootClassPath.length; index++) {
                                        combinedClassPath[offset] = bootClassPath[index];
                                        offset++;
                                }
                                for (int index = 0; index < classPath.length; index++) {
                                        combinedClassPath[offset] = classPath[index];
                                        offset++;
                                }
                                if (combinedClassPath.length > 0) {
                                        arguments.add("-classpath"); //$NON-NLS-1$
                                        arguments.add(flattenClassPath(combinedClassPath));
                                }
                                arguments.add(configuration.getClassToLaunch());


Clone AbstractionParameter Count: 5Parameter Bindings

 [[#variablec29ef0e0]]= new String[ [[#variableb6664400]].length + classPath.length];
int offset = 0;
for (int  [[#variableb6664ee0]]= 0; [[#variableb6664ee0]] <  [[#variableb6664400]].length; [[#variableb6664ee0]]++) {
   [[#variablec29ef0e0]][offset] = [[#variableb6664400]][ [[#variableb6664ee0]]];
  offset++;
}
for (int  [[#variableb6664ee0]]= 0; [[#variableb6664ee0]] < classPath.length; [[#variableb6664ee0]]++) {
   [[#variablec29ef0e0]][offset] = classPath[ [[#variableb6664ee0]]];
  offset++;
}
if ( [[#variablec29ef0e0]].length > 0) {
  arguments.add("-classpath"); //$NON-NLS-1$
  arguments.add( [[#variableb9c69a80]]( [[#variablec29ef0e0]]));
}
arguments.add( [[#variableb6664ec0]].getClassToLaunch());
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#c29ef0e0]]
combinedPath 
12[[#c29ef0e0]]
combinedClassPath 
21[[#b6664400]]
bootCP 
22[[#b6664400]]
bootClassPath 
31[[#b6664ee0]]
i 
32[[#b6664ee0]]
index 
41[[#b9c69a80]]
convertClassPath 
42[[#b9c69a80]]
flattenClassPath 
51[[#b6664ec0]]
config 
52[[#b6664ec0]]
configuration