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: 4 | Number of AST nodes: 4 | |||
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); Font font = new Font("tahoma", Font.PLAIN, 11); | 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); Font font = new Font("sansserif", Font.PLAIN, 11); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 9 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
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(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); | ||||||||||||||||||||
4 | Font font = new Font("tahoma", Font.PLAIN, 11); |
| 4 | Font font = new Font("sansserif", Font.PLAIN, 11); |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables font, mainAShape, container , while Clone fragment #2 returns variables font, mainAShape, container |