g.setColor(new Color(218, 215, 201)); g.drawLine(0, y, getWidth(), y); y++; g.setColor(new Color(233, 231, 217)); g.drawLine(0, y, getWidth(), y); y = getHeight() - 3; g.setColor(new Color(233, 232, 218)); g.drawLine(0, y, getWidth(), y);
g.setColor(new Color(233, 232, 218)); g.drawLine(0, y, getWidth(), y); y++; g.setColor(new Color(233, 231, 216)); g.drawLine(0, y, getWidth(), y); y = getHeight() - 1; g.setColor(new Color(221, 221, 220)); g.drawLine(0, y, getWidth(), y);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/base/JStatusBar.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/base/JStatusBar.java
Method name: void paintComponent(Graphics) Method name: void paintComponent(Graphics)
Number of AST nodes: 8 Number of AST nodes: 8
1
g.setColor(new Color(218, 215, 201));
1
g.setColor(new Color(233, 232, 218));
2
		g.drawLine(0, y, getWidth(), y);
2
		g.drawLine(0, y, getWidth(), y);
3
		y++;
3
		y++;
4
		g.setColor(new Color(233, 231, 217));
4
		g.setColor(new Color(233, 231, 216));
5
		g.drawLine(0, y, getWidth(), y);
5
		g.drawLine(0, y, getWidth(), y);
6
		y = getHeight() - 3;
6
		y = getHeight() - 1;
7
		g.setColor(new Color(233, 232, 218));
7
		g.setColor(new Color(221, 221, 220));
8
		g.drawLine(0, y, getWidth(), y);
8
		g.drawLine(0, y, getWidth(), y);
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 comparisons44
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements8
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    9
    g.setColor(new Color(218, 215, 201));
    9
    g.setColor(new Color(218, 215, 201));
    19
    g.drawLine(0, y, getWidth(), y);
    Differences
    Expression1Expression2Difference
    setColordrawLineMETHOD_INVOCATION_NAME_MISMATCH
    g.setColor(new Color(218,215,201))g.drawLine(0,y,getWidth(),y)ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression g.drawLine(0,y,getWidth(),y) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression g.setColor(new Color(218,215,201)) is a void method call, and thus it cannot be parameterized
    Expression g.drawLine(0,y,getWidth(),y) is a void method call, and thus it cannot be parameterized
    Expression g.drawLine(0,y,getWidth(),y) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression g.setColor(new Color(218,215,201)) is a void method call, and thus it cannot be parameterized
    Expression g.drawLine(0,y,getWidth(),y) is a void method call, and thus it cannot be parameterized
    19
    g.drawLine(0, y, getWidth(), y);
    10
    g.drawLine(0, y, getWidth(), y);
    16
    g.drawLine(0, y, getWidth(), y);
    11
    y++;
    17
    y++;
    12
    g.setColor(new Color(233, 231, 217));
    12
    g.setColor(new Color(233, 231, 217));
    18
    g.setColor(new Color(233, 231, 216));
    Differences
    Expression1Expression2Difference
    217216LITERAL_VALUE_MISMATCH
    18
    g.setColor(new Color(233, 231, 216));
    13
    g.drawLine(0, y, getWidth(), y);
    16
    g.drawLine(0, y, getWidth(), y);
    14
    y = getHeight() - 3;
    14
    y = getHeight() - 3;
    20
    y = getHeight() - 1;
    Differences
    Expression1Expression2Difference
    31LITERAL_VALUE_MISMATCH
    20
    y = getHeight() - 1;
    15
    g.setColor(new Color(233, 232, 218));
    15
    g.setColor(new Color(233, 232, 218));
    16
    g.drawLine(0, y, getWidth(), y);
    16
    g.drawLine(0, y, getWidth(), y);
                                                                                  
    21
    g.setColor(new Color(221, 221, 220));
                                                                      
    22
    g.drawLine(0, y, getWidth(), y);
    Precondition Violations (6)
    Row Violation
    1Expression g.drawLine(0,y,getWidth(),y) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression g.setColor(new Color(218,215,201)) is a void method call, and thus it cannot be parameterized
    3Expression g.drawLine(0,y,getWidth(),y) is a void method call, and thus it cannot be parameterized
    4Expression g.drawLine(0,y,getWidth(),y) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5Expression g.setColor(new Color(218,215,201)) is a void method call, and thus it cannot be parameterized
    6Expression g.drawLine(0,y,getWidth(),y) is a void method call, and thus it cannot be parameterized