File path: /jruby-1.4.0/src/org/jruby/RubyLocalJumpError.java | File path: /jruby-1.4.0/src/org/jruby/util/io/JRubyObjectInputStream.java | |||
Method name: RubyClass createLocalJumpErrorClass(Ruby, RubyClass)
|
Method name: RubyClass createJRubyObjectInputStream(Ruby)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | RubyClass nameErrorClass = runtime.defineClass("LocalJumpError", standardErrorClass, LOCALJUMPERROR_ALLOCATOR);↵ | 1 | RubyClass result = runtime.defineClass("↵ | |
2 | ↵ | |||
3 | nameErrorClass↵ | 2 | JRubyObjectInputStream",runtime.getObject(),JROIS_ALLOCATOR);↵ | |
4 | .defineAnnotatedMethods(RubyLocalJumpError.class);↵ | 3 | result.defineAnnotatedMethods(JRuby↵ | |
5 | return nameErrorClass↵ | 4 | ObjectInputStream.class);↵ | |
6 | ; | 5 | return result; | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 9 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | RubyClass nameErrorClass = runtime.defineClass("LocalJumpError", standardErrorClass, LOCALJUMPERROR_ALLOCATOR); |
| 1 | RubyClass result = runtime.defineClass("JRubyObjectInputStream", runtime.getObject(), JROIS_ALLOCATOR); | |||||||||||||||||||
2 | nameErrorClass.defineAnnotatedMethods(RubyLocalJumpError.class); |
| 2 | result.defineAnnotatedMethods(JRubyObjectInputStream.class); | |||||||||||||||||||
3 | return nameErrorClass; |
| 3 | return result; |
Row | Violation |
---|