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/util/PasswordDialog.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, MailResourceLoader↵ | 5 | .showMessageDialog(this, MailResourceLoader↵ | |
5 | .getString("dialog",↵ | 6 | .getString("dialog",↵ | |
6 | IncomingItem.PASSWORD,↵ | |||
7 | ↵ | 7 | "password",↵ | |
8 | "warn_save_msg"),↵ | 8 | "warn_save_msg"),↵ | |
9 | MailResourceLoader↵ | 9 | MailResourceLoader↵ | |
10 | .getString("dialog",↵ | 10 | .getString("dialog",↵ | |
11 | IncomingItem.PASSWORD,↵ | |||
12 | ↵ | 11 | "password",↵ | |
13 | "warn_save_title"),↵ | 12 | "warn_save_title"),↵ | |
14 | JOptionPane.WARNING_MESSAGE);↵ | 13 | JOptionPane.WARNING_MESSAGE);↵ | |
15 | return;↵ | 14 | return;↵ | |
16 | } | 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) | 1.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
47 | configPath = configPath.getParentFile(); | 15 | configPath = configPath.getParentFile(); | |||||||||||||||||
48 | if (configPath == null) | 16 | 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); |
| 17 | JOptionPane.showMessageDialog(this, MailResourceLoader.getString("dialog", "password", "warn_save_msg"), MailResourceLoader.getString("dialog", "password", "warn_save_title"), JOptionPane.WARNING_MESSAGE); | ||||||||||||||||
50 | return; |
| 18 | return; |
Row | Violation |
---|---|
1 | Conditional return; |
2 | Conditional return; |