CloneSet1607


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12240.988class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112794
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/JavaRuntime.java
212816
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/JavaRuntime.java
Clone Instance
1
Line Count
12
Source Line
794
Source File
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/JavaRuntime.java

        /**
         * Returns the classpath provider for the given launch configuration.
         * 
         * @param configuration launch configuration
         * @return classpath provider
         * @exception CoreException if unable to resolve the path provider
         * @since 2.0
         */
        public static IRuntimeClasspathProvider getClasspathProvider(ILaunchConfiguration configuration) throws CoreException {
                String providerId = configuration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_CLASSPATH_PROVIDER, (String) null);
                IRuntimeClasspathProvider provider = null;
                if (providerId == null) {
                        provider = fgDefaultClasspathProvider;
                }
                else   {
                        provider = (IRuntimeClasspathProvider) getClasspathProviders().get(providerId);
                        if (provider == null) {
                                abort(MessageFormat.format(LaunchingMessages.JavaRuntime_26, new String[] {
                                                                                                           providerId
                                                                                                          } ),          null);
                        }
                }
                return provider;
        }


Clone Instance
2
Line Count
12
Source Line
816
Source File
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/JavaRuntime.java

        /**
         * Returns the source lookup path provider for the given launch configuration.
         * 
         * @param configuration launch configuration
         * @return source lookup path provider
         * @exception CoreException if unable to resolve the path provider
         * @since 2.0
         */
        public static IRuntimeClasspathProvider getSourceLookupPathProvider(ILaunchConfiguration configuration) throws CoreException {
                String providerId = configuration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_SOURCE_PATH_PROVIDER, (String) null);
                IRuntimeClasspathProvider provider = null;
                if (providerId == null) {
                        provider = fgDefaultSourcePathProvider;
                }
                else   {
                        provider = (IRuntimeClasspathProvider) getClasspathProviders().get(providerId);
                        if (provider == null) {
                                abort(MessageFormat.format(LaunchingMessages.JavaRuntime_27, new String[] {
                                                                                                           providerId
                                                                                                          } ),          null);
                        }
                }
                return provider;
        }


Clone AbstractionParameter Count: 4Parameter Bindings

/**
         * Returns the classpath provider for the given launch configuration.
         * 
         * @param configuration launch configuration
         * @return classpath provider
         * @exception CoreException if unable to resolve the path provider
         * @since 2.0
         */
/**
         * Returns the source lookup path provider for the given launch configuration.
         * 
         * @param configuration launch configuration
         * @return source lookup path provider
         * @exception CoreException if unable to resolve the path provider
         * @since 2.0
         */
public static IRuntimeClasspathProvider  [[#variable7c3efda0]](ILaunchConfiguration configuration) throws CoreException {
  String providerId = configuration.getAttribute(IJavaLaunchConfigurationConstants. [[#variable7c3ef800]], (String) null);
  IRuntimeClasspathProvider provider = null;
  if (providerId == null) {
    provider = [[#variable7c3efdc0]];
  }
  else {
    provider = (IRuntimeClasspathProvider) getClasspathProviders().get(providerId);
    if (provider == null) {
      abort(MessageFormat.format(LaunchingMessages. [[#variable7c3efd20]], new String[] {
                                                                                          providerId
                                                                                        } ), null);
    }
  }
  return provider;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#7c3efda0]]
getClasspathProvider 
12[[#7c3efda0]]
getSourceLookupPathProvider 
21[[#7c3ef800]]
ATTR_CLASSPATH_PROVIDER 
22[[#7c3ef800]]
ATTR_SOURCE_PATH_PROVIDER 
31[[#7c3efdc0]]
fgDefaultClasspathProvider 
32[[#7c3efdc0]]
fgDefaultSourcePathProvider 
41[[#7c3efd20]]
JavaRuntime_26 
42[[#7c3efd20]]
JavaRuntime_27