File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/html/HtmlToolbar.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/html/action/ParagraphMenu.java | |||
Method name: void formatChanged(FormatChangedEvent)
|
Method name: void formatChanged(FormatChangedEvent)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | if (info.isHeading3()) {↵ | 1 | if (info.isHeading3()) {↵ | |
2 | selectInParagraphComboBox(HTML.Tag.H3);↵ | 2 | selectMenuItem(HTML.Tag.H3);↵ | |
3 | } else if (info.isPreformattet()) {↵ | 3 | } else if (info.isPreformattet()) {↵ | |
4 | selectInParagraphComboBox(HTML.Tag.PRE);↵ | 4 | selectMenuItem(HTML.Tag.PRE);↵ | |
5 | } else if (info.isAddress()) {↵ | 5 | } else if (info.isAddress()) {↵ | |
6 | selectInParagraphComboBox(HTML.Tag.ADDRESS);↵ | 6 | selectMenuItem(HTML.Tag.ADDRESS);↵ | |
7 | } else {↵ | 7 | } else {↵ | |
8 | // select the "Normal" entry as default↵ | 8 | // select the "Normal" entry as default↵ | |
9 | selectInParagraphComboBox(HTML.Tag.P);↵ | 9 | selectMenuItem(HTML.Tag.P);↵ | |
10 | } | 10 |
| |
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.3 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 36 |
Number of mapped statements | 7 |
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.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6 | else if (info.isHeading3()) | 6 | else if (info.isHeading3()) | |||||||||||||
7 | selectInParagraphComboBox(HTML.Tag.H3); |
| 7 | selectMenuItem(HTML.Tag.H3); | ||||||||||||
8 | else if (info.isPreformattet()) | 8 | else if (info.isPreformattet()) | |||||||||||||
9 | selectInParagraphComboBox(HTML.Tag.PRE); |
| 9 | selectMenuItem(HTML.Tag.PRE); | ||||||||||||
10 | else if (info.isAddress()) | 10 | else if (info.isAddress()) | |||||||||||||
11 | selectInParagraphComboBox(HTML.Tag.ADDRESS); |
| 11 | selectMenuItem(HTML.Tag.ADDRESS); | ||||||||||||
else | else | |||||||||||||||
12 | selectInParagraphComboBox(HTML.Tag.P); |
| 12 | selectMenuItem(HTML.Tag.P); |
Row | Violation |
---|---|
1 | Expression selectInParagraphComboBox(HTML.Tag.H3) is a void method call, and thus it cannot be parameterized |
2 | Expression selectMenuItem(HTML.Tag.H3) is a void method call, and thus it cannot be parameterized |
3 | Expression selectInParagraphComboBox(HTML.Tag.PRE) is a void method call, and thus it cannot be parameterized |
4 | Expression selectMenuItem(HTML.Tag.PRE) is a void method call, and thus it cannot be parameterized |
5 | Expression selectInParagraphComboBox(HTML.Tag.ADDRESS) is a void method call, and thus it cannot be parameterized |
6 | Expression selectMenuItem(HTML.Tag.ADDRESS) is a void method call, and thus it cannot be parameterized |
7 | Expression selectInParagraphComboBox(HTML.Tag.P) is a void method call, and thus it cannot be parameterized |
8 | Expression selectMenuItem(HTML.Tag.P) is a void method call, and thus it cannot be parameterized |