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