CloneSet1667


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13201.000statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11343
plugins/org.eclipse.jdt.launching.macosx/macosx/org/eclipse/jdt/internal/launching/macosx/MacOSXVMInstall.java
21346
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/StandardVM.java
Clone Instance
1
Line Count
13
Source Line
43
Source File
plugins/org.eclipse.jdt.launching.macosx/macosx/org/eclipse/jdt/internal/launching/macosx/MacOSXVMInstall.java

                String vmVersion = installType.getVMVersion(installLocation, executable);
                // strip off extra info
                StringBuffer version = new StringBuffer();
                for (int i = 0; i < vmVersion.length(); i++) {
                    char ch = vmVersion.charAt(i);
                    if (Character.isDigit(ch) || ch == '.') {
                        version.append(ch);
                    }
                    else   {
                        break;
                    }
                }
                if (version.length() > 0) {
                    return version.toString();
                }


Clone Instance
2
Line Count
13
Source Line
46
Source File
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/StandardVM.java

                String vmVersion = installType.getVMVersion(installLocation, executable);
                // strip off extra info
                StringBuffer version = new StringBuffer();
                for (int i = 0; i < vmVersion.length(); i++) {
                    char ch = vmVersion.charAt(i);
                    if (Character.isDigit(ch) || ch == '.') {
                        version.append(ch);
                    }
                    else   {
                        break;
                    }
                }
                if (version.length() > 0) {
                    return version.toString();
                }


Clone AbstractionParameter Count: 0Parameter Bindings

String vmVersion = installType.getVMVersion(installLocation, executable);
// strip off extra info
StringBuffer version = new StringBuffer();
for (int i = 0; i < vmVersion.length(); i++) {
  char ch = vmVersion.charAt(i);
  if (Character.isDigit(ch) || ch == '.') {
    version.append(ch);
  }
  else {
    break;
  }
}
if (version.length() > 0) {
  return version.toString();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None