if (targetdir == null) {
buf.append("NOT YET SET");
} else {
buf.append(targetdir.getName());
}
buf.append(" granularity: ");
if (targetdir == null) {
buf.append("NOT YET SET");
} else {
buf.append(targetdir.getName());
}
buf.append(" present: ");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/selectors/DependSelector.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/selectors/PresentSelector.java
|
Method name: String toString()
|
|
Method name: String toString()
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | if (targetdir == null) {↵ | | 1 | if (targetdir == null) {↵
|
2 | buf.append("NOT YET SET");↵ | | 2 | buf.append("NOT YET SET");↵
|
3 | } else {↵ | | 3 | } else {↵
|
4 | buf.append(targetdir.getName());↵ | | 4 | buf.append(targetdir.getName());↵
|
5 | }↵ | | 5 | }↵
|
6 | buf.append(" granularity: "); | | 6 | buf.append(" present: ");
|
See real code fragment |
|
See real code fragment |
Summary
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 | 10 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 4 |
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.3 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
2 | if (targetdir == null) | | 2 | if (targetdir == null) |
3 | buf.append("NOT YET SET"); | | 3 | buf.append("NOT YET SET"); |
| | | | |
4 | buf.append(targetdir.getName()); | | 4 | buf.append(targetdir.getName()); |
5 | buf.append(" granularity: "); | | 5 | buf.append(" present: "); |
Precondition Violations (0)
Row |
Violation |