super(frameMediator, "Go Next"); putValue(AbstractColumbaAction.TOOLBAR_NAME, "Next"); setShowToolBarText(false); putValue(AbstractColumbaAction.SMALL_ICON, ImageLoader.getSmallIcon(IconKeys.GO_NEXT)); putValue(AbstractColumbaAction.LARGE_ICON, ImageLoader.getIcon(IconKeys.GO_NEXT));
super(frameMediator, "New Appointment"); putValue(AbstractColumbaAction.TOOLBAR_NAME, "New Appointment"); setShowToolBarText(true); putValue(AbstractColumbaAction.LARGE_ICON, ResourceLoader .getIcon(IconKeys.NEW_APPOINTMENT)); putValue(AbstractColumbaAction.SMALL_ICON, ResourceLoader .getSmallIcon(IconKeys.NEW_APPOINTMENT));
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/action/GoNextAction.java File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/action/NewAppointmentAction.java
Method name: void GoNextAction(IFrameMediator) Method name: void NewAppointmentAction(IFrameMediator)
Number of AST nodes: 5 Number of AST nodes: 5
1
super(frameMediator, "Go Next");
1
super(frameMediator, "New Appointment");
2
		
3
		putValue(AbstractColumbaAction.TOOLBAR_NAME, "Next");
2
		putValue(AbstractColumbaAction.TOOLBAR_NAME, "New Appointment");
4
		setShowToolBarText(false);
3
		setShowToolBarText(true);
5
		putValue(AbstractColumbaAction.SMALL_ICON,  ImageLoader.getSmallIcon(IconKeys.GO_NEX
4
		putValue(AbstractColumbaAction.LARGE_ICON, ResourceLoader
6
T));
5
				.getIcon(IconKeys.NEW_APPOINTMENT));
7
		putValue(AbstractColumbaAction.LARGE_ICON,  ImageLoader.getIcon(IconKeys.GO_NEX
6
		putValue(AbstractColumbaAction.SMALL_ICON, ResourceLoader
8
T));
7
				.getSmallIcon(IconKeys.NEW_APPOINTMENT));
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes having the same super class
Number of node comparisons25
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements5
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    super(frameMediator, "Go Next");
    1
    super(frameMediator, "Go Next");
    1
    super(frameMediator, "New Appointment");
    Differences
    Expression1Expression2Difference
    "Go Next""New Appointment"LITERAL_VALUE_MISMATCH
    1
    super(frameMediator, "New Appointment");
    2
    putValue(AbstractColumbaAction.TOOLBAR_NAME, "Next");
    2
    putValue(AbstractColumbaAction.TOOLBAR_NAME, "Next");
    2
    putValue(AbstractColumbaAction.TOOLBAR_NAME, "New Appointment");
    Differences
    Expression1Expression2Difference
    "Next""New Appointment"LITERAL_VALUE_MISMATCH
    2
    putValue(AbstractColumbaAction.TOOLBAR_NAME, "New Appointment");
    3
    setShowToolBarText(false);
    3
    setShowToolBarText(false);
    3
    setShowToolBarText(true);
    Differences
    Expression1Expression2Difference
    falsetrueLITERAL_VALUE_MISMATCH
    3
    setShowToolBarText(true);
    4
    putValue(AbstractColumbaAction.SMALL_ICON, ImageLoader.getSmallIcon(IconKeys.GO_NEXT));
    4
    putValue(AbstractColumbaAction.SMALL_ICON, ImageLoader.getSmallIcon(IconKeys.GO_NEXT));
    5
    putValue(AbstractColumbaAction.SMALL_ICON, ResourceLoader.getSmallIcon(IconKeys.NEW_APPOINTMENT));
    Differences
    Expression1Expression2Difference
    org.columba.core.resourceloader.IconKeysorg.columba.calendar.resourceloader.IconKeysVARIABLE_TYPE_MISMATCH
    GO_NEXTNEW_APPOINTMENTVARIABLE_NAME_MISMATCH
    org.columba.core.resourceloader.ImageLoaderorg.columba.calendar.resourceloader.ResourceLoaderVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.columba.core.resourceloader.IconKeys of variable IconKeys does not match with type org.columba.calendar.resourceloader.IconKeys of variable IconKeys
    • Make classes org.columba.core.resourceloader.IconKeys and org.columba.calendar.resourceloader.IconKeys extend a common superclass
    Type org.columba.core.resourceloader.ImageLoader of variable ImageLoader does not match with type org.columba.calendar.resourceloader.ResourceLoader of variable ResourceLoader
    • Make classes org.columba.core.resourceloader.ImageLoader and org.columba.calendar.resourceloader.ResourceLoader extend a common superclass
    5
    putValue(AbstractColumbaAction.SMALL_ICON, ResourceLoader.getSmallIcon(IconKeys.NEW_APPOINTMENT));
    5
    putValue(AbstractColumbaAction.LARGE_ICON, ImageLoader.getIcon(IconKeys.GO_NEXT));
    5
    putValue(AbstractColumbaAction.LARGE_ICON, ImageLoader.getIcon(IconKeys.GO_NEXT));
    4
    putValue(AbstractColumbaAction.LARGE_ICON, ResourceLoader.getIcon(IconKeys.NEW_APPOINTMENT));
    Differences
    Expression1Expression2Difference
    org.columba.core.resourceloader.IconKeysorg.columba.calendar.resourceloader.IconKeysVARIABLE_TYPE_MISMATCH
    GO_NEXTNEW_APPOINTMENTVARIABLE_NAME_MISMATCH
    org.columba.core.resourceloader.ImageLoaderorg.columba.calendar.resourceloader.ResourceLoaderVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.columba.core.resourceloader.IconKeys of variable IconKeys does not match with type org.columba.calendar.resourceloader.IconKeys of variable IconKeys
    • Make classes org.columba.core.resourceloader.IconKeys and org.columba.calendar.resourceloader.IconKeys extend a common superclass
    Type org.columba.core.resourceloader.ImageLoader of variable ImageLoader does not match with type org.columba.calendar.resourceloader.ResourceLoader of variable ResourceLoader
    • Make classes org.columba.core.resourceloader.ImageLoader and org.columba.calendar.resourceloader.ResourceLoader extend a common superclass
    4
    putValue(AbstractColumbaAction.LARGE_ICON, ResourceLoader.getIcon(IconKeys.NEW_APPOINTMENT));
    Precondition Violations (4)
    Row Violation
    1Type org.columba.core.resourceloader.IconKeys of variable IconKeys does not match with type org.columba.calendar.resourceloader.IconKeys of variable IconKeys
    2Type org.columba.core.resourceloader.ImageLoader of variable ImageLoader does not match with type org.columba.calendar.resourceloader.ResourceLoader of variable ResourceLoader
    3Type org.columba.core.resourceloader.IconKeys of variable IconKeys does not match with type org.columba.calendar.resourceloader.IconKeys of variable IconKeys
    4Type org.columba.core.resourceloader.ImageLoader of variable ImageLoader does not match with type org.columba.calendar.resourceloader.ResourceLoader of variable ResourceLoader