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/IncomingServerPanel.java | |||
Method name: void actionPerformed(ActionEvent)
|
Method name: void actionPerformed(ActionEvent)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | if (((Integer) portSpinner.getValue()).intValue() != IMAPProtocol.DEFAULT_PORT) {↵ | 1 | if (((Integer) portSpinner.getValue()).intValue() != POP3Protocol.DEFAULT_PORT) {↵ | |
2 | portSpinner.setValue(new Integer(↵ | 2 | portSpinner.setValue(new Integer(↵ | |
3 | IMAPProtocol.DEFAULT_PORT));↵ | 3 | POP3Protocol.DEFAULT_PORT));↵ | |
4 | showPortChangeMessageBox();↵ | 4 | showPortChangeMessageBox();↵ | |
5 | } | 5 |
| |
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 the same method |
Number of node comparisons | 9 |
Number of mapped statements | 3 |
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.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
24 | if (((Integer)portSpinner.getValue()).intValue() != IMAPProtocol.DEFAULT_PORT) |
| 21 | if (((Integer)portSpinner.getValue()).intValue() != POP3Protocol.DEFAULT_PORT) | |||||||||||
25 | portSpinner.setValue(new Integer(IMAPProtocol.DEFAULT_PORT)); |
| 22 | portSpinner.setValue(new Integer(POP3Protocol.DEFAULT_PORT)); | |||||||||||
26 | showPortChangeMessageBox(); | 23 | showPortChangeMessageBox(); |
Row | Violation |
---|---|
1 | Type org.columba.ristretto.imap.IMAPProtocol of variable IMAPProtocol does not match with type org.columba.ristretto.pop3.POP3Protocol of variable POP3Protocol |
2 | Type org.columba.ristretto.imap.IMAPProtocol of variable IMAPProtocol does not match with type org.columba.ristretto.pop3.POP3Protocol of variable POP3Protocol |