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(gregID, "bg", AShape.A_PAINT, greg↵ | 1 | CategoryDepository.setOverride(michaelID, "bg", AShape.A_PAINT,↵ | |
2 | Color);↵ | 2 | michaelColor);↵ | |
3 | CategoryDepository.setOverride(gregID, "bgTrans", AShape.A_PAINT,↵ | 3 | CategoryDepository.setOverride(michaelID, "bgTrans", AShape.A_PAINT,↵ | |
4 | GfxUtil.alphaColor(gregColor, 145));↵ | 4 | GfxUtil.alphaColor(michaelColor, 145));↵ | |
5 | CategoryDepository.setOverride(gregID, "outline", AShape.A_PAINT,↵ | 5 | CategoryDepository.setOverride(michaelID, "outline", AShape.A_PAINT,↵ | |
6 | gregOutlineColor);↵ | 6 | michaelOutlineColor);↵ | |
7 | CategoryDepository.setOverride(gregID, "treeCheckBox", ↵ | 7 | CategoryDepository.setOverride(michaelID, "treeCheckBox",↵ | |
8 | AShape.A_PAINT,↵ | 8 | AShape.A_PAINT,↵ | |
9 | new ShapeGradientPaint(gregColor, 0.2f, 115, ↵ | 9 | new ShapeGradientPaint(michaelColor, 0.2f, 115,↵ | |
10 | false));↵ | 10 | false));↵ | |
11 | CategoryDepository.setOverride(gregID, "treeCheckBoxOutline",↵ | 11 | CategoryDepository.setOverride(michaelID, "treeCheckBoxOutline",↵ | |
12 | AShape.A_PAINT, gregOutlineColor);↵ | 12 | AShape.A_PAINT, michaelOutlineColor);↵ | |
13 | CategoryDepository.setOverride(gregID, "titleText", AShape.A_PAINT,↵ | 13 | CategoryDepository.setOverride(michaelID, "titleText", AShape.A_PAINT,↵ | |
14 | gregOutlineColor);↵ | 14 | michaelOutlineColor);↵ | |
15 | CategoryDepository.setOverride(gregID, "mainText", AShape.A_PAINT,↵ | 15 | CategoryDepository.setOverride(michaelID, "mainText", AShape.A_PAINT,↵ | |
16 | gregOutlineColor);↵ | 16 | michaelOutlineColor);↵ | |
17 | CategoryDepository.setOverride(gregID, "treeCheckBox", ↵ | 17 | CategoryDepository.setOverride(michaelID, "treeCheckBox",↵ | |
18 | AShape.A_SHAPE,↵ | 18 | AShape.A_SHAPE,↵ | |
19 | defaultShape); | 19 | defaultShape); | |
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 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
48 | CategoryDepository.setOverride(gregID, "bg", AShape.A_PAINT, gregColor); |
| 38 | CategoryDepository.setOverride(michaelID, "bg", AShape.A_PAINT, michaelColor); | |||||||||||||
49 | CategoryDepository.setOverride(gregID, "bgTrans", AShape.A_PAINT, GfxUtil.alphaColor(gregColor, 145)); |
| 39 | CategoryDepository.setOverride(michaelID, "bgTrans", AShape.A_PAINT, GfxUtil.alphaColor(michaelColor, 145)); | |||||||||||||
50 | CategoryDepository.setOverride(gregID, "outline", AShape.A_PAINT, gregOutlineColor); |
| 40 | CategoryDepository.setOverride(michaelID, "outline", AShape.A_PAINT, michaelOutlineColor); | |||||||||||||
51 | CategoryDepository.setOverride(gregID, "treeCheckBox", AShape.A_PAINT, new ShapeGradientPaint(gregColor, 0.2f, 115, false)); |
| 41 | CategoryDepository.setOverride(michaelID, "treeCheckBox", AShape.A_PAINT, new ShapeGradientPaint(michaelColor, 0.2f, 115, false)); | |||||||||||||
52 | CategoryDepository.setOverride(gregID, "treeCheckBoxOutline", AShape.A_PAINT, gregOutlineColor); |
| 42 | CategoryDepository.setOverride(michaelID, "treeCheckBoxOutline", AShape.A_PAINT, michaelOutlineColor); | |||||||||||||
53 | CategoryDepository.setOverride(gregID, "titleText", AShape.A_PAINT, gregOutlineColor); |
| 43 | CategoryDepository.setOverride(michaelID, "titleText", AShape.A_PAINT, michaelOutlineColor); | |||||||||||||
54 | CategoryDepository.setOverride(gregID, "mainText", AShape.A_PAINT, gregOutlineColor); |
| 44 | CategoryDepository.setOverride(michaelID, "mainText", AShape.A_PAINT, michaelOutlineColor); | |||||||||||||
55 | CategoryDepository.setOverride(gregID, "treeCheckBox", AShape.A_SHAPE, defaultShape); |
| 45 | CategoryDepository.setOverride(michaelID, "treeCheckBox", AShape.A_SHAPE, defaultShape); |
Row | Violation |
---|