File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/table/plugins/DefaultLabelRenderer.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/table/SubjectTreeRenderer.java | |||
Method name: Component getTableCellRendererComponent(JTable, Object, boolean, boolean, int, int)
|
Method name: Component getTreeCellRendererComponent(JTree, Object, boolean, boolean, boolean, int, boolean)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (!getFont().equals(boldFont)) {↵ | 1 | if (!getFont().equals(boldFont)) {↵ | |
2 | setFont(boldFont);↵ | 2 | setFont(boldFont);↵ | |
3 | }↵ | 3 | }↵ | |
4 | } else if (messageNode.isHasRecentChildren()) {↵ | 4 | } else if (messageNode.isHasRecentChildren()) {↵ | |
5 | if (!getFont().equals(underlinedFont)) {↵ | 5 | if (!getFont().equals(underlinedFont)) {↵ | |
6 | setFont(underlinedFont);↵ | 6 | setFont(underlinedFont);↵ | |
7 | } | 7 |
| |
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.2 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 5 |
Number of mapped statements | 2 |
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) | 1.6 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
11 | if (!getFont().equals(boldFont)) | 13 | if (!getFont().equals(boldFont)) | |
12 | setFont(boldFont); | 14 | setFont(boldFont); |
Row | Violation |
---|---|
1 | The refactoring of the clones is infeasible, because classes org.columba.mail.gui.table.plugins.DefaultLabelRenderer and org.columba.mail.gui.table.SubjectTreeRenderer do not have a common superclass |