IRubyObject result = isExceptionHandled(currentException, exception0, context); if (result.isTrue()) return result; return isExceptionHandled(currentException, exception1, context);
IRubyObject result = isExceptionHandled(currentException, exception0, context); if (result.isTrue()) return result; return isExceptionHandled(currentException, exception1, exception2, context);
Clone fragments detected by clone detection tool
File path: /jruby-1.4.0/src/org/jruby/javasupport/util/RuntimeHelpers.java File path: /jruby-1.4.0/src/org/jruby/javasupport/util/RuntimeHelpers.java
Method name: IRubyObject isExceptionHandled(RubyException, IRubyObject, IRubyObject, ThreadContext) Method name: IRubyObject isExceptionHandled(RubyException, IRubyObject, IRubyObject, IRubyObject, ThreadContext)
Number of AST nodes: 4 Number of AST nodes: 4
1
IRubyObject result = isExceptionHandled(currentException, exception0, context);
1
IRubyObject result = isExceptionHandled(currentException, exception0, context);
2
        if (result.isTrue()) return result;
2
        if (result.isTrue()) return result;
3
        return isExceptionHandled(currentException, exception1, context);
3
        return isExceptionHandled(currentException, exception1, exception2, context);
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.1
Clones locationClones are declared in the same class
Number of node comparisons8
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements4
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)1.3
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    IRubyObject result = isExceptionHandled(currentException, exception0, context);
    1
    IRubyObject result = isExceptionHandled(currentException, exception0, context);
    2
    if (result.isTrue())
    2
    if (result.isTrue())
    3
    return result;
    3
    return result;
    4
    return isExceptionHandled(currentException, exception1, context);
    4
    return isExceptionHandled(currentException, exception1, context);
    4
    return isExceptionHandled(currentException, exception1, exception2, context);
    Differences
    Expression1Expression2Difference
    isExceptionHandled(currentException,exception1,context)isExceptionHandled(currentException,exception1,exception2,context)ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression isExceptionHandled(currentException,exception1,context) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression isExceptionHandled(currentException,exception1,exception2,context) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4
    return isExceptionHandled(currentException, exception1, exception2, context);
    Precondition Violations (2)
    Row Violation
    1Expression isExceptionHandled(currentException,exception1,context) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression isExceptionHandled(currentException,exception1,exception2,context) cannot be parameterized, because it has dependencies to/from statements that will be extracted