Integer button = new Integer(MouseEvent.BUTTON1); AShapeUtil.addMouseFireEvent(outlineAShape, MouseKeyInteractor.MOUSE_PRESS, DefaultDateArea.AE_SELECTED_PRESSED, true, false, button); AShapeUtil.addMouseFireEvent(outlineAShape, MouseKeyInteractor.MOUSE_PRESS, DefaultDateArea.AE_DRAG_PRESSED, true, true, button);
Integer button = new Integer(MouseEvent.BUTTON1); AShapeUtil.addMouseFireEvent(outlineAShape, MouseKeyInteractor.MOUSE_PRESS, DefaultDateArea.AE_SELECTED_PRESSED, true, false, button); AShapeUtil.addMouseFireEvent(outlineAShape, MouseKeyInteractor.MOUSE_PRESS, DefaultDateArea.AE_DRAG_PRESSED, true, true, button);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/calendar/ActivityShapeFactory.java File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/calendar/ActivityShapeFactory.java
Method name: RootAShape createDefaultShape(int) Method name: RootAShape createDefaultShape(int)
Number of AST nodes: 3 Number of AST nodes: 3
1
Integer button = new Integer(MouseEvent.BUTTON1);
1
Integer button = new Integer(MouseEvent.BUTTON1);
2
			AShapeUtil.addMouseFireEvent(outlineAShape,
2
			AShapeUtil.addMouseFireEvent(outlineAShape,
3
					MouseKeyInteractor.MOUSE_PRESS,
3
					MouseKeyInteractor.MOUSE_PRESS,
4
					DefaultDateArea.AE_SELECTED_PRESSED, true, false, button);
4
					DefaultDateArea.AE_SELECTED_PRESSED, true, false, button);
5
			AShapeUtil.addMouseFireEvent(outlineAShape,
5
			AShapeUtil.addMouseFireEvent(outlineAShape,
6
					MouseKeyInteractor.MOUSE_PRESS,
6
					MouseKeyInteractor.MOUSE_PRESS,
7
					DefaultDateArea.AE_DRAG_PRESSED, true, true, button);
7
					DefaultDateArea.AE_DRAG_PRESSED, true, true, button);
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 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 1
    Mapped Statements
    ID Statement ID Statement
    31
    Integer button = new Integer(MouseEvent.BUTTON1);
    45
    Integer button = new Integer(MouseEvent.BUTTON1);
    32
    AShapeUtil.addMouseFireEvent(outlineAShape, MouseKeyInteractor.MOUSE_PRESS, DefaultDateArea.AE_SELECTED_PRESSED, true, false, button);
    46
    AShapeUtil.addMouseFireEvent(outlineAShape, MouseKeyInteractor.MOUSE_PRESS, DefaultDateArea.AE_SELECTED_PRESSED, true, false, button);
    33
    AShapeUtil.addMouseFireEvent(outlineAShape, MouseKeyInteractor.MOUSE_PRESS, DefaultDateArea.AE_DRAG_PRESSED, true, true, button);
    47
    AShapeUtil.addMouseFireEvent(outlineAShape, MouseKeyInteractor.MOUSE_PRESS, DefaultDateArea.AE_DRAG_PRESSED, true, true, button);
    Precondition Violations (1)
    Row Violation
    1Clone fragment #1 returns variables button , while Clone fragment #2 returns variables