File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/list/DefaultStringRenderer.java | File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/docking/DockingPanel.java | |||
Method name: Color darker(Color)
|
Method name: Color darker(Color)
|
|||
Number of AST nodes: 1 | Number of AST nodes: 1 | |||
1 | return new Color(Math.max((int) (c.getRed() * FACTOR), 0), Math.max(↵ | 1 | return new Color(Math.max((int) (c.getRed() * FACTOR), 0), Math.max(↵ | |
2 | (int) (c.getGreen() * FACTOR), 0), Math.max(↵ | 2 | (int) (c.getGreen() * FACTOR), 0), Math.max(↵ | |
3 | (int) (c.getBlue() * FACTOR), 0)); | 3 |
| |
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 | 1 |
Number of mapped statements | 1 |
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 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
1 | return new Color(Math.max((int)(c.getRed() * FACTOR), 0), Math.max((int)(c.getGreen() * FACTOR), 0), Math.max((int)(c.getBlue() * FACTOR), 0)); | 1 | return new Color(Math.max((int)(c.getRed() * FACTOR), 0), Math.max((int)(c.getGreen() * FACTOR), 0), Math.max((int)(c.getBlue() * FACTOR), 0)); |
Row | Violation |
---|---|
1 | The refactoring of the clones is infeasible, because classes org.columba.calendar.ui.list.DefaultStringRenderer and org.columba.core.gui.docking.DockingPanel do not have a common superclass |