if (object instanceof JavaObject) {
return JavaUtil.convertJavaToRuby(recv.getRuntime(), ((JavaObject) object).getValue());
}
return object;
if(node instanceof NewlineNode) {
return ((NewlineNode) node).getNextNode();
}
return node;
Clone fragments detected by clone detection tool
File path: /jruby-1.4.0/src/org/jruby/javasupport/JavaUtil.java
|
|
File path: /jruby-1.4.0/src/org/jruby/parser/ParserSupport.java
|
Method name: IRubyObject java_to_primitive(IRubyObject, IRubyObject, Block)
|
|
Method name: Node unwrapNewlineNode(Node)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | if (object instanceof JavaObject) {↵ | | 1 | if(node instanceof ↵
|
2 | return JavaUtil.convertJavaToRuby(recv.getRuntime(), ((JavaObject) object).getValu↵ | | 2 | NewlineNode) {↵
|
3 | e());↵ | | 3 | return ((NewlineNode) node).getNextNode();↵
|
4 | }↵ | | 4 | ↵
|
|
5 | ↵ | | 5 | }↵
|
6 | return object; | | 6 | return node;
|
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 in different classes |
Number of node comparisons | 1 |