this.name = name;
this.sorter = sorter;
setHorizontalAlignment(SwingConstants.LEFT);
setHorizontalTextPosition(SwingConstants.LEFT);
this.name = name;
this.sorter = sorter;
setHorizontalAlignment(SwingConstants.LEFT);
setHorizontalTextPosition(SwingConstants.LEFT);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/table/renderer/DefaultHeaderRenderer.java
|
|
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/table/plugins/BasicHeaderRenderer.java
|
Method name: void DefaultHeaderRenderer(SortDecorator, String)
|
|
Method name: void BasicHeaderRenderer(String, TableModelSorter)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | this.name = name;↵ | | 1 | this.name = name;↵
|
2 | this.sorter = sorter;↵ | | 2 | this.sorter = sorter;↵
|
|
3 | setHorizontalAlignment(SwingConstants.LEFT);↵ | | 3 | setHorizontalAlignment(SwingConstants.LEFT);↵
|
4 | setHorizontalTextPosition(SwingConstants.LEFT); | | 4 | setHorizontalTextPosition(SwingConstants.LEFT);
|
See real code fragment |
|
See real code fragment |
Summary
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 | 11 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
2 | this.name = name; | | 2 | this.name = name; |
| | | 3 | this.sorter = sorter; |
3 | this.sorter = sorter; | | | |
4 | setHorizontalAlignment(SwingConstants.LEFT); | | 4 | setHorizontalAlignment(SwingConstants.LEFT); |
5 | setHorizontalTextPosition(SwingConstants.LEFT); | | 5 | setHorizontalTextPosition(SwingConstants.LEFT); |
Precondition Violations (0)
Row |
Violation |