Document document = (Document) it.next(); IComponentInfo basicModel = null; try { basicModel = VCalendarModelFactory.unmarshall(document); } catch (SyntaxException e) { throw new StoreException(e); } catch (IllegalArgumentException e) { throw new StoreException(e); }
Document document = (Document) it.next(); IComponentInfo basicModel = null; try { basicModel = VCalendarModelFactory.unmarshall(document); } catch (SyntaxException e) { throw new StoreException(e); } catch (IllegalArgumentException e) { throw new StoreException(e); }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/store/LocalCalendarStore.java File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/store/LocalCalendarStore.java
Method name: IComponentInfoList getComponentInfoList(String) Method name: Iterator getIdIterator(String)
Number of AST nodes: 4 Number of AST nodes: 4
1
Document document = (Document) it.next();
1
Document document = (Document) it.next();
2
			IComponentInfo basicModel = null;
2
			IComponentInfo basicModel = null;
3
			try {
3
			try {
4
				basicModel = VCalendarModelFactory.unmarshall(document);
4
				basicModel = VCalendarModelFactory.unmarshall(document);
5
			} catch (SyntaxException e) {
5
			} catch (SyntaxException e) {
6
				throw new StoreException(e);
6
				throw new StoreException(e);
7
			} catch (IllegalArgumentException e) {
7
			} catch (IllegalArgumentException e) {
8
				throw new StoreException(e);
8
				throw new StoreException(e);
9
			}
9
			}
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.3
Clones locationClones are declared in the same class
Number of node comparisons9
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements4
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)8.3
    Clone typeType 1
    Mapped Statements
    ID Statement ID Statement
    4
    Document document = (Document)it.next();
    4
    Document document = (Document)it.next();
    5
    IComponentInfo basicModel = null;
    5
    IComponentInfo basicModel = null;
    6
    try
    6
    try
    7
    basicModel = VCalendarModelFactory.unmarshall(document);
    7
    basicModel = VCalendarModelFactory.unmarshall(document);
    Precondition Violations (0)
    Row Violation