try { wait(); } catch (InterruptedException e) { e.printStackTrace(); }
while (mutex) { try { wait(); } catch (InterruptedException e) { } }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/command/CommandProcessor.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/folder/outbox/SendListManager.java
Method name: void waitForNotify() Method name: void getMutex()
Number of AST nodes: 2 Number of AST nodes: 3
1
try {
2
	    wait();
3
	
1
while (mutex) {
2
            try {
3
                wait();
4
} catch (InterruptedException e) {
4
            } catch (InterruptedException e) {
5
	    e.printStackTrace();
6
	
5
            }
7
}
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.1
Clones locationClones are in different classes
Number of node comparisons1