File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/table/model/TableModelSorter.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/table/model/TableModelThreadedView.java | |||
Method name: boolean equals(Object)
|
Method name: boolean equals(Object)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (obj instanceof MessageHeaderComparator) {↵ | 1 | if (obj instanceof MessageHeaderComparator) {↵ | |
2 | MessageHeaderComparator compObj = (MessageHeaderComparator) obj;↵ | 2 | MessageHeaderComparator compObj = (MessageHeaderComparator) obj;↵ | |
3 | return (compObj.column == column)↵ | 3 | return (compObj.column == column)↵ | |
4 | && (compObj.ascending == ascending);↵ | 4 | && (compObj.ascending == ascending);↵ | |
5 | }↵ | 5 | }↵ | |
6 | return false; | 6 |
| |
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 |
Number of node comparisons | 10 |
Number of mapped statements | 4 |
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) | 2.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (obj instanceof MessageHeaderComparator) |
| 1 | if (obj instanceof MessageHeaderComparator) | ||||||||||||||||||
2 | MessageHeaderComparator compObj = (MessageHeaderComparator)obj; |
| 2 | MessageHeaderComparator compObj = (MessageHeaderComparator)obj; | ||||||||||||||||||
3 | return (compObj.column == column) && (compObj.ascending == ascending); |
| 3 | return (compObj.column == column) && (compObj.ascending == ascending); | ||||||||||||||||||
4 | return false; | 4 | return false; |
Row | Violation |
---|---|
1 | Expression (MessageHeaderComparator)obj cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression (MessageHeaderComparator)obj cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression compObj.column cannot be unified with expression compObj.column , because common superclass java.util.Comparator does not declare member(s) protected int column, protected boolean ascending |
4 | Expression compObj.ascending cannot be unified with expression compObj.ascending , because common superclass java.util.Comparator does not declare member(s) protected int column, protected boolean ascending |