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/IdentityPanel.java | |||
Method name: boolean isFinished()
|
Method name: boolean isFinished()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | JOptionPane.showMessageDialog(this,↵ | 1 | JOptionPane.showMessageDialog(this,↵ | |
2 | MailResourceLoader.getString(↵ | 2 | MailResourceLoader.getString(↵ | |
3 | "dialog", "account", "You_have_to_enter_a_host_name"));↵ | 3 | "dialog", "account", "↵ | |
4 | //$NON-NLS-1$↵ | |||
5 | ↵ | 4 | namelabel"));↵ | |
6 | return false;↵ | 5 | return false;↵ | |
7 | } else if (login.length() == 0) {↵ | 6 | } else if (address.length() == 0) {↵ | |
8 | JOptionPane.showMessageDialog(this,↵ | 7 | JOptionPane.showMessageDialog(this,↵ | |
9 | MailResourceLoader.getString(↵ | 8 | MailResourceLoader.getString(↵ | |
10 | "dialog", "account", "You_have_to_enter_a_login_name"));↵ | 9 | "dialog", "account", "↵ | |
11 | //$NON-NLS-1$↵ | |||
12 | ↵ | 10 | addresslabel"));↵ | |
13 | return false; | 11 | return false; | |
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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 4 |
Number of mapped statements | 2 |
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.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | JOptionPane.showMessageDialog(this, MailResourceLoader.getString("dialog", "account", "You_have_to_enter_a_host_name")); |
| 3 | JOptionPane.showMessageDialog(this, MailResourceLoader.getString("dialog", "account", "namelabel")); | ||||||||||
5 | return false; |
| 4 | return false; |
Row | Violation |
---|---|
1 | Conditional return false; |
2 | Conditional return false; |