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 != available.length) {↵ | 1 | if (0 != required.length) {↵ | |
2 | System.out.println("Extensions Supported By Library:");↵ | 2 | System.out.println("Extensions Required By Library:");↵ | |
3 | for (int i = 0; i < available.length; i++) {↵ | 3 | for (int i = 0; i < required.length; i++) {↵ | |
4 | final Extension extension = available[ i ];↵ | 4 | final Extension extension = required[ 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.2 |
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) | 0.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
12 | if (0 != available.length) |
| 17 | if (0 != required.length) | ||||||||||
13 | System.out.println("Extensions Supported By Library:"); |
| 18 | System.out.println("Extensions Required By Library:"); | ||||||||||
14 | for (int i = 0; i < available.length; i++) |
| 19 | for (int i = 0; i < required.length; i++) | ||||||||||
15 | final Extension extension = available[i]; |
| 20 | final Extension extension = required[i]; | ||||||||||
16 | System.out.println(extension.toString()); | 21 | System.out.println(extension.toString()); |
Row | Violation |
---|