try {
commandSemaphore.waitUntilReleased();
} catch (InterruptedException e) {
LOG.warning("The thread waiting for the Save Attachment Temporary command was interrupted.");
}
if (e.getSource().cancelled()) {
try {
server.dropConnection();
} catch (IOException e1) {
}
}
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/smtp/command/SendMessageCommand.java
|
Method name: void waitForCommandToComplete()
|
|
Method name: void workerStatusChanged(WorkerStatusChangedEvent)
|
Number of AST nodes: 2
|
|
Number of AST nodes: 3
|
|
1 | try {↵ | | |
|
2 | commandSemaphore.waitUntilReleased();↵ | | |
|
3 | } catch (Interrupted↵ | | 1 | if (e.getSource().cancelled()) {↵
|
| | | 2 | try {↵
|
| | | 3 | server.dropConnection();↵
|
4 | Exception e) {↵ | | 4 | } catch (IOException e1) {↵
|
5 | LOG.warning("The thread waiting for the Save Attachment Temporary command was interrupted.");↵ | | |
|
6 | ↵ | | 5 | }↵
|
7 | } | | 6 | }
|
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 |