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); }
if (evt.getSource() instanceof AbstractButton) { AbstractButton button = (AbstractButton) evt.getSource(); Action action = button.getAction(); if (action != null) { String message = (String) action.getValue(Action.SHORT_DESCRIPTION); frameMediator.fireStatusMessageChanged(message); } }
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/core/src/main/java/org/columba/core/gui/frame/TooltipMouseHandler.java
Method name: void initLocalStore() Method name: void mouseEntered(MouseEvent)
Number of AST nodes: 5 Number of AST nodes: 6
1
IComponentInfo item = (IComponentInfo) it.next();
2
			if (item.getType() == IComponent.TYPE.EVENT) {
3
				IEventInfo event = (IEventInfo) item;
4
				Activity act = CalendarHelper.createActivity(event);
5
				ActivityDepository.getInstance().addBrokedActivity(act, this);
6
			
1
if (evt.getSource() instanceof AbstractButton) {
2
            AbstractButton button = (AbstractButton) evt.getSource();
3
            Action action = button.getAction();
4
            if (action != null) {
5
                String message = (String) action.getValue(Action.SHORT_DESCRIPTION);
6
                frameMediator.fireStatusMessageChanged(message);
7
            }
7
}
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