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/optional/EchoProperties.java | |||
Method name: void replaceChildren(RuntimeConfigurable, UnknownElement)
|
Method name: void xmlSaveProperties(Properties, OutputStream)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 6 | |||
1 | RuntimeConfigurable childWrapper =↵ | |||
2 | (RuntimeConfigurable) e.nextElemen↵ | 1 | while (iten.hasNext()) {↵ | |
3 | t();↵ | 2 | Tuple tuple = (Tuple) iten.next();↵ | |
4 | UnknownElement childElement =↵ | 3 | Element propElement =↵ | |
5 | new UnknownElement(childWrapper.getElementTag());↵ | 4 | doc.createElement(PROPERTY);↵ | |
6 | parentElement.addChild(childElement);↵ | 5 | propElement.setAttribute(ATTR_NAME, tuple.key);↵ | |
7 | childElement.setProject(getProject());↵ | 6 | propElement.setAttribute(ATTR_VALUE, tuple.value);↵ | |
8 | childElement.setRuntimeConfigurableWrapper(childWrapper);↵ | 7 | rootElement.↵ | |
9 | childWrapper.setProxy(childElement);↵ | |||
10 | replaceChildren(childWrapper, childElement); | 8 | appendChild(propElement);↵ | |
9 |
| |||
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 | 35 |
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 |
---|