File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/base/JStatusBar.java | File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/base/JStatusBar.java | |||
Method name: void paintComponent(Graphics)
|
Method name: void paintComponent(Graphics)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | g.setColor(new Color(218, 215, 201));↵ | 1 | g.setColor(new Color(233, 232, 218));↵ | |
2 | g.drawLine(0, y, getWidth(), y);↵ | 2 | g.drawLine(0, y, getWidth(), y);↵ | |
3 | y++;↵ | 3 | y++;↵ | |
4 | g.setColor(new Color(233, 231, 217));↵ | 4 | g.setColor(new Color(233, 231, 216));↵ | |
5 | g.drawLine(0, y, getWidth(), y);↵ | 5 | g.drawLine(0, y, getWidth(), y);↵ | |
6 | y = getHeight() - 3;↵ | 6 | y = getHeight() - 1;↵ | |
7 | g.setColor(new Color(233, 232, 218));↵ | 7 | g.setColor(new Color(221, 221, 220));↵ | |
8 | g.drawLine(0, y, getWidth(), y); | 8 |
| |
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 in the same method |
Number of node comparisons | 44 |
Number of mapped statements | 8 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9 | g.setColor(new Color(218, 215, 201)); |
| 19 | g.drawLine(0, y, getWidth(), y); | |||||||||||||||||||
10 | g.drawLine(0, y, getWidth(), y); | 16 | g.drawLine(0, y, getWidth(), y); | ||||||||||||||||||||
11 | y++; | 17 | y++; | ||||||||||||||||||||
12 | g.setColor(new Color(233, 231, 217)); |
| 18 | g.setColor(new Color(233, 231, 216)); | |||||||||||||||||||
13 | g.drawLine(0, y, getWidth(), y); | 16 | g.drawLine(0, y, getWidth(), y); | ||||||||||||||||||||
14 | y = getHeight() - 3; |
| 20 | y = getHeight() - 1; | |||||||||||||||||||
15 | g.setColor(new Color(233, 232, 218)); | 15 | g.setColor(new Color(233, 232, 218)); | ||||||||||||||||||||
16 | g.drawLine(0, y, getWidth(), y); | 16 | g.drawLine(0, y, getWidth(), y); | ||||||||||||||||||||
| 21 | g.setColor(new Color(221, 221, 220)); | |||||||||||||||||||||
| 22 | g.drawLine(0, y, getWidth(), y); |
Row | Violation |
---|---|
1 | Expression g.drawLine(0,y,getWidth(),y) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression g.setColor(new Color(218,215,201)) is a void method call, and thus it cannot be parameterized |
3 | Expression g.drawLine(0,y,getWidth(),y) is a void method call, and thus it cannot be parameterized |
4 | Expression g.drawLine(0,y,getWidth(),y) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression g.setColor(new Color(218,215,201)) is a void method call, and thus it cannot be parameterized |
6 | Expression g.drawLine(0,y,getWidth(),y) is a void method call, and thus it cannot be parameterized |