if (is != null) { InputStreamReader isr; if (manifestEncoding == null) { isr = new InputStreamReader(is); } else { isr = new InputStreamReader(is, manifestEncoding); } manifest = getManifest(isr); } else { manifest = getManifest(file); }
if (is != null) { InputStreamReader isr; if (manifestEncoding == null) { isr = new InputStreamReader(is); } else { isr = new InputStreamReader(is, manifestEncoding); } newManifest = getManifest(isr); } else { newManifest = getManifest(file); }
Clone fragments detected by clone detection tool
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: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
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
                    manifest = getManifest(isr);
8
                    newManifest = getManifest(isr);
9
                } else {
9
                } else {
10
                    manifest = getManifest(file);
10
                    newManifest = getManifest(file);
11
                }
11
                }
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0