if (element.getName().endsWith(".class")) {
// create a data input stream from the jar
// input stream
ClassFile javaClass = new ClassFile();
javaClass.read(inFileStream);
nextElement = javaClass;
}
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/depend/DirectoryIterator.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/optional/image/Scale.java
|
Method name: ClassFile getNextClassFile()
|
|
Method name: PlanarImage executeDrawOperation()
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | if (element.getName().endsWith(".class")) {↵ | | 1 | if (↵
|
|
2 | // create a data input stream from the jar↵ | | |
|
3 | // input stream↵ | | |
|
4 | ClassFile javaClass = new ClassFile();↵ | | |
|
|
5 | javaClass.read(inFileStream);↵ | | |
|
|
6 | nextElement = javaClass;↵ | | |
|
7 | ↵ | | 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;↵
|
8 | } | | 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 |