ContainerAShape container = new ContainerAShape(); ShapeGradientPaint bgPaint = new ShapeGradientPaint(new Color(200, 200, 255), new Color(230, 230, 255), 90, 1f, 0.5f, false); FillAShape mainAShape = new FillAShape("box" + name, new Rectangle(0, 0, 1, 1), AbsRect.FILL, bgPaint, GfxUtil.AA_HINT_OFF);
ContainerAShape container = new ContainerAShape(); ShapeGradientPaint bgPaint = new ShapeGradientPaint(new Color(180, 180, 180), new Color(230, 230, 230), 90, 1f, 0.5f, false); FillAShape mainAShape = new FillAShape("box" + name, new Rectangle(0, 0, 1, 1), AbsRect.FILL, bgPaint, GfxUtil.AA_HINT_OFF);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/calendar/AShapeCreator.java File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/calendar/AShapeCreator.java
Method name: AShape createHorTextShape(String, String, AtRefRangeNumber, AtRefRangeNumber) Method name: AShape createVerTextShape(String, String, int)
Number of AST nodes: 3 Number of AST nodes: 3
1
ContainerAShape container = new ContainerAShape();

		ShapeGradientPaint bgPaint = new ShapeGradientPaint(new Color(200, 200,
				255), new Color(230, 230, 255), 90, 1f, 0.5f, false);

		FillAShape mainAShape = new FillAShape("box" + name, new Rectangle(0,
				0, 1, 1), AbsRect.FILL, bgPaint, GfxUtil.AA_HINT_OFF);
1
ContainerAShape container = new ContainerAShape();

		ShapeGradientPaint bgPaint = new ShapeGradientPaint(new Color(180, 180,
				180), new Color(230, 230, 230), 90, 1f, 0.5f, false);

		FillAShape mainAShape = new FillAShape("box" + name, new Rectangle(0,
				0, 1, 1), AbsRect.FILL, bgPaint, GfxUtil.AA_HINT_OFF);
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 declared in the same class
Number of node comparisons5
  1. {Non-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
    1
    ContainerAShape container = new ContainerAShape();
    1
    ContainerAShape container = new ContainerAShape();
    2
    ShapeGradientPaint bgPaint = new ShapeGradientPaint(new Color(200, 200, 255), new Color(230, 230, 255), 90, 1f, 0.5f, false);
    2
    ShapeGradientPaint bgPaint = new ShapeGradientPaint(new Color(200, 200, 255), new Color(230, 230, 255), 90, 1f, 0.5f, false);
    2
    ShapeGradientPaint bgPaint = new ShapeGradientPaint(new Color(180, 180, 180), new Color(230, 230, 230), 90, 1f, 0.5f, false);
    Differences
    Expression1Expression2Difference
    200180LITERAL_VALUE_MISMATCH
    200180LITERAL_VALUE_MISMATCH
    255180LITERAL_VALUE_MISMATCH
    255230LITERAL_VALUE_MISMATCH
    2
    ShapeGradientPaint bgPaint = new ShapeGradientPaint(new Color(180, 180, 180), new Color(230, 230, 230), 90, 1f, 0.5f, false);
    3
    FillAShape mainAShape = new FillAShape("box" + name, new Rectangle(0, 0, 1, 1), AbsRect.FILL, bgPaint, GfxUtil.AA_HINT_OFF);
    3
    FillAShape mainAShape = new FillAShape("box" + name, new Rectangle(0, 0, 1, 1), AbsRect.FILL, bgPaint, GfxUtil.AA_HINT_OFF);
    Precondition Violations (1)
    Row Violation
    1Clone fragment #1 returns variables mainAShape, container , while Clone fragment #2 returns variables mainAShape, container