super(implementationClass, visibility, callConfig); this.method = method; this.arity = arity; this.scope = scope; this.scriptObject = scriptObject; this.factory = factory;
super(implementationClass, visibility, jitCallConfig); this.position = position; this.jitCompiledScript = jitCompiledScript; this.staticScope = staticScope; this.arity = arity; this.realMethod = realMethod;
Clone fragments detected by clone detection tool
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;
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes having the same super class
Number of node comparisons27
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment3
    Number of unmapped statements in the second code fragment3
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    super(implementationClass, visibility, callConfig);
    1
    super(implementationClass, visibility, callConfig);
    1
    super(implementationClass, visibility, jitCallConfig);
    Differences
    Expression1Expression2Difference
    callConfigjitCallConfigVARIABLE_NAME_MISMATCH
    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.scope = scope;
    4
    this.staticScope = staticScope;
    Differences
    Expression1Expression2Difference
    scopestaticScopeVARIABLE_NAME_MISMATCH
    scopestaticScopeVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.scope is a field being modified, and thus it cannot be parameterized
    Expression this.staticScope is a field being modified, and thus it cannot be parameterized
    4
    this.staticScope = staticScope;
    5
    this.scriptObject = scriptObject;
                                                                        
                                                                
    6
    this.realMethod = realMethod;
    6
    this.factory = factory;
                                                    
    Precondition Violations (2)
    Row Violation
    1Expression this.scope is a field being modified, and thus it cannot be parameterized
    2Expression this.staticScope is a field being modified, and thus it cannot be parameterized