IComponentInfo item = (IComponentInfo) it.next(); if (item.getType() == IComponent.TYPE.EVENT) { IEventInfo event = (IEventInfo) item; Activity act = CalendarHelper.createActivity(event); ActivityDepository.getInstance().addBrokedActivity(act, this); }
for (Iterator it = cats.iterator(); it.hasNext();) { Category cat = (Category) it.next(); Object isHidden = cat .getProperty(PropertyKey.getKey(PROP_FILTERED)); if (MigUtil.isTrue(isHidden) == false) it.remove(); }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/store/CalendarStoreFactory.java File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/calendar/MainCalendarController.java
Method name: void initLocalStore() Method name: void filterDateArea(DateAreaBean)
Number of AST nodes: 5 Number of AST nodes: 5
1
IComponentInfo item = (IComponentInfo) it.next();
1
for (Iterator it = 
2
			if (item.getType() == IComponent.TYPE.EVENT) {
3
				IEventInfo event = (IEventInfo) item;
4
				Activity act = CalendarHelper.createActivity(event
2
cats.iterator(); it.hasNext();) {
3
			Category cat = (Category) it.next();
4
			Object isHidden = cat
5
);
5
					.getProperty(PropertyKey.getKey(PROP_FILTERED));
6
				ActivityDepository.getInstance().addBrokedActivity(act, this
6
			if (MigUtil.isTrue(isHidden) == false)
7
);
7
				it.remove();
8
			}
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.3
Clones locationClones are in different classes
Number of node comparisons1