File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/AttachmentView.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/pop3/POP3Store.java | |||
Method name: void keyPressed(KeyEvent)
|
Method name: void ensureAuthorization()
|
|||
Number of AST nodes: 2 | Number of AST nodes: 2 | |||
1 | if( e.getKeyCode() == KeyEvent.VK_DELETE) {↵ | 1 | if↵ | |
2 | removeSelected↵ | 2 | (protocol.getState() < POP3Protocol.AUTHORIZATION) {↵ | |
3 | ();↵ | 3 | openConnection();↵ | |
4 | } | 4 | } | |
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.4 |
Clones location | Clones are in different classes |
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) | 30.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (e.getKeyCode() == KeyEvent.VK_DELETE) |
| 1 | if (protocol.getState() < POP3Protocol.AUTHORIZATION) | |||||||||||||||||||||||||||
2 | removeSelected(); |
| 2 | openConnection(); |
Row | Violation |
---|---|
1 | Type java.awt.event.KeyEvent of variable e does not match with type org.columba.ristretto.pop3.POP3Protocol of variable protocol |
2 | Type java.awt.event.KeyEvent does not match with type org.columba.ristretto.pop3.POP3Protocol |
3 | Expression removeSelected() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression openConnection() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression removeSelected() is a void method call, and thus it cannot be parameterized |
6 | Expression openConnection() is a void method call, and thus it cannot be parameterized |
7 | The refactoring of the clones is infeasible, because classes and org.columba.mail.pop3.POP3Store do not have a common superclass |