File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/frame/TestDataGenerator.java | File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/frame/TestDataGenerator.java | |||
Method name: void generateTestData()
|
Method name: void generateTestData()
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | CategoryDepository.setOverride(susanID, "bg", AShape.A_PAINT,↵ | 1 | CategoryDepository.setOverride(gregID, "bg", AShape.A_PAINT,↵ | |
2 | susanColor);↵ | 2 | gregColor);↵ | |
3 | CategoryDepository.setOverride(susanID, "bgTrans", AShape.A_PAINT,↵ | 3 | CategoryDepository.setOverride(gregID, "bgTrans", AShape.A_PAINT,↵ | |
4 | GfxUtil.alphaColor(susanColor, 145));↵ | 4 | GfxUtil.alphaColor(gregColor, 145));↵ | |
5 | CategoryDepository.setOverride(susanID, "outline", AShape.A_PAINT,↵ | 5 | CategoryDepository.setOverride(gregID, "outline", AShape.A_PAINT,↵ | |
6 | susanOutlineColor);↵ | 6 | gregOutlineColor);↵ | |
7 | CategoryDepository.setOverride(susanID, "treeCheckBox", AShape.A_PAINT,↵ | 7 | CategoryDepository.setOverride(gregID, "treeCheckBox", AShape.A_PAINT,↵ | |
8 | new ShapeGradientPaint(susanColor, 0.2f, 115, false));↵ | 8 | new ShapeGradientPaint(gregColor, 0.2f, 115, false));↵ | |
9 | CategoryDepository.setOverride(susanID, "treeCheckBoxOutline",↵ | 9 | CategoryDepository.setOverride(gregID, "treeCheckBoxOutline",↵ | |
10 | AShape.A_PAINT, susanOutlineColor);↵ | 10 | AShape.A_PAINT, gregOutlineColor);↵ | |
11 | CategoryDepository.setOverride(susanID, "titleText", AShape.A_PAINT,↵ | 11 | CategoryDepository.setOverride(gregID, "titleText", AShape.A_PAINT,↵ | |
12 | susanOutlineColor);↵ | 12 | gregOutlineColor);↵ | |
13 | CategoryDepository.setOverride(susanID, "mainText", AShape.A_PAINT,↵ | 13 | CategoryDepository.setOverride(gregID, "mainText", AShape.A_PAINT,↵ | |
14 | susanOutlineColor);↵ | 14 | gregOutlineColor);↵ | |
15 | CategoryDepository.setOverride(susanID, "treeCheckBox", AShape.A_SHAPE,↵ | 15 | CategoryDepository.setOverride(gregID, "treeCheckBox", AShape.A_SHAPE,↵ | |
16 | defaultShape); | 16 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 64 |
Number of mapped statements | 8 |
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 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28 | CategoryDepository.setOverride(susanID, "bg", AShape.A_PAINT, susanColor); |
| 48 | CategoryDepository.setOverride(gregID, "bg", AShape.A_PAINT, gregColor); | |||||||||||||
29 | CategoryDepository.setOverride(susanID, "bgTrans", AShape.A_PAINT, GfxUtil.alphaColor(susanColor, 145)); |
| 49 | CategoryDepository.setOverride(gregID, "bgTrans", AShape.A_PAINT, GfxUtil.alphaColor(gregColor, 145)); | |||||||||||||
30 | CategoryDepository.setOverride(susanID, "outline", AShape.A_PAINT, susanOutlineColor); |
| 50 | CategoryDepository.setOverride(gregID, "outline", AShape.A_PAINT, gregOutlineColor); | |||||||||||||
31 | CategoryDepository.setOverride(susanID, "treeCheckBox", AShape.A_PAINT, new ShapeGradientPaint(susanColor, 0.2f, 115, false)); |
| 51 | CategoryDepository.setOverride(gregID, "treeCheckBox", AShape.A_PAINT, new ShapeGradientPaint(gregColor, 0.2f, 115, false)); | |||||||||||||
32 | CategoryDepository.setOverride(susanID, "treeCheckBoxOutline", AShape.A_PAINT, susanOutlineColor); |
| 52 | CategoryDepository.setOverride(gregID, "treeCheckBoxOutline", AShape.A_PAINT, gregOutlineColor); | |||||||||||||
33 | CategoryDepository.setOverride(susanID, "titleText", AShape.A_PAINT, susanOutlineColor); |
| 53 | CategoryDepository.setOverride(gregID, "titleText", AShape.A_PAINT, gregOutlineColor); | |||||||||||||
34 | CategoryDepository.setOverride(susanID, "mainText", AShape.A_PAINT, susanOutlineColor); |
| 54 | CategoryDepository.setOverride(gregID, "mainText", AShape.A_PAINT, gregOutlineColor); | |||||||||||||
35 | CategoryDepository.setOverride(susanID, "treeCheckBox", AShape.A_SHAPE, defaultShape); |
| 55 | CategoryDepository.setOverride(gregID, "treeCheckBox", AShape.A_SHAPE, defaultShape); |
Row | Violation |
---|