if (equalInternal(context, value, expected)) { throw new FoundKey(key); }
if (equalInternal(context, value, expected)) { throw FOUND; }
Clone fragments detected by clone detection tool
File path: /jruby-1.4.0/src/org/jruby/RubyHash.java File path: /jruby-1.4.0/src/org/jruby/RubyHash.java
Method name: void visit(IRubyObject, IRubyObject) Method name: void visit(IRubyObject, IRubyObject)
Number of AST nodes: 2 Number of AST nodes: 2
1
if (equalInternal(context, value, expected)) {
1
if (equalInternal(context, value, expected)) {
2
                        throw new FoundKey(key);
2
                        throw FOUND;
3
                    }
3
                    }
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.2
Clones locationClones are in the same java file
Number of node comparisons4
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.5
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    if (equalInternal(context, value, expected))
    1
    if (equalInternal(context, value, expected))
    1
    if (equalInternal(context, value, expected))
    Differences
    Expression1Expression2Difference
    new FoundKey(key)FOUNDTYPE_COMPATIBLE_REPLACEMENT
    1
    if (equalInternal(context, value, expected))
    2
    throw new FoundKey(key);
    2
    throw new FoundKey(key);
    2
    throw FOUND;
    Differences
    Expression1Expression2Difference
    new FoundKey(key)FOUNDTYPE_COMPATIBLE_REPLACEMENT
    2
    throw FOUND;
    Precondition Violations (0)
    Row Violation