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: 10 | Number of AST nodes: 10 | |||
1 | Color markColor = new Color(255, 180, 180);↵ | 1 | Color michaelColor = new Color(255, 235, 100);↵ | |
2 | Color markOutlineColor = GfxUtil.tintColor(markColor, -0.4f);↵ | 2 | Color michaelOutlineColor = GfxUtil.tintColor(michaelColor, -0.4f);↵ | |
3 | CategoryDepository.setOverride(markID, "bg", AShape.A_PAINT, mark↵ | 3 | CategoryDepository.setOverride(michaelID, "bg", AShape.A_PAINT,↵ | |
4 | Color);↵ | 4 | michaelColor);↵ | |
5 | CategoryDepository.setOverride(markID, "bgTrans", AShape.A_PAINT,↵ | 5 | CategoryDepository.setOverride(michaelID, "bgTrans", AShape.A_PAINT,↵ | |
6 | GfxUtil.alphaColor(markColor, 145));↵ | 6 | GfxUtil.alphaColor(michaelColor, 145));↵ | |
7 | CategoryDepository.setOverride(markID, "outline", AShape.A_PAINT,↵ | 7 | CategoryDepository.setOverride(michaelID, "outline", AShape.A_PAINT,↵ | |
8 | markOutlineColor);↵ | 8 | michaelOutlineColor);↵ | |
9 | CategoryDepository.setOverride(markID, "treeCheckBox", ↵ | 9 | CategoryDepository.setOverride(michaelID, "treeCheckBox",↵ | |
10 | AShape.A_PAINT,↵ | 10 | AShape.A_PAINT,↵ | |
11 | new ShapeGradientPaint(markColor, 0.2f, 115, ↵ | 11 | new ShapeGradientPaint(michaelColor, 0.2f, 115,↵ | |
12 | false));↵ | 12 | false));↵ | |
13 | CategoryDepository.setOverride(markID, "treeCheckBoxOutline",↵ | 13 | CategoryDepository.setOverride(michaelID, "treeCheckBoxOutline",↵ | |
14 | AShape.A_PAINT, markOutlineColor);↵ | 14 | AShape.A_PAINT, michaelOutlineColor);↵ | |
15 | CategoryDepository.setOverride(markID, "titleText", AShape.A_PAINT,↵ | 15 | CategoryDepository.setOverride(michaelID, "titleText", AShape.A_PAINT,↵ | |
16 | markOutlineColor);↵ | 16 | michaelOutlineColor);↵ | |
17 | CategoryDepository.setOverride(markID, "mainText", AShape.A_PAINT,↵ | 17 | CategoryDepository.setOverride(michaelID, "mainText", AShape.A_PAINT,↵ | |
18 | markOutlineColor);↵ | 18 | michaelOutlineColor);↵ | |
19 | CategoryDepository.setOverride(markID, "treeCheckBox", ↵ | 19 | CategoryDepository.setOverride(michaelID, "treeCheckBox",↵ | |
20 | AShape.A_SHAPE,↵ | 20 | AShape.A_SHAPE,↵ | |
21 | defaultShape); | 21 | 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 | 82 |
Number of mapped statements | 10 |
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 | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15 | Color markColor = new Color(255, 180, 180); |
| 36 | Color michaelColor = new Color(255, 235, 100); | ||||||||||||||||
16 | Color markOutlineColor = GfxUtil.tintColor(markColor, -0.4f); |
| 37 | Color michaelOutlineColor = GfxUtil.tintColor(michaelColor, -0.4f); | ||||||||||||||||
17 | CategoryDepository.setOverride(markID, "bg", AShape.A_PAINT, markColor); |
| 38 | CategoryDepository.setOverride(michaelID, "bg", AShape.A_PAINT, michaelColor); | ||||||||||||||||
18 | CategoryDepository.setOverride(markID, "bgTrans", AShape.A_PAINT, GfxUtil.alphaColor(markColor, 145)); |
| 39 | CategoryDepository.setOverride(michaelID, "bgTrans", AShape.A_PAINT, GfxUtil.alphaColor(michaelColor, 145)); | ||||||||||||||||
19 | CategoryDepository.setOverride(markID, "outline", AShape.A_PAINT, markOutlineColor); |
| 40 | CategoryDepository.setOverride(michaelID, "outline", AShape.A_PAINT, michaelOutlineColor); | ||||||||||||||||
20 | CategoryDepository.setOverride(markID, "treeCheckBox", AShape.A_PAINT, new ShapeGradientPaint(markColor, 0.2f, 115, false)); |
| 41 | CategoryDepository.setOverride(michaelID, "treeCheckBox", AShape.A_PAINT, new ShapeGradientPaint(michaelColor, 0.2f, 115, false)); | ||||||||||||||||
21 | CategoryDepository.setOverride(markID, "treeCheckBoxOutline", AShape.A_PAINT, markOutlineColor); |
| 42 | CategoryDepository.setOverride(michaelID, "treeCheckBoxOutline", AShape.A_PAINT, michaelOutlineColor); | ||||||||||||||||
22 | CategoryDepository.setOverride(markID, "titleText", AShape.A_PAINT, markOutlineColor); |
| 43 | CategoryDepository.setOverride(michaelID, "titleText", AShape.A_PAINT, michaelOutlineColor); | ||||||||||||||||
23 | CategoryDepository.setOverride(markID, "mainText", AShape.A_PAINT, markOutlineColor); |
| 44 | CategoryDepository.setOverride(michaelID, "mainText", AShape.A_PAINT, michaelOutlineColor); | ||||||||||||||||
24 | CategoryDepository.setOverride(markID, "treeCheckBox", AShape.A_SHAPE, defaultShape); |
| 45 | CategoryDepository.setOverride(michaelID, "treeCheckBox", AShape.A_SHAPE, defaultShape); |
Row | Violation |
---|