File path: /apache-ant-1.7.0/src/org/apache/tools/ant/Task.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/AbstractJarSignerTask.java | |||
Method name: void replaceChildren(RuntimeConfigurable, UnknownElement)
|
Method name: Vector createUnifiedSources()
|
|||
Number of AST nodes: 7 | Number of AST nodes: 8 | |||
1 | RuntimeConfigurable childWrapper =↵ | |||
2 | (RuntimeConfigurable) e.nextElement();↵ | |||
3 | UnknownElement childElement =↵ | |||
4 | new UnknownElement(childWrapper.getElementTag());↵ | 1 | Vector sources = (Vector) filesets.clone();↵ | |
2 | if (jar != null) {↵ | |||
3 | //we create a fileset with the source file.↵ | |||
4 | //this lets us combine our logic for handling output directories,↵ | |||
5 | //mapping etc.↵ | |||
5 | parentElement.addChild(childElement);↵ | 6 | FileSet sourceJar = new FileSet();↵ | |
6 | childElement.setProject(getProject());↵ | 7 | sourceJar.setProject(getProject());↵ | |
7 | childElement.setRuntimeConfigurableWrapper(childWrapper);↵ | 8 | sourceJar.setFile(jar);↵ | |
8 | childWrapper.setProxy(childElement);↵ | 9 | ↵ | |
9 | replaceChildren(childWrapper, childElement)↵ | 10 | sourceJar.setDir(jar.getParentFile());↵ | |
11 | sources.add(sourceJar);↵ | |||
12 | }↵ | |||
10 | ; | 13 | return sources; | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 14 |
Number of mapped statements | 0 |
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) | 0.0 |
Clone type | Unknown type |
ID | Statement | ID | Statement |
---|
Row | Violation |
---|