File path: /jruby-1.4.0/src/org/jruby/internal/runtime/methods/CompiledMethod.java | File path: /jruby-1.4.0/src/org/jruby/internal/runtime/methods/JittedMethod.java | |||
Method name: void LazyCompiledMethod(RubyModule, String, Arity, Visibility, StaticScope, Object, CallConfiguration, MethodFactory)
|
Method name: void JittedMethod(RubyModule, StaticScope, Script, CallConfiguration, Visibility, Arity, ISourcePosition, DefaultMethod)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | super(implementationClass, visibility, callConfig);↵ | 1 | super(implementationClass, visibility, jitCallConfig);↵ | |
2 | this.method = method;↵ | 2 | this.↵ | |
3 | this.arity = arity;↵ | |||
4 | ↵ | 3 | position = position;↵ | |
4 | this.jitCompiledScript = jitCompiledScript;↵ | |||
5 | this.scope = scope;↵ | 5 | this.staticScope = staticScope;↵ | |
6 | this.scriptObject = scriptObject;↵ | 6 | this.arity = ↵ | |
7 | ↵ | 7 | arity;↵ | |
8 | this.factory = factory; | 8 | this.realMethod = realMethod; | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
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 | 27 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 3 |
Number of unmapped statements in the second code fragment | 3 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | super(implementationClass, visibility, callConfig); |
| 1 | super(implementationClass, visibility, jitCallConfig); | |||||||||||||||
| 2 | this.position = position; | |||||||||||||||||
2 | this.method = method; | | |||||||||||||||||
| 3 | this.jitCompiledScript = jitCompiledScript; | |||||||||||||||||
3 | this.arity = arity; | 5 | this.arity = arity; | ||||||||||||||||
4 | this.scope = scope; |
| 4 | this.staticScope = staticScope; | |||||||||||||||
5 | this.scriptObject = scriptObject; | | |||||||||||||||||
| 6 | this.realMethod = realMethod; | |||||||||||||||||
6 | this.factory = factory; | |
Row | Violation |
---|---|
1 | Expression this.scope is a field being modified, and thus it cannot be parameterized |
2 | Expression this.staticScope is a field being modified, and thus it cannot be parameterized |