protected ClassLoader getClassLoaderFromJar(File classjar) throws IOException { Path lookupPath = new Path(getTask().getProject()); lookupPath.setLocation(classjar); Path classpath = getCombinedClasspath(); if (classpath != null) { lookupPath.append(classpath); } return getTask().getProject().createClassLoader(lookupPath);
protected ClassLoader getClassLoaderFromJar(File classjar) throws IOException { Path lookupPath = new Path(getTask().getProject()); lookupPath.setLocation(classjar); Path classpath = getCombinedClasspath(); if (classpath != null) { lookupPath.append(classpath); } return getTask().getProject().createClassLoader(lookupPath);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/WebsphereDeploymentTool.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
protected ClassLoader getClassLoaderFromJar(File classjar) throws IOException {
1
protected ClassLoader getClassLoaderFromJar(File classjar) throws IOException {
2
        Path lookupPath = new Path(getTask().getProject());
2
        Path lookupPath = new Path(getTask().getProject());
3
        lookupPath.setLocation(classjar);
3
        lookupPath.setLocation(classjar);
4
        Path classpath = getCombinedClasspath();
4
        Path classpath = getCombinedClasspath();
5
        if (classpath != null) {
5
        if (classpath != null) {
6
            lookupPath.append(classpath);
6
            lookupPath.append(classpath);
7
        }
7
        }
8
        return getTask().getProject().createClassLoader(lookupPath);
8
        return getTask().getProject().createClassLoader(lookupPath);
9
    
9
    
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0