output = unwrapBufferedStream(child.getOutputStream()); if (output instanceof FileOutputStream) { outputChannel = ((FileOutputStream) output).getChannel(); } else { outputChannel = null; } outputPumper = null;
inerr = unwrapBufferedStream(child.getErrorStream()); if (inerr instanceof FileInputStream) { inerrChannel = ((FileInputStream) inerr).getChannel(); } else { inerrChannel = null; } inerrPumper = null;
Clone fragments detected by clone detection tool
File path: /jruby-1.4.0/src/org/jruby/util/ShellLauncher.java File path: /jruby-1.4.0/src/org/jruby/util/ShellLauncher.java
Method name: void prepareOutput(Process) Method name: void prepareInerr(Process)
Number of AST nodes: 5 Number of AST nodes: 5
1
output = unwrapBufferedStream(child.getOutputStream());
1
inerr = unwrapBufferedStream(child.getErrorStream());
2
            if (output instanceof FileOutputStream) {
2
            if (inerr instanceof FileInputStream) {
3
                outputChannel = ((FileOutputStream) output).getChannel();
3
                inerrChannel = ((FileInputStream) inerr).getChannel();
4
            } else {
4
            } else {
5
                outputChannel = null;
5
                inerrChannel = null;
6
            }
6
            }
7
            outputPumper = null;
7
            inerrPumper = null;
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.1
Clones locationClones are declared in the same class
Number of node comparisons1