File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/util/AddressListRenderer.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/util/AddressListRenderer.java | |||
Method name: String createAddressHTMLString(Address)
|
Method name: String createAddressHTMLString(Address)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (address.getDisplayName().length() != 0) {↵ | 1 | if (address.getDisplayName().length() != 0) {↵ | |
2 | result.append(address.getDisplayName());↵ | 2 | result.append(address.getDisplayName());↵ | |
3 | result.append(" ");↵ | 3 | result.append(" ");↵ | |
4 | result.append("<" + address.getMailAddress() + ">");↵ | 4 | result.append("<" + address.getMailAddress() + ">");↵ | |
5 | } else↵ | 5 | } else↵ | |
6 | result.append(address.getMailAddress()); | 6 | result.append(address.getShortAddress()); | |
See real code fragment | See real code fragment |
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.2 |
Clones location | Clones are in the same method |
Number of node comparisons | 25 |
Number of mapped statements | 5 |
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) | 3.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | if (address.getDisplayName().length() != 0) | 9 | if (address.getDisplayName().length() != 0) | ||||||||||||||
4 | result.append(address.getDisplayName()); | 10 | result.append(address.getDisplayName()); | ||||||||||||||
5 | result.append(" "); | 11 | result.append(" "); | ||||||||||||||
6 | result.append("<" + address.getMailAddress() + ">"); |
| 12 | result.append("<" + address.getMailAddress() + ">"); | |||||||||||||
else | else | ||||||||||||||||
7 | result.append(address.getMailAddress()); |
| 13 | result.append(address.getShortAddress()); |
Row | Violation |
---|---|
1 | Expression address.getMailAddress() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression address.getShortAddress() cannot be parameterized, because it has dependencies to/from statements that will be extracted |