CloneSet2187


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8340.968block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18591
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/jres/InstalledJREsBlock.java
2876
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/AbstractVMInstallType.java
38143
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/AbstractVMInstallType.java
Clone Instance
1
Line Count
8
Source Line
591
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/jres/InstalledJREsBlock.java

                                                    {
                for (int i = 0; i < fVMs.size(); i++) {
                        IVMInstall vm = (IVMInstall) fVMs.get(i);
                        if (vm.getName().equals(name)) {
                                return true;
                        }
                }
                return false;
                                                    }


Clone Instance
2
Line Count
8
Source Line
76
Source File
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/AbstractVMInstallType.java

                                                   {
                for (int i = 0; i < fVMs.size(); i++) {
                        IVMInstall vm = (IVMInstall) fVMs.get(i);
                        if (vm.getId().equals(id)) {
                                return vm;
                        }
                }
                return null;
                                                   }


Clone Instance
3
Line Count
8
Source Line
143
Source File
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/AbstractVMInstallType.java

                                                           {
                for (int i = 0; i < fVMs.size(); i++) {
                        IVMInstall vm = (IVMInstall) fVMs.get(i);
                        if (vm.getName().equals(name)) {
                                return vm;
                        }
                }
                return null;
                                                           }


Clone AbstractionParameter Count: 4Parameter Bindings

{
  for (int i = 0; i < fVMs.size(); i++) {
    IVMInstall vm = (IVMInstall) fVMs.get(i);
    if (vm. [[#variablebbce41e0]]().equals( [[#variablebc632d40]])) {
      return [[#variablebb8561e0]];
    }
  }
  return [[#variablebc633c40]];
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#bbce41e0]]
getName 
12[[#bbce41e0]]
getName 
13[[#bbce41e0]]
getId 
21[[#bc632d40]]
name 
22[[#bc632d40]]
name 
23[[#bc632d40]]
id 
31[[#bb8561e0]]
true 
32[[#bb8561e0]]
vm 
33[[#bb8561e0]]
vm 
41[[#bc633c40]]
false 
42[[#bc633c40]]
null 
43[[#bc633c40]]
null