if (h == LengthConstraintType.NONE) { contentSize = arrangeNN(container, g2); } else if (h == LengthConstraintType.FIXED) { throw new RuntimeException("Not implemented."); } else if (h == LengthConstraintType.RANGE) { throw new RuntimeException("Not implemented."); }
if (h == LengthConstraintType.NONE) { throw new RuntimeException("Not implemented."); } else if (h == LengthConstraintType.FIXED) { return arrangeFF(container, g2, constraint); } else if (h == LengthConstraintType.RANGE) { throw new RuntimeException("Not implemented."); }
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/block/BorderArrangement.java File path: /jfreechart-1.0.10/src/org/jfree/chart/block/ColumnArrangement.java
Method name: Size2D arrange(BlockContainer, Graphics2D, RectangleConstraint) Method name: Size2D arrange(BlockContainer, Graphics2D, RectangleConstraint)
Number of AST nodes: 6 Number of AST nodes: 6
1
if (h == LengthConstraintType.NONE) {
1
if (h == LengthConstraintType.NONE) {
2
                contentSize = arrangeNN(container, g2);
2
                throw new RuntimeException("Not implemented.");  
3
            }
3
            }
4
            else if (h == LengthConstraintType.FIXED) {
4
            else if (h == LengthConstraintType.FIXED) {
5
                throw new RuntimeException("Not implemented.");
5
                return arrangeFF(container, g2, constraint); 
6
            }
6
            }
7
            else if (h == LengthConstraintType.RANGE) {
7
            else if (h == LengthConstraintType.RANGE) {
8
                throw new RuntimeException("Not implemented.");
8
                throw new RuntimeException("Not implemented.");  
9
            }
9
            }
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.7
Clones locationClones are in different classes
Number of node comparisons28
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements4
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)1.2
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    6
    if (h == LengthConstraintType.NONE)
    11
    if (h == LengthConstraintType.NONE)
    7
    contentSize = arrangeNN(container, g2);
    7
    contentSize = arrangeNN(container, g2);
    Preondition Violations
    Unmatched statement contentSize=arrangeNN(container,g2); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    Unmatched statement contentSize=arrangeNN(container,g2); cannot be moved before or after the extracted code, because it throws exception(s) that should be caught by a try block that will be extracted
                                                                                  
                                                                                                          
    12
    throw new RuntimeException("Not implemented.");
    Preondition Violations
    Unmatched statement throw new RuntimeException("Not implemented."); cannot be moved before or after the extracted code, because it throws exception(s) that should be caught by a try block that will be extracted
    Unmatched throw new RuntimeException("Not implemented.");
    12
    throw new RuntimeException("Not implemented.");
    8
    else if (h == LengthConstraintType.FIXED)
    8
    else if (h == LengthConstraintType.FIXED)
    15
    else if (h == LengthConstraintType.RANGE)
    Differences
    Expression1Expression2Difference
    FIXEDRANGEVARIABLE_NAME_MISMATCH
    15
    else if (h == LengthConstraintType.RANGE)
    9
    throw new RuntimeException("Not implemented.");
    16
    throw new RuntimeException("Not implemented.");
    10
    else if (h == LengthConstraintType.RANGE)
    10
    else if (h == LengthConstraintType.RANGE)
    13
    else if (h == LengthConstraintType.FIXED)
    Differences
    Expression1Expression2Difference
    RANGEFIXEDVARIABLE_NAME_MISMATCH
    13
    else if (h == LengthConstraintType.FIXED)
    11
    throw new RuntimeException("Not implemented.");
    11
    throw new RuntimeException("Not implemented.");
    Preondition Violations
    Unmatched statement throw new RuntimeException("Not implemented."); cannot be moved before or after the extracted code, because it throws exception(s) that should be caught by a try block that will be extracted
    Unmatched throw new RuntimeException("Not implemented.");
                                                                                                          
                                                                                                
    14
    return arrangeFF(container, g2, constraint);
    Preondition Violations
    Unmatched return arrangeFF(container,g2,constraint);
    14
    return arrangeFF(container, g2, constraint);
    Precondition Violations (7)
    Row Violation
    1Unmatched statement contentSize=arrangeNN(container,g2); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2Unmatched statement contentSize=arrangeNN(container,g2); cannot be moved before or after the extracted code, because it throws exception(s) that should be caught by a try block that will be extracted
    3Unmatched statement throw new RuntimeException("Not implemented."); cannot be moved before or after the extracted code, because it throws exception(s) that should be caught by a try block that will be extracted
    4Unmatched throw new RuntimeException("Not implemented.");
    5Unmatched statement throw new RuntimeException("Not implemented."); cannot be moved before or after the extracted code, because it throws exception(s) that should be caught by a try block that will be extracted
    6Unmatched throw new RuntimeException("Not implemented.");
    7Unmatched return arrangeFF(container,g2,constraint);