try { op.finish(); } catch (Exception e) { // Must create a ExceptionProcessor e.printStackTrace(); } unregister(); boss.operationFinished(op, this);
try { commandSemaphore.waitUntilReleased(); } catch (InterruptedException e) { LOG.warning("The thread waiting for the Save Attachment Temporary command was interrupted."); }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/command/Worker.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/message/command/SaveAttachmentTemporaryCommand.java
Method name: void finished() Method name: void waitForCommandToComplete()
Number of AST nodes: 4 Number of AST nodes: 2
1
try {
1
try {
2
	    op.finish();
3
	} catch (
2
            commandSemaphore.waitUntilReleased();
4
Exception e) {
3
        } catch (InterruptedException e) {
5
	    // Must create a ExceptionProcessor
4
    
6
	    e.printStackTrace();
7
	}
8
	unregister();
9
	boss.operationFinished(op, this);
5
        LOG.warning("The thread waiting for the Save Attachment Temporary command was interrupted.");
6
        }
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.2
Clones locationClones are in different classes
Number of node comparisons1