File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/selectors/PresentSelector.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/selectors/DependSelector.java | |||
Method name: String toString()
|
Method name: String toString()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | StringBuffer buf = new StringBuffer("{presentselector targetdir: ");↵ | 1 | StringBuffer buf = new StringBuffer("{dependselector targetdir: ");↵ | |
2 | if (targetdir == null) {↵ | 2 | if (targetdir == null) {↵ | |
3 | buf.append("NOT YET SET");↵ | 3 | buf.append("NOT YET SET");↵ | |
4 | } else {↵ | 4 | } else {↵ | |
5 | buf.append(targetdir.getName());↵ | 5 | buf.append(targetdir.getName());↵ | |
6 | }↵ | 6 | }↵ | |
7 | buf.append(" present: "); | 7 | buf.append(" granularity: "); | |
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 | 13 |
Number of mapped statements | 5 |
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) | 10.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | StringBuffer buf = new StringBuffer("{presentselector targetdir: "); |
| 1 | StringBuffer buf = new StringBuffer("{dependselector targetdir: "); | ||||||||||
2 | if (targetdir == null) | 2 | if (targetdir == null) | |||||||||||
3 | buf.append("NOT YET SET"); | 3 | buf.append("NOT YET SET"); | |||||||||||
else | else | |||||||||||||
4 | buf.append(targetdir.getName()); | 4 | buf.append(targetdir.getName()); | |||||||||||
5 | buf.append(" present: "); |
| 5 | buf.append(" granularity: "); |
Row | Violation |
---|