if (instance == null) { try { instance = new FolderFactory(); } catch (PluginHandlerNotFoundException phnfe) { throw new RuntimeException(phnfe); } } return instance;
if (instance == null) { try { instance = new Config(); } catch (Exception e) { e.printStackTrace(); } } return instance;
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/folder/FolderFactory.java File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/config/Config.java
Method name: FolderFactory getInstance() Method name: IConfig getInstance()
Number of AST nodes: 4 Number of AST nodes: 4
1
if (instance == null) {
1
if (instance == null) {
2
			try {
2
			try {
3
				instance = new FolderFactory();
3
				instance = new Config();
4
			} catch (PluginHandlerNotFoundException phnfe) {
4
			} catch (Exception e) {
5
				throw new RuntimeException(phnfe);
5
				e.printStackTrace();
6
			}
6
			}
7
		}
7
		}
8
		return instance;
8
		return instance;
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