CloneSet393


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11230.963method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111658
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/AntClassLoader.java
211687
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/AntClassLoader.java
Next
Last
Clone Instance
1
Line Count
11
Source Line
658
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/AntClassLoader.java

/**
 * Loads a class through this class loader even if that class is available
 * on the parent classpath.
 *
 * This ensures that any classes which are loaded by the returned class
 * will use this classloader.
 *
 * @param classname The name of the class to be loaded.
 *                  Must not be <code>null</code>.
 *
 * @return the required Class object
 *
 * @exception ClassNotFoundException if the requested class does not exist
 *                                   on this loader's classpath.
 */
public Class forceLoadClass(String classname) throws ClassNotFoundException {
  log("force loading " + classname, Project.MSG_DEBUG);
  Class theClass = findLoadedClass(classname);
  if (theClass == null) {
    theClass = findClass(classname);
  }
  return theClass;
}


First
Previous
Clone Instance
2
Line Count
11
Source Line
687
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/AntClassLoader.java

/**
 * Loads a class through this class loader but defer to the parent class
 * loader.
 *
 * This ensures that instances of the returned class will be compatible
 * with instances which have already been loaded on the parent
 * loader.
 *
 * @param classname The name of the class to be loaded.
 *                  Must not be <code>null</code>.
 *
 * @return the required Class object
 *
 * @exception ClassNotFoundException if the requested class does not exist
 * on this loader's classpath.
 */
public Class forceLoadSystemClass(String classname) throws ClassNotFoundException {
  log("force system loading " + classname, Project.MSG_DEBUG);
  Class theClass = findLoadedClass(classname);
  if (theClass == null) {
    theClass = findBaseClass(classname);
  }
  return theClass;
}


Clone AbstractionParameter Count: 3Parameter Bindings

/**
     * Loads a class through this class loader but defer to the parent class
     * loader.
     *
     * This ensures that instances of the returned class will be compatible
     * with instances which have already been loaded on the parent
     * loader.
     *
     * @param classname The name of the class to be loaded.
     *                  Must not be <code>null</code>.
     *
     * @return the required Class object
     *
     * @exception ClassNotFoundException if the requested class does not exist
     * on this loader's classpath.
     */
/**
     * Loads a class through this class loader even if that class is available
     * on the parent classpath.
     *
     * This ensures that any classes which are loaded by the returned class
     * will use this classloader.
     *
     * @param classname The name of the class to be loaded.
     *                  Must not be <code>null</code>.
     *
     * @return the required Class object
     *
     * @exception ClassNotFoundException if the requested class does not exist
     *                                   on this loader's classpath.
     */
public Class  [[#variable1310d9a0]](String classname) throws ClassNotFoundException {
  log( [[#variable1310d940]] + classname, Project.MSG_DEBUG);
  Class theClass = findLoadedClass(classname);
  if (theClass == null) {
    theClass = [[#variable1310d8e0]](classname);
  }
  return theClass;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1310d9a0]]
forceLoadClass 
12[[#1310d9a0]]
forceLoadSystemClass 
21[[#1310d940]]
"force loading " 
22[[#1310d940]]
"force system loading " 
31[[#1310d8e0]]
findClass 
32[[#1310d8e0]]
findBaseClass