File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/WebsphereDeploymentTool.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java | |||
Method name: ClassLoader getClassLoaderFromJar(File)
|
Method name: ClassLoader getClassLoaderFromJar(File)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | Path lookupPath = new Path(getTask().getProject());↵ | 1 | Path lookupPath = new Path(getTask().getProject());↵ | |
2 | lookupPath.setLocation(classjar);↵ | 2 | lookupPath.setLocation(classjar);↵ | |
3 | Path classpath = getCombinedClasspath();↵ | 3 | Path classpath = getCombinedClasspath();↵ | |
4 | if (classpath != null) {↵ | 4 | if (classpath != null) {↵ | |
5 | lookupPath.append(classpath);↵ | 5 | lookupPath.append(classpath);↵ | |
6 | }↵ | 6 | }↵ | |
7 | return getTask().getProject().createClassLoader(lookupPath); | 7 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.2 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 12 |
Number of mapped statements | 6 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 24.7 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
1 | Path lookupPath = new Path(getTask().getProject()); | 1 | Path lookupPath = new Path(getTask().getProject()); | |
2 | lookupPath.setLocation(classjar); | 2 | lookupPath.setLocation(classjar); | |
3 | Path classpath = getCombinedClasspath(); | 3 | Path classpath = getCombinedClasspath(); | |
4 | if (classpath != null) | 4 | if (classpath != null) | |
5 | lookupPath.append(classpath); | 5 | lookupPath.append(classpath); | |
6 | return getTask().getProject().createClassLoader(lookupPath); | 6 | return getTask().getProject().createClassLoader(lookupPath); |
Row | Violation |
---|