File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/extension/LibraryDisplayer.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/extension/LibraryDisplayer.java | |||
Method name: void displayLibrary(File, Manifest)
|
Method name: void displayLibrary(File, Manifest)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | System.out.println("Extensions Supported By Library:");↵ | 1 | System.out.println("Extensions that will be used by Library if present:");↵ | |
2 | for (int i = 0; i < available.length; i++) {↵ | 2 | for (int i = 0; i < options.length; i++) {↵ | |
3 | final Extension extension = available[ i ];↵ | 3 | final Extension extension = options[ i ];↵ | |
4 | System.out.println(extension.toString());↵ | 4 | System.out.println(extension.toString());↵ | |
5 | } | 5 |
| |
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 the same method |
Number of node comparisons | 11 |
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) | 0.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
13 | System.out.println("Extensions Supported By Library:"); |
| 23 | System.out.println("Extensions that will be used by Library if present:"); | ||||||||||
14 | for (int i = 0; i < available.length; i++) |
| 24 | for (int i = 0; i < options.length; i++) | ||||||||||
15 | final Extension extension = available[i]; |
| 25 | final Extension extension = options[i]; | ||||||||||
16 | System.out.println(extension.toString()); | 26 | System.out.println(extension.toString()); |
Row | Violation |
---|