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: 5 | Number of AST nodes: 5 | |||
1 | if (0 != required.length) {↵ | 1 | if (0 != options.length) {↵ | |
2 | System.out.println("Extensions Required By Library:");↵ | 2 | System.out.println("Extensions that will be used by Library if present:");↵ | |
3 | for (int i = 0; i < required.length; i++) {↵ | 3 | for (int i = 0; i < options.length; i++) {↵ | |
4 | final Extension extension = required[ i ];↵ | 4 | final Extension extension = options[ i ];↵ | |
5 | System.out.println(extension.toString());↵ | 5 | System.out.println(extension.toString());↵ | |
6 | }↵ | 6 | }↵ | |
7 | } | 7 |
| |
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.3 |
Clones location | Clones are in the same method |
Number of node comparisons | 13 |
Number of mapped statements | 5 |
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) | 1.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
17 | if (0 != required.length) |
| 22 | if (0 != options.length) | ||||||||||
18 | System.out.println("Extensions Required By Library:"); |
| 23 | System.out.println("Extensions that will be used by Library if present:"); | ||||||||||
19 | for (int i = 0; i < required.length; i++) |
| 24 | for (int i = 0; i < options.length; i++) | ||||||||||
20 | final Extension extension = required[i]; |
| 25 | final Extension extension = options[i]; | ||||||||||
21 | System.out.println(extension.toString()); | 26 | System.out.println(extension.toString()); |
Row | Violation |
---|