if (format.equals(FRAMES)) {
Delete delete = new Delete();
delete.bindToOwner(task);
delete.setFile(outputFile);
delete.execute();
}
if (instr instanceof DrawOperation) {
PlanarImage image = null;
// If this TransformOperation has DrawOperation children
// then Rotate the first child and return.
performScale(image);
return image;
}
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/optional/image/Scale.java
|
Method name: void transform()
|
|
Method name: PlanarImage executeDrawOperation()
|
Number of AST nodes: 5
|
|
Number of AST nodes: 4
|
|
1 | if (format.equals(FRAMES)) {↵ | | 1 | if (↵
|
2 | Delete delete = new Delete();↵ | | |
|
3 | delete.bindToOwner(task);↵ | | |
|
4 | delete.setFile(outputFile);↵ | | |
|
5 | delete.execute();↵ | | |
|
| | | 2 | instr instanceof DrawOperation) {↵
|
| | | 3 | PlanarImage image = null;↵
|
| | | 4 | // If this TransformOperation has DrawOperation children↵
|
| | | 5 | // then Rotate the first child and return.↵
|
| | | 6 | performScale(image);↵
|
| | | 7 | return image;↵
|
6 | } | | 8 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |