output = unwrapBufferedStream(child.getOutputStream()); if (output instanceof FileOutputStream) { outputChannel = ((FileOutputStream) output).getChannel(); } else { outputChannel = null; } outputPumper = null;
input = unwrapBufferedStream(child.getInputStream()); if (input instanceof FileInputStream) { inputChannel = ((FileInputStream) input).getChannel(); } else { inputChannel = null; } inputPumper = 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 prepareInput(Process)
Number of AST nodes: 5 Number of AST nodes: 5
1
output = unwrapBufferedStream(child.getOutputStream());
1
input = unwrapBufferedStream(child.getInputStream());
2
            if (output instanceof FileOutputStream) {
2
            if (input instanceof FileInputStream) {
3
                outputChannel = ((FileOutputStream) output).getChannel();
3
                inputChannel = ((FileInputStream) input).getChannel();
4
            } else {
4
            } else {
5
                outputChannel = null;
5
                inputChannel = null;
6
            }
6
            }
7
            outputPumper = null;
7
            inputPumper = 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