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;
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 1 |