PlaceRect contentAbsRect = new AbsRect(new AtStart(12), new AtStart(0), new AtEnd(-1), new AtEnd(-1)); ContainerAShape content = new ContainerAShape("dock", contentAbsRect, new CutEdgeAShapeLayout()); PlaceRect titleTextAbsRect = new AbsRect(new AtStart(0), new AtStart(0), new AtEnd(0), new AtStart(12), null, null, null);
PlaceRect contentAbsRect = new AbsRect(new AtStart(3), new AtStart(0), new AtEnd(-1), new AtEnd(-1)); ContainerAShape content = new ContainerAShape("dock", contentAbsRect, new CutEdgeAShapeLayout()); PlaceRect titleTextAbsRect = new AbsRect(new AtStart(0), new AtStart(0), new AtEnd(0), new AtEnd(-1), null, null, null);
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: RootAShape createLightShape() Method name: RootAShape createTraslucentShapeHorizontal()
Number of AST nodes: 3 Number of AST nodes: 3
1
PlaceRect contentAbsRect = new AbsRect(new AtStart(12), new AtStart(0),
				new AtEnd(-1), new AtEnd(-1));

		ContainerAShape content = new ContainerAShape("dock", contentAbsRect,
				new CutEdgeAShapeLayout());

		PlaceRect titleTextAbsRect = new AbsRect(new AtStart(0),
				new AtStart(0), new AtEnd(0), new AtStart(12), null, null, null);
1
PlaceRect contentAbsRect = new AbsRect(new AtStart(3), new AtStart(0),
				new AtEnd(-1), new AtEnd(-1));

		ContainerAShape content = new ContainerAShape("dock", contentAbsRect,
				new CutEdgeAShapeLayout());

		PlaceRect titleTextAbsRect = new AbsRect(new AtStart(0),
				new AtStart(0), new AtEnd(0), new AtEnd(-1), null, null, null);
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
    8
    PlaceRect contentAbsRect = new AbsRect(new AtStart(12), new AtStart(0), new AtEnd(-1), new AtEnd(-1));
    8
    PlaceRect contentAbsRect = new AbsRect(new AtStart(12), new AtStart(0), new AtEnd(-1), new AtEnd(-1));
    10
    PlaceRect contentAbsRect = new AbsRect(new AtStart(3), new AtStart(0), new AtEnd(-1), new AtEnd(-1));
    Differences
    Expression1Expression2Difference
    123LITERAL_VALUE_MISMATCH
    10
    PlaceRect contentAbsRect = new AbsRect(new AtStart(3), new AtStart(0), new AtEnd(-1), new AtEnd(-1));
    9
    ContainerAShape content = new ContainerAShape("dock", contentAbsRect, new CutEdgeAShapeLayout());
    11
    ContainerAShape content = new ContainerAShape("dock", contentAbsRect, new CutEdgeAShapeLayout());
    10
    PlaceRect titleTextAbsRect = new AbsRect(new AtStart(0), new AtStart(0), new AtEnd(0), new AtStart(12), null, null, null);
    10
    PlaceRect titleTextAbsRect = new AbsRect(new AtStart(0), new AtStart(0), new AtEnd(0), new AtStart(12), null, null, null);
    12
    PlaceRect titleTextAbsRect = new AbsRect(new AtStart(0), new AtStart(0), new AtEnd(0), new AtEnd(-1), null, null, null);
    Differences
    Expression1Expression2Difference
    com.miginfocom.util.gfx.geometry.numbers.AtStartcom.miginfocom.util.gfx.geometry.numbers.AtEndSUBCLASS_TYPE_MISMATCH
    12-1TYPE_COMPATIBLE_REPLACEMENT
    12
    PlaceRect titleTextAbsRect = new AbsRect(new AtStart(0), new AtStart(0), new AtEnd(0), new AtEnd(-1), null, null, null);
    Precondition Violations (1)
    Row Violation
    1Clone fragment #1 returns variables titleTextAbsRect, content , while Clone fragment #2 returns variables titleTextAbsRect, content