Rectangle imageBounds = image.getBounds(); result.width = imageBounds.width; result.height = imageBounds.height;
Rectangle imageBounds = firstImage.getBounds(); result.width = imageBounds.width; result.height = imageBounds.height;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/common/ui/viewer/ExtendedTableTreeViewer.java File path: /emf-2.4.1/src/org/eclipse/emf/common/ui/viewer/ExtendedTableTreeViewer.java
Method name: Rectangle getImageBounds(TableItem, int) Method name: Rectangle getFirstImageBounds(TableItem)
Number of AST nodes: 3 Number of AST nodes: 3
1
Rectangle imageBounds = image.getBounds();
1
Rectangle imageBounds = firstImage.getBounds();
2
            result.width = imageBounds.width;
2
          result.width = imageBounds.width;
3
            result.height = imageBounds.height;
3
          result.height = imageBounds.height;
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.0
Clones locationClones are declared in the same class
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)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    11
    Rectangle imageBounds = image.getBounds();
    11
    Rectangle imageBounds = image.getBounds();
    8
    Rectangle imageBounds = firstImage.getBounds();
    Differences
    Expression1Expression2Difference
    imagefirstImageVARIABLE_NAME_MISMATCH
    8
    Rectangle imageBounds = firstImage.getBounds();
    12
    result.width = imageBounds.width;
    9
    result.width = imageBounds.width;
    13
    result.height = imageBounds.height;
    10
    result.height = imageBounds.height;
    Precondition Violations (0)
    Row Violation