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: 6 | Number of AST nodes: 6 | |||
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; | |
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 different classes having the same super class |
Number of node comparisons | 36 |
Number of mapped statements | 6 |
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; |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables yp, g2, xp , while Clone fragment #2 returns variables yp, g2, xp |