File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/account/IncomingServerPanel.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/account/OutgoingServerPanel.java | |||
Method name: void actionPerformed(ActionEvent)
|
Method name: void actionPerformed(ActionEvent)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 5 | |||
1 | while (!configPath.equals(defaultConfigPath)) {↵ | |||
1 | configPath = configPath.getParentFile();↵ | 2 | configPath = configPath.getParentFile();↵ | |
2 | if (configPath == null) {↵ | 3 | if (configPath == null) {↵ | |
3 | JOptionPane↵ | 4 | JOptionPane↵ | |
4 | .showMessageDialog(dialog, ↵ | 5 | .showMessageDialog(dialog,↵ | |
5 | MailResourceLoader↵ | 6 | MailResourceLoader↵ | |
6 | .getString("dialog",↵ | 7 | .getString("dialog",↵ | |
7 | IncomingItem.PASSWORD,↵ | 8 | ↵ | |
8 | "warn_save_msg"),↵ | 9 | "password", "warn_save_msg"),↵ | |
9 | MailResourceLoader.getString("dialog",↵ | 10 | MailResourceLoader.getString("dialog",↵ | |
10 | IncomingItem.PASSWORD,↵ | 11 | ↵ | |
11 | "warn_save_title"),↵ | 12 | "password", "warn_save_title"),↵ | |
12 | JOptionPane.WARNING_MESSAGE);↵ | 13 | JOptionPane.WARNING_MESSAGE);↵ | |
13 | return;↵ | 14 | return;↵ | |
14 | } | 15 | }↵ | |
16 |
| |||
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.2 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 11 |
Number of mapped statements | 4 |
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) | 4.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
47 | configPath = configPath.getParentFile(); | 28 | configPath = configPath.getParentFile(); | ||||||||||||||
48 | if (configPath == null) | 29 | if (configPath == null) | ||||||||||||||
49 | JOptionPane.showMessageDialog(dialog, MailResourceLoader.getString("dialog", IncomingItem.PASSWORD, "warn_save_msg"), MailResourceLoader.getString("dialog", IncomingItem.PASSWORD, "warn_save_title"), JOptionPane.WARNING_MESSAGE); |
| 30 | JOptionPane.showMessageDialog(dialog, MailResourceLoader.getString("dialog", "password", "warn_save_msg"), MailResourceLoader.getString("dialog", "password", "warn_save_title"), JOptionPane.WARNING_MESSAGE); | |||||||||||||
50 | return; |
| 31 | return; |
Row | Violation |
---|---|
1 | Conditional return; |
2 | Conditional return; |