try {
commandSemaphore.waitUntilReleased();
} catch (InterruptedException e) {
LOG.warning("The thread waiting for the Save Attachment Temporary command was interrupted.");
}
if (protocol.getState() != IMAPProtocol.NOT_CONNECTED) {
try {
protocol.logout();
} catch (Exception e) {
// don't care
}
}
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/message/command/SaveAttachmentTemporaryCommand.java
|
|
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/imap/IMAPServer.java
|
Method name: void waitForCommandToComplete()
|
|
Method name: void logout()
|
Number of AST nodes: 2
|
|
Number of AST nodes: 3
|
|
1 | try {↵ | | |
|
2 | commandSemaphore.waitUntilReleased();↵ | | |
|
3 | } catch (InterruptedException e) {↵ | | |
|
4 | LOG.warning("The thread waiting for the Save Attachment Temporary command was interrupted.");↵ | | |
|
5 | ↵ | | 1 | if (protocol.getState() != IMAPProtocol.NOT_CONNECTED) {↵
|
| | | 2 | try {↵
|
| | | 3 | protocol.logout();↵
|
| | | 4 | } catch (Exception e) {↵
|
| | | 5 | // don't care↵
|
| | | 6 | }↵
|
6 | } | | 7 | }
|
See real code fragment |
|
See real code fragment |
Summary
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 |
Number of node comparisons | 1 |