if (info.isBlock()) { superClass = JavaMethod.BLOCK_METHODS[info.getMin()][info.getMax()]; } else { superClass = JavaMethod.METHODS[info.getMin()][info.getMax()]; }
if (info.isBlock()) { superClass = JavaMethod.BLOCK_REST_METHODS[info.getMin()][info.getMax()]; } else { superClass = JavaMethod.REST_METHODS[info.getMin()][info.getMax()]; }
Clone fragments detected by clone detection tool
File path: /jruby-1.4.0/src/org/jruby/internal/runtime/methods/InvocationMethodFactory.java File path: /jruby-1.4.0/src/org/jruby/internal/runtime/methods/InvocationMethodFactory.java
Method name: Class getAnnotatedMethodClass(List) Method name: Class getAnnotatedMethodClass(List)
Number of AST nodes: 3 Number of AST nodes: 3
1
if (info.isBlock()) {
1
if (info.isBlock()) {
2
                            superClass = JavaMethod.BLOCK_METHODS[info.getMin()][info.getMax()];
2
                            superClass = JavaMethod.BLOCK_REST_METHODS[info.getMin()][info.getMax()];
3
                        } else {
3
                        } else {
4
                            superClass = JavaMethod.METHODS[info.getMin()][info.getMax()];
4
                            superClass = JavaMethod.REST_METHODS[info.getMin()][info.getMax()];
5
                        }
5
                        }
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 method
Number of node comparisons9
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements3
    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.7
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    26
    if (info.isBlock())
    23
    if (info.isBlock())
    27
    superClass = JavaMethod.BLOCK_METHODS[info.getMin()][info.getMax()];
    27
    superClass = JavaMethod.BLOCK_METHODS[info.getMin()][info.getMax()];
    24
    superClass = JavaMethod.BLOCK_REST_METHODS[info.getMin()][info.getMax()];
    Differences
    Expression1Expression2Difference
    BLOCK_METHODSBLOCK_REST_METHODSVARIABLE_NAME_MISMATCH
    24
    superClass = JavaMethod.BLOCK_REST_METHODS[info.getMin()][info.getMax()];
    else
    else
    28
    superClass = JavaMethod.METHODS[info.getMin()][info.getMax()];
    28
    superClass = JavaMethod.METHODS[info.getMin()][info.getMax()];
    25
    superClass = JavaMethod.REST_METHODS[info.getMin()][info.getMax()];
    Differences
    Expression1Expression2Difference
    METHODSREST_METHODSVARIABLE_NAME_MISMATCH
    25
    superClass = JavaMethod.REST_METHODS[info.getMin()][info.getMax()];
    Precondition Violations (0)
    Row Violation