if (instance == null) { try { instance = new Config(); } catch (Exception e) { e.printStackTrace(); } }
for (int i = 0; i < 10; i++) { try { Thread.sleep(1000); } catch (InterruptedException ie) { } }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/config/Config.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/shutdown/ShutdownManager.java
Method name: IConfig getInstance() Method name: void run()
Number of AST nodes: 3 Number of AST nodes: 3
1
if (instance == null) {
1
for (int i = 0; i < 10; i++) {
2
			try {
2
							try {
3
				instance = new Config();
3
								Thread.sleep(1000);
4
			} catch (Exception e) {
4
							} catch (InterruptedException ie) {
5
				e.printStackTrace();
5
				
6
			}
6
			}
7
		}
7
						}
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