flater.setLevel(level); flater.setStrategy(strategy); run();
if(init != null) { initMethod.aload(THIS); initMethod.ldc(init); initMethod.putfield(getClassname(),name, type); }
Clone fragments detected by clone detection tool
File path: /jruby-1.4.0/src/org/jruby/util/ZlibDeflate.java File path: /jruby-1.4.0/src/org/jruby/compiler/impl/StandardASMCompiler.java
Method name: void params(int, int) Method name: String getNewField(String, String, Object)
Number of AST nodes: 3 Number of AST nodes: 4
1
flater.setLevel(level);
2
        flater.setStrategy(strategy
1
if(init != null) {
2
            initMethod.aload(THIS);
3
            initMethod.ldc(init);
3
);
4
            initMethod.putfield(getClassname(),name, type);
4
        run();
5
        }
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
Number of node comparisons9
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    flater.setLevel(level);
                                                        
    2
    flater.setStrategy(strategy);
                                                                    
    3
    run();
    3
    run();
    4
    initMethod.aload(THIS);
    Differences
    Expression1Expression2Difference
    runaloadMETHOD_INVOCATION_NAME_MISMATCH
    run()initMethod.aload(THIS)ARGUMENT_NUMBER_MISMATCH
    initMethodMISSING_METHOD_INVOCATION_EXPRESSION
    Preondition Violations
    Expression run() is a void method call, and thus it cannot be parameterized
    Expression initMethod.aload(THIS) is a void method call, and thus it cannot be parameterized
    Expression run() is a void method call, and thus it cannot be parameterized
    Expression initMethod.aload(THIS) is a void method call, and thus it cannot be parameterized
    4
    initMethod.aload(THIS);
                                                    
    5
    initMethod.ldc(init);
                                                                                                      
    6
    initMethod.putfield(getClassname(), name, type);
    Precondition Violations (4)
    Row Violation
    1Expression run() is a void method call, and thus it cannot be parameterized
    2Expression initMethod.aload(THIS) is a void method call, and thus it cannot be parameterized
    3Expression run() is a void method call, and thus it cannot be parameterized
    4Expression initMethod.aload(THIS) is a void method call, and thus it cannot be parameterized