CloneSet1723


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14230.987class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11445
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/JRERuntimeClasspathEntryResolver.java
21464
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/JRERuntimeClasspathEntryResolver.java
Clone Instance
1
Line Count
14
Source Line
45
Source File
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/JRERuntimeClasspathEntryResolver.java

        /**
         * @see IRuntimeClasspathEntryResolver#resolveRuntimeClasspathEntry(IRuntimeClasspathEntry, ILaunchConfiguration)
         */
        public IRuntimeClasspathEntry[] resolveRuntimeClasspathEntry(IRuntimeClasspathEntry entry, ILaunchConfiguration configuration) throws CoreException {
                IVMInstall jre = null;
                if (entry.getType() == IRuntimeClasspathEntry.CONTAINER && entry.getPath().segmentCount() > 1) {
                        // a specific VM
                        jre = JREContainerInitializer.resolveVM(entry.getPath());
                }
                else   {
                        // default VM for config
                        jre = JavaRuntime.computeVMInstall(configuration);
                }
                if (jre == null) {
                        // cannot resolve JRE
                        return new IRuntimeClasspathEntry[0];
                }
                return resolveLibraryLocations(jre, entry.getClasspathProperty());
        }


Clone Instance
2
Line Count
14
Source Line
64
Source File
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/JRERuntimeClasspathEntryResolver.java

        /**
         * @see IRuntimeClasspathEntryResolver#resolveRuntimeClasspathEntry(IRuntimeClasspathEntry, IJavaProject)
         */
        public IRuntimeClasspathEntry[] resolveRuntimeClasspathEntry(IRuntimeClasspathEntry entry, IJavaProject project) throws CoreException {
                IVMInstall jre = null;
                if (entry.getType() == IRuntimeClasspathEntry.CONTAINER && entry.getPath().segmentCount() > 1) {
                        // a specific VM
                        jre = JREContainerInitializer.resolveVM(entry.getPath());
                }
                else   {
                        // default VM for project
                        jre = JavaRuntime.getVMInstall(project);
                }
                if (jre == null) {
                        // cannot resolve JRE
                        return new IRuntimeClasspathEntry[0];
                }
                return resolveLibraryLocations(jre, entry.getClasspathProperty());
        }


Clone AbstractionParameter Count: 3Parameter Bindings

/**
         * @see IRuntimeClasspathEntryResolver#resolveRuntimeClasspathEntry(IRuntimeClasspathEntry, ILaunchConfiguration)
         */
/**
         * @see IRuntimeClasspathEntryResolver#resolveRuntimeClasspathEntry(IRuntimeClasspathEntry, IJavaProject)
         */
public IRuntimeClasspathEntry[] resolveRuntimeClasspathEntry(IRuntimeClasspathEntry entry, [[#variable582910c0]]  [[#variable58291040]]) throws CoreException {
  IVMInstall jre = null;
  if (entry.getType() == IRuntimeClasspathEntry.CONTAINER && entry.getPath().segmentCount() > 1) {
    // a specific VM
    jre = JREContainerInitializer.resolveVM(entry.getPath());
  }
  else {
    // default VM for config
    // default VM for project
    jre = JavaRuntime. [[#variable58290fa0]]( [[#variable58291040]]);
  }
  if (jre == null) {
    // cannot resolve JRE
    return new IRuntimeClasspathEntry[0];
  }
  return resolveLibraryLocations(jre, entry.getClasspathProperty());
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#582910c0]]
ILaunchConfiguration 
12[[#582910c0]]
IJavaProject 
21[[#58291040]]
configuration 
22[[#58291040]]
project 
31[[#58290fa0]]
computeVMInstall 
32[[#58290fa0]]
getVMInstall