File path: /columba-1.4-src/plugins/org.columba.chat.altura/src/org/columba/chat/command/ConnectCommand.java | File path: /columba-1.4-src/plugins/org.columba.chat.altura/src/org/columba/chat/command/PopulateRoasterCommand.java | |||
Method name: void execute(IWorkerStatusController)
|
Method name: void execute(IWorkerStatusController)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 5 | |||
1 | try {↵ | |||
2 | if (account.isEnableSSL())↵ | |||
3 | Connection.XMPPConnection = new SSLXMPPConnection(account↵ | |||
4 | .getHost(), account.getPort↵ | 1 | if (BuddyList.getInstance().exists(entry.getUser())) {↵ | |
2 | // buddy already exists↵ | |||
5 | ());↵ | 3 | buddy = BuddyList.getInstance().getBuddy(entry.getUser());↵ | |
6 | else↵ | 4 | } else {↵ | |
7 | Connection.XMPPConnection = new XMPPConnection(account↵ | 5 | ↵ | |
8 | .getHost(), account.getPort());↵ | |||
9 | } catch (XMPPException e) {↵ | |||
10 | JOptionPane.showMessageDialog(FrameManager.getInstance()↵ | |||
11 | .getActiveFrame(), e.getMessage()↵ | 6 | // create new buddy↵ | |
7 | buddy = new BuddyStatus(entry.getUser());↵ | |||
8 | buddy.setName(entry.getName());↵ | |||
9 | // and add it to the buddylist↵ | |||
12 | );↵ | 10 | BuddyList.getInstance().add(entry.getUser(), buddy);↵ | |
13 | e.printStackTrace();↵ | 11 | ↵ | |
14 | return;↵ | |||
15 | } | 12 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 1 |