File path: /jruby-1.4.0/src/org/jruby/java/MiniJava.java | File path: /jruby-1.4.0/src/org/jruby/java/MiniJava.java | |||
Method name: void AbstractJavaWrapperMethodZero(RubyModule, Method)
|
Method name: void AbstractJavaWrapperMethod(RubyModule, Method)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | super(klazz, Visibility.PUBLIC);↵ | 1 | super(klazz, Visibility.PUBLIC);↵ | |
2 | this.handle = HandleFactory.createHandle(klazz.getRuntime().getJRubyClassLoader(), method);↵ | 2 | this.handle = HandleFactory.createHandle(klazz.getRuntime().getJRubyClassLoader(), method);↵ | |
3 | this.isStatic = Modifier.isStatic(method.getModifiers());↵ | 3 | this.isStatic = Modifier.isStatic(method.getModifiers());↵ | |
4 | this.className = method.getDeclaringClass().getCanonicalName();↵ | 4 | this.className = method.getDeclaringClass().getCanonicalName();↵ | |
5 | this.methodName = method.getName();↵ | 5 | this.methodName = method.getName();↵ | |
6 | this.prettySig = prettyParams(method.getParameterTypes());↵ | 6 | this.prettySig = prettyParams(method.getParameterTypes());↵ | |
7 | this.ruby = klazz.getRuntime(); | 7 |
| |
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 the same java file |
Number of node comparisons | 22 |
Number of mapped statements | 7 |
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 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
1 | super(klazz, Visibility.PUBLIC); | 1 | super(klazz, Visibility.PUBLIC); | |
2 | this.handle = HandleFactory.createHandle(klazz.getRuntime().getJRubyClassLoader(), method); | 2 | this.handle = HandleFactory.createHandle(klazz.getRuntime().getJRubyClassLoader(), method); | |
3 | this.isStatic = Modifier.isStatic(method.getModifiers()); | 3 | this.isStatic = Modifier.isStatic(method.getModifiers()); | |
4 | this.className = method.getDeclaringClass().getCanonicalName(); | 4 | this.className = method.getDeclaringClass().getCanonicalName(); | |
5 | this.methodName = method.getName(); | 5 | this.methodName = method.getName(); | |
6 | this.prettySig = prettyParams(method.getParameterTypes()); | 6 | this.prettySig = prettyParams(method.getParameterTypes()); | |
7 | this.ruby = klazz.getRuntime(); | 7 | this.ruby = klazz.getRuntime(); |
Row | Violation |
---|