File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/message/viewer/MessageBorder.java | File path: /columba-1.4-src/core/src/test/java/org/columba/core/command/TestCommand.java | |||
Method name: void MessageBorder(Color, int, boolean)
|
Method name: void TestCommand(DefaultProcessorTest, int, int)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | super();↵ | 1 | super(↵ | |
2 | this.lineColor = lineColor;↵ | |||
3 | ↵ | 2 | null);↵ | |
3 | this.id = id;↵ | |||
4 | this.thickness = thickness;↵ | 4 | this.test = t↵ | |
5 | this.roundedCorners = roundedCorners↵ | 5 | est;↵ | |
6 | ; | 6 | this.priority = priority; | |
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 |
Number of node comparisons | 13 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 3 |
Number of unmapped statements in the second code fragment | 3 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | super(null); | |||||||||||||||||
1 | super(); | | |||||||||||||||||
2 | this.lineColor = lineColor; |
| | ||||||||||||||||
3 | this.thickness = thickness; |
| 2 | this.id = id; | |||||||||||||||
|
| 3 | this.test = test; | ||||||||||||||||
|
| 4 | this.priority = priority; | ||||||||||||||||
4 | this.roundedCorners = roundedCorners; |
| |
Row | Violation |
---|---|
1 | Unmatched statement this.lineColor=lineColor; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
2 | Expression this.thickness is a field being modified, and thus it cannot be parameterized |
3 | Expression this.id is a field being modified, and thus it cannot be parameterized |
4 | Unmatched statement this.test=test; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
5 | Unmatched statement this.priority=priority; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
6 | Unmatched statement this.roundedCorners=roundedCorners; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
7 | The refactoring of the clones is infeasible, because classes org.columba.mail.gui.message.viewer.MessageBorder and org.columba.core.command.TestCommand do not have a common superclass |