File path: /jruby-1.4.0/src/org/jruby/javasupport/proxy/JavaProxyClass.java | File path: /jruby-1.4.0/src/org/jruby/javasupport/proxy/JavaProxyConstructor.java | |||
Method name: RubyClass createJavaProxyClassClass(Ruby, RubyModule)
|
Method name: RubyClass createJavaProxyConstructorClass(Ruby, RubyModule)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | RubyClass result = javaModule.defineClassUnder("JavaProxyClass",↵ | 1 | RubyClass result = javaProxyModule.defineClassUnder("JavaProxyConstructor",↵ | |
2 | runtime.getObject(),ObjectAllocator.NOT_ALLOCATABLE_ALLOCATOR);↵ | 2 | runtime.getObject(), ObjectAllocator.NOT_ALLOCATABLE_ALLOCATOR);↵ | |
3 | JavaProxyReflectionObject.registerRubyMethods(runtime, result);↵ | 3 | JavaProxyReflectionObject.registerRubyMethods(runtime, result);↵ | |
4 | result.defineAnnotatedMethods(JavaProxyClass.class);↵ | 4 | result.defineAnnotatedMethods(JavaProxyConstructor.class);↵ | |
5 | return result; | 5 |
| |
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 | 16 |
Number of mapped statements | 4 |
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 result = javaModule.defineClassUnder("JavaProxyClass", runtime.getObject(), ObjectAllocator.NOT_ALLOCATABLE_ALLOCATOR); |
| 1 | RubyClass result = javaProxyModule.defineClassUnder("JavaProxyConstructor", runtime.getObject(), ObjectAllocator.NOT_ALLOCATABLE_ALLOCATOR); | |||||||||||||
2 | JavaProxyReflectionObject.registerRubyMethods(runtime, result); | 2 | JavaProxyReflectionObject.registerRubyMethods(runtime, result); | ||||||||||||||
3 | result.defineAnnotatedMethods(JavaProxyClass.class); | 3 | result.defineAnnotatedMethods(JavaProxyConstructor.class); | ||||||||||||||
4 | return result; | 4 | return result; |
Row | Violation |
---|