File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/PropertyFile.java | File path: /apache-ant-1.7.0/src/org/apache/tools/bzip2/CBZip2OutputStream.java | |||
Method name: void execute()
|
Method name: void writeRun()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 3 | |||
1 | checkParameters();↵ | |||
2 | readFile();↵ | |||
3 | executeOperation();↵ | |||
1 | endBlock();↵ | |||
2 | initBlock();↵ | |||
4 | writeFile(); | 3 | writeRun(); | |
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 | 12 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | checkParameters(); | | ||||||||||||||||
2 | readFile(); |
| 37 | endBlock(); | ||||||||||||||
3 | executeOperation(); |
| 38 | initBlock(); | ||||||||||||||
4 | writeFile(); |
| 39 | writeRun(); |
Row | Violation |
---|---|
1 | Expression readFile() is a void method call, and thus it cannot be parameterized |
2 | Expression endBlock() is a void method call, and thus it cannot be parameterized |
3 | Expression executeOperation() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression initBlock() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression executeOperation() is a void method call, and thus it cannot be parameterized |
6 | Expression initBlock() is a void method call, and thus it cannot be parameterized |
7 | Expression writeFile() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Expression writeRun() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Expression writeFile() is a void method call, and thus it cannot be parameterized |
10 | Expression writeRun() is a void method call, and thus it cannot be parameterized |