File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/message/viewer/AttachmentsViewer.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/message/viewer/HeaderViewer.java | |||
Method name: ImageIcon getImageIcon(String, String)
|
Method name: ImageIcon getImageIcon(String, String)
|
|||
Number of AST nodes: 12 | Number of AST nodes: 12 | |||
1 | StringBuffer buf = new StringBuffer();↵ | 1 | StringBuffer buf = new StringBuffer();↵ | |
2 | buf.append("gnome-");↵ | 2 | buf.append("gnome-");↵ | |
3 | buf.append(contentType);↵ | 3 | buf.append(contentType);↵ | |
4 | buf.append("-");↵ | 4 | buf.append("-");↵ | |
5 | buf.append(contentSubtype);↵ | 5 | buf.append(contentSubtype);↵ | |
6 | buf.append(".png");↵ | 6 | buf.append(".png");↵ | |
7 | ImageIcon icon = ImageLoader.getMimetypeIcon(buf.toString());↵ | 7 | ImageIcon icon = ImageLoader.getMimetypeIcon(buf.toString());↵ | |
8 | if (icon == null) {↵ | 8 | if (icon == null) {↵ | |
9 | icon = ImageLoader.getMimetypeIcon("gnome-" + contentType↵ | 9 | icon = ImageLoader.getMimetypeIcon("gnome-" + contentType↵ | |
10 | + ".png");↵ | 10 | + ".png");↵ | |
11 | }↵ | 11 | }↵ | |
12 | if (icon == null) {↵ | 12 | if (icon == null) {↵ | |
13 | icon = ImageLoader.getMimetypeIcon("gnome-text.png");↵ | 13 | icon = ImageLoader.getMimetypeIcon("gnome-text.png");↵ | |
14 | }↵ | 14 | }↵ | |
15 | return icon; | 15 |
| |
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.3 |
Clones location | Clones are in different classes |
Number of node comparisons | 63 |
Number of mapped statements | 12 |
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) | 8.7 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
1 | StringBuffer buf = new StringBuffer(); | 1 | StringBuffer buf = new StringBuffer(); | |
2 | buf.append("gnome-"); | 2 | buf.append("gnome-"); | |
3 | buf.append(contentType); | 3 | buf.append(contentType); | |
4 | buf.append("-"); | 4 | buf.append("-"); | |
5 | buf.append(contentSubtype); | 5 | buf.append(contentSubtype); | |
6 | buf.append(".png"); | 6 | buf.append(".png"); | |
7 | ImageIcon icon = ImageLoader.getMimetypeIcon(buf.toString()); | 7 | ImageIcon icon = ImageLoader.getMimetypeIcon(buf.toString()); | |
8 | if (icon == null) | 8 | if (icon == null) | |
9 | icon = ImageLoader.getMimetypeIcon("gnome-" + contentType + ".png"); | 9 | icon = ImageLoader.getMimetypeIcon("gnome-" + contentType + ".png"); | |
10 | if (icon == null) | 10 | if (icon == null) | |
11 | icon = ImageLoader.getMimetypeIcon("gnome-text.png"); | 11 | icon = ImageLoader.getMimetypeIcon("gnome-text.png"); | |
12 | return icon; | 12 | return icon; |
Row | Violation |
---|