File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Jar.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Jar.java | |||
Method name: void filesetManifest(File, InputStream)
|
Method name: void filesetManifest(File, InputStream)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | if (is != null) {↵ | 1 | if (is != null) {↵ | |
2 | InputStreamReader isr;↵ | 2 | InputStreamReader isr;↵ | |
3 | if (manifestEncoding == null) {↵ | 3 | if (manifestEncoding == null) {↵ | |
4 | isr = new InputStreamReader(is);↵ | 4 | isr = new InputStreamReader(is);↵ | |
5 | } else {↵ | 5 | } else {↵ | |
6 | isr = new InputStreamReader(is, manifestEncoding);↵ | 6 | isr = new InputStreamReader(is, manifestEncoding);↵ | |
7 | }↵ | 7 | }↵ | |
8 | newManifest = getManifest(isr);↵ | 8 | manifest = getManifest(isr);↵ | |
9 | } else {↵ | 9 | } else {↵ | |
10 | newManifest = getManifest(file);↵ | 10 | manifest = getManifest(file);↵ | |
11 | } | 11 |
| |
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.2 |
Clones location | Clones are in the same method |
Number of node comparisons | 26 |
Number of mapped statements | 7 |
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) | 3.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15 | if (is != null) | 4 | if (is != null) | |||||||||||
16 | InputStreamReader isr; | 5 | InputStreamReader isr; | |||||||||||
17 | if (manifestEncoding == null) | 6 | if (manifestEncoding == null) | |||||||||||
18 | isr = new InputStreamReader(is); | 7 | isr = new InputStreamReader(is); | |||||||||||
else | else | |||||||||||||
19 | isr = new InputStreamReader(is, manifestEncoding); | 8 | isr = new InputStreamReader(is, manifestEncoding); | |||||||||||
20 | newManifest = getManifest(isr); |
| 9 | manifest = getManifest(isr); | ||||||||||
else | else | |||||||||||||
21 | newManifest = getManifest(file); |
| 10 | manifest = getManifest(file); |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables newManifest , while Clone fragment #2 returns variables |