g.drawRect(x + i, y + i, width - i - i - 1, height - i - i - 1);
g.drawRoundRect(x + i, y + i, width - i - i - 1, height - i - i - 1, arc, arc);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/message/viewer/MessageBorder.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/message/viewer/MessageBorder.java
Method name: void paintBorder(Component, Graphics, int, int, int, int) Method name: void paintBorder(Component, Graphics, int, int, int, int)
Number of AST nodes: 1 Number of AST nodes: 1
1
g.drawRect(x + i, y + i, width - i - i - 1, height - i - i - 1
1
g.drawRoundRect(x + i, y + i, width - i - i - 1, height - i - i
2
);
2
						- 1, arc, arc);
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.0
Clones locationClones are in the same method
Number of node comparisons2
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements1
    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
    6
    g.drawRect(x + i, y + i, width - i - i - 1, height - i - i - 1);
    6
    g.drawRect(x + i, y + i, width - i - i - 1, height - i - i - 1);
    7
    g.drawRoundRect(x + i, y + i, width - i - i - 1, height - i - i - 1, arc, arc);
    Differences
    Expression1Expression2Difference
    drawRectdrawRoundRectMETHOD_INVOCATION_NAME_MISMATCH
    g.drawRect(x + i,y + i,width - i - i- 1,height - i - i- 1)g.drawRoundRect(x + i,y + i,width - i - i- 1,height - i - i- 1,arc,arc)ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression g.drawRect(x + i,y + i,width - i - i- 1,height - i - i- 1) is a void method call, and thus it cannot be parameterized
    Expression g.drawRoundRect(x + i,y + i,width - i - i- 1,height - i - i- 1,arc,arc) is a void method call, and thus it cannot be parameterized
    Expression g.drawRect(x + i,y + i,width - i - i- 1,height - i - i- 1) is a void method call, and thus it cannot be parameterized
    Expression g.drawRoundRect(x + i,y + i,width - i - i- 1,height - i - i- 1,arc,arc) is a void method call, and thus it cannot be parameterized
    7
    g.drawRoundRect(x + i, y + i, width - i - i - 1, height - i - i - 1, arc, arc);
    Precondition Violations (4)
    Row Violation
    1Expression g.drawRect(x + i,y + i,width - i - i- 1,height - i - i- 1) is a void method call, and thus it cannot be parameterized
    2Expression g.drawRoundRect(x + i,y + i,width - i - i- 1,height - i - i- 1,arc,arc) is a void method call, and thus it cannot be parameterized
    3Expression g.drawRect(x + i,y + i,width - i - i- 1,height - i - i- 1) is a void method call, and thus it cannot be parameterized
    4Expression g.drawRoundRect(x + i,y + i,width - i - i- 1,height - i - i- 1,arc,arc) is a void method call, and thus it cannot be parameterized