String[] inputTargets = null; try { inputTargets = inputMapper.getImplementation().mapFileName(sourcefile); } catch (NullPointerException enPeaEx) { if (sourcefile != null) { throw enPeaEx; } } if (inputTargets != null && inputTargets.length > 0) { redirector.setInput(toFileArray(inputTargets)); }
String[] outputTargets = null; try { outputTargets = outputMapper.getImplementation().mapFileName(sourcefile); } catch (NullPointerException enPeaEx) { if (sourcefile != null) { throw enPeaEx; } } if (outputTargets != null && outputTargets.length > 0) { redirector.setOutput(toFileArray(outputTargets)); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/RedirectorElement.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/RedirectorElement.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
String[] inputTargets = null;
1
String[] outputTargets = null;
2
            try {
2
            try {
3
                inputTargets =
3
                outputTargets =
4
                    inputMapper.getImplementation().mapFileName(sourcefile);
4
                    outputMapper.getImplementation().mapFileName(sourcefile);
5
            } catch (NullPointerException enPeaEx) {
5
            } catch (NullPointerException enPeaEx) {
6
                if (sourcefile != null) {
6
                if (sourcefile != null) {
7
                    throw enPeaEx;
7
                    throw enPeaEx;
8
                }
8
                }
9
            }
9
            }
10
            if (inputTargets != null && inputTargets.length > 0) {
10
            if (outputTargets != null && outputTargets.length > 0) {
11
                redirector.setInput(toFileArray(inputTargets));
11
                redirector.setOutput(toFileArray(outputTargets));
12
            }
12
            }
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