CloneSet2995


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8260.953statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18157
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/RuntimeClasspathEntry.java
28191
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/sourcelookup/JavaProjectSourceLocation.java
Clone Instance
1
Line Count
8
Source Line
157
Source File
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/RuntimeClasspathEntry.java

                                String name = root.getAttribute("projectName"); //$NON-NLS-1$
                                if (isEmpty(name)) {
                                        abort(LaunchingMessages.RuntimeClasspathEntry_Unable_to_recover_runtime_class_path_entry___missing_project_name_4, null);
                                }
                                else   {
                                        IProject proj = ResourcesPlugin.getWorkspace().getRoot().getProject(name);
                                        setClasspathEntry(JavaCore.newProjectEntry(proj.getFullPath()));
                                }
                                break;


Clone Instance
2
Line Count
8
Source Line
191
Source File
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/sourcelookup/JavaProjectSourceLocation.java

                        String name = root.getAttribute("name"); //$NON-NLS-1$
                        if (isEmpty(name)) {
                                abort(LaunchingMessages.JavaProjectSourceLocation_Unable_to_initialize_source_location___missing_project_name_3, null);
                        }
                        else   {
                                IProject proj = ResourcesPlugin.getWorkspace().getRoot().getProject(name);
                                setJavaProject(JavaCore.create(proj));
                        }
                        return;


Clone AbstractionParameter Count: 6Parameter Bindings

String name = root.getAttribute( [[#variableb69b9800]]); //$NON-NLS-1$
if (isEmpty(name)) {
  abort(LaunchingMessages. [[#variableb69b9780]], null);
}
else {
  IProject proj = ResourcesPlugin.getWorkspace().getRoot().getProject(name);
   [[#variableb69b9740]](JavaCore. [[#variableb69b9620]]( [[#variableb0ff9940]]));
}
 [[#variableb69b96c0]]
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b69b9800]]
"name" 
12[[#b69b9800]]
"projectName" 
21[[#b69b9780]]
JavaProjectSourceLocation_Unable_to_initialize_source_location___missing_project_name_3 
22[[#b69b9780]]
RuntimeClasspathEntry_Unable_to_recover_runtime_class_path_entry___missing_project_name_4 
31[[#b69b9740]]
setJavaProject 
32[[#b69b9740]]
setClasspathEntry 
41[[#b69b9620]]
create 
42[[#b69b9620]]
newProjectEntry 
51[[#b0ff9940]]
proj 
52[[#b0ff9940]]
proj.getFullPath() 
61[[#b69b96c0]]
return; 
62[[#b69b96c0]]
break;