try { load(); } catch (IOException e) { LOG.severe(e.getLocalizedMessage()); throw new RuntimeException("Mailbox is corrupted!"); }
while (!tryToGetLock(theLocker)) { try { wait(); } catch (InterruptedException e) { // nothing to do } }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/folder/mbox/MboxDataStorage.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/base/Lock.java
Method name: void MboxDataStorage(AbstractMessageFolder) Method name: void getLock(Object)
Number of AST nodes: 2 Number of AST nodes: 3
1
try {
2
				load
1
while (!tryToGetLock(theLocker)) {
2
	    try {
3
();
3
		wait();
4
			} catch (IOException e) {
4
	    } catch (InterruptedException e) {
5
				LOG.severe(e.getLocalizedMessage());
5
		
6
					
7
				throw new RuntimeException("Mailbox is corrupted!");
8
		
6
// nothing to do
7
	    }
9
	}
8
	}
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