File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/EchoProperties.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/CommandlineJava.java | |||
Method name: void execute()
|
Method name: Properties mergePropertySets()
|
|||
Number of AST nodes: 3 | Number of AST nodes: 2 | |||
1 | while (e.hasMoreElements()) {↵ | |||
2 | PropertySet ps = (PropertySet) e.nextElement();↵ | 1 | PropertySet ps = (PropertySet) e.nextElement();↵ | |
3 | allProps.putAll(ps.getProperties());↵ | 2 | p.putAll(ps.getProperties()); | |
4 | } | |||
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 |
Number of node comparisons | 5 |
Number of mapped statements | 2 |
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 | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
27 | PropertySet ps = (PropertySet)e.nextElement(); | 3 | PropertySet ps = (PropertySet)e.nextElement(); | |||||||||||||||
28 | allProps.putAll(ps.getProperties()); |
| 4 | p.putAll(ps.getProperties()); |
Row | Violation |
---|---|
1 | Type java.util.Hashtable of variable allProps does not match with type java.util.Properties of variable p |