if(data.next_p != -1) {
argf_close(context, data.currentFile);
data.next_p = 1;
continue;
}
if (line.isNil() && data.next_p != -1) {
argf_close(context, data.currentFile);
data.next_p = 1;
retry = true;
}
Clone fragments detected by clone detection tool
File path: /jruby-1.4.0/src/org/jruby/RubyArgsFile.java
|
|
File path: /jruby-1.4.0/src/org/jruby/RubyArgsFile.java
|
Method name: IRubyObject read(ThreadContext, IRubyObject, IRubyObject[])
|
|
Method name: IRubyObject argf_getline(ThreadContext, IRubyObject, IRubyObject[])
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | if(data.next_p != -1) {↵ | | 1 | if (line.isNil() && data.next_p != -1) {↵
|
2 | argf_close(context, data.currentFile);↵ | | 2 | argf_close(context, data.currentFile);↵
|
3 | data.next_p = 1;↵ | | 3 | data.next_p = 1;↵
|
4 | continue;↵ | | 4 | ↵
|
5 | ↵ | | 5 | retry = true;↵
|
6 | } | | 6 | }
|
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 |