File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/base/AscendingIcon.java | File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/base/DescendingIcon.java | |||
Method name: void paintIcon(Component, Graphics, int, int)
|
Method name: void paintIcon(Component, Graphics, int, int)
|
|||
Number of AST nodes: 11 | Number of AST nodes: 11 | |||
1 | Graphics2D g2 = (Graphics2D) g;↵ | 1 | Graphics2D g2 = (Graphics2D) g;↵ | |
2 | int[] xp = new int[3];↵ | 2 | int[] xp = new int[3];↵ | |
3 | int[] yp = new int[3];↵ | 3 | int[] yp = new int[3];↵ | |
4 | xp[0] = x;↵ | 4 | xp[0] = x;↵ | |
5 | xp[1] = x + 9;↵ | 5 | xp[1] = x + 10;↵ | |
6 | xp[2] = x + 4;↵ | 6 | xp[2] = x + 5;↵ | |
7 | yp[0] = y;↵ | 7 | yp[0] = y + 2;↵ | |
8 | yp[1] = y;↵ | 8 | yp[1] = y + 2;↵ | |
9 | yp[2] = y + 5;↵ | 9 | yp[2] = y - 4;↵ | |
10 | g2.setColor(color);↵ | 10 | g2.setColor(Color.black);↵ | |
11 | g2.fillPolygon(xp, yp, 3); | 11 |
| |
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 different classes having the same super class |
Number of node comparisons | 121 |
Number of mapped statements | 11 |
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 | Graphics2D g2 = (Graphics2D)g; | 1 | Graphics2D g2 = (Graphics2D)g; | ||||||||||||||
2 | int[] xp = new int[3]; | 2 | int[] xp = new int[3]; | ||||||||||||||
3 | int[] yp = new int[3]; | 3 | int[] yp = new int[3]; | ||||||||||||||
4 | xp[0] = x; | 4 | xp[0] = x; | ||||||||||||||
5 | xp[1] = x + 9; |
| 5 | xp[1] = x + 10; | |||||||||||||
6 | xp[2] = x + 4; |
| 6 | xp[2] = x + 5; | |||||||||||||
7 | yp[0] = y; |
| 7 | yp[0] = y + 2; | |||||||||||||
8 | yp[1] = y; |
| 8 | yp[1] = y + 2; | |||||||||||||
9 | yp[2] = y + 5; |
| 9 | yp[2] = y - 4; | |||||||||||||
10 | g2.setColor(color); |
| 10 | g2.setColor(Color.black); | |||||||||||||
11 | g2.fillPolygon(xp, yp, 3); | 11 | g2.fillPolygon(xp, yp, 3); |
Row | Violation |
---|