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));
super(frameMediator, "Go Back"); putValue(AbstractColumbaAction.TOOLBAR_NAME, "Back"); setShowToolBarText(false); putValue(AbstractColumbaAction.SMALL_ICON, ImageLoader.getSmallIcon(IconKeys.GO_PREVIOUS)); putValue(AbstractColumbaAction.LARGE_ICON, ImageLoader.getIcon(IconKeys.GO_PREVIOUS));
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/action/NewAppointmentAction.java File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/action/GoBackAction.java
Method name: void NewAppointmentAction(IFrameMediator) Method name: void GoBackAction(IFrameMediator)
Number of AST nodes: 5 Number of AST nodes: 5
1
super(frameMediator, "New Appointment");
1
super(frameMediator, "Go Back");
2
		
2
		putValue(AbstractColumbaAction.TOOLBAR_NAME, "New Appointment");
3
		putValue(AbstractColumbaAction.TOOLBAR_NAME, "Back");
3
		setShowToolBarText(true);
4
		setShowToolBarText(false);
5
		
4
		putValue(AbstractColumbaAction.LARGE_ICON, ResourceLoader
6
		putValue(AbstractColumbaAction.SMALL_ICON, 
5
				.getIcon(IconKeys.NEW_APPOINTMENT));
7
ImageLoader.getSmallIcon(IconKeys.GO_PREVIOUS));
6
		putValue(AbstractColumbaAction.SMALL_ICON, ResourceLoader
8
		putValue(AbstractColumbaAction.LARGE_ICON, 
7
				.getSmallIcon(IconKeys.NEW_APPOINTMENT));
9
ImageLoader.getIcon(IconKeys.GO_PREVIOUS));
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 statements3
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    super(frameMediator, "New Appointment");
    1
    super(frameMediator, "New Appointment");
    1
    super(frameMediator, "Go Back");
    Differences
    Expression1Expression2Difference
    "New Appointment""Go Back"LITERAL_VALUE_MISMATCH
    Preondition Violations
    Super constructor call super(frameMediator,"New Appointment"); cannot be extracted from constructor
    Super constructor call super(frameMediator,"Go Back"); cannot be extracted from constructor
    1
    super(frameMediator, "Go Back");
    2
    putValue(AbstractColumbaAction.TOOLBAR_NAME, "New Appointment");
    2
    putValue(AbstractColumbaAction.TOOLBAR_NAME, "New Appointment");
    2
    putValue(AbstractColumbaAction.TOOLBAR_NAME, "Back");
    Differences
    Expression1Expression2Difference
    "New Appointment""Back"LITERAL_VALUE_MISMATCH
    2
    putValue(AbstractColumbaAction.TOOLBAR_NAME, "Back");
    3
    setShowToolBarText(true);
    3
    setShowToolBarText(true);
    3
    setShowToolBarText(false);
    Differences
    Expression1Expression2Difference
    truefalseLITERAL_VALUE_MISMATCH
    3
    setShowToolBarText(false);
                                                                                                                                                                                              
    4
    putValue(AbstractColumbaAction.SMALL_ICON, ImageLoader.getSmallIcon(IconKeys.GO_PREVIOUS));
    Preondition Violations
    Unmatched statement putValue(AbstractColumbaAction.SMALL_ICON,ImageLoader.getSmallIcon(IconKeys.GO_PREVIOUS)); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    4
    putValue(AbstractColumbaAction.SMALL_ICON, ImageLoader.getSmallIcon(IconKeys.GO_PREVIOUS));
    4
    putValue(AbstractColumbaAction.LARGE_ICON, ResourceLoader.getIcon(IconKeys.NEW_APPOINTMENT));
    4
    putValue(AbstractColumbaAction.LARGE_ICON, ResourceLoader.getIcon(IconKeys.NEW_APPOINTMENT));
    Preondition Violations
    Unmatched statement putValue(AbstractColumbaAction.LARGE_ICON,ResourceLoader.getIcon(IconKeys.NEW_APPOINTMENT)); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                                                                                                                                                  
                                                                                                                                                                                    
    5
    putValue(AbstractColumbaAction.LARGE_ICON, ImageLoader.getIcon(IconKeys.GO_PREVIOUS));
    Preondition Violations
    Unmatched statement putValue(AbstractColumbaAction.LARGE_ICON,ImageLoader.getIcon(IconKeys.GO_PREVIOUS)); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    5
    putValue(AbstractColumbaAction.LARGE_ICON, ImageLoader.getIcon(IconKeys.GO_PREVIOUS));
    5
    putValue(AbstractColumbaAction.SMALL_ICON, ResourceLoader.getSmallIcon(IconKeys.NEW_APPOINTMENT));
    5
    putValue(AbstractColumbaAction.SMALL_ICON, ResourceLoader.getSmallIcon(IconKeys.NEW_APPOINTMENT));
    Preondition Violations
    Unmatched statement putValue(AbstractColumbaAction.SMALL_ICON,ResourceLoader.getSmallIcon(IconKeys.NEW_APPOINTMENT)); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                                                                                                                                                            
    Precondition Violations (6)
    Row Violation
    1Super constructor call super(frameMediator,"New Appointment"); cannot be extracted from constructor
    2Super constructor call super(frameMediator,"Go Back"); cannot be extracted from constructor
    3Unmatched statement putValue(AbstractColumbaAction.SMALL_ICON,ImageLoader.getSmallIcon(IconKeys.GO_PREVIOUS)); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    4Unmatched statement putValue(AbstractColumbaAction.LARGE_ICON,ResourceLoader.getIcon(IconKeys.NEW_APPOINTMENT)); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    5Unmatched statement putValue(AbstractColumbaAction.LARGE_ICON,ImageLoader.getIcon(IconKeys.GO_PREVIOUS)); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    6Unmatched statement putValue(AbstractColumbaAction.SMALL_ICON,ResourceLoader.getSmallIcon(IconKeys.NEW_APPOINTMENT)); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted