putValue(SHORT_DESCRIPTION, GlobalResourceLoader.getString(null, null, "menu_edit_copy_tooltip").replaceAll("&", "")); // small icon for menu putValue(SMALL_ICON, ImageLoader.getSmallIcon(IconKeys.EDIT_COPY)); // large icon for toolbar putValue(LARGE_ICON, ImageLoader.getIcon(IconKeys.EDIT_COPY)); // short cut key putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_C, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
putValue(SHORT_DESCRIPTION, GlobalResourceLoader.getString(null, null, "menu_edit_find_tooltip").replaceAll("&", "")); // small icon for menu putValue(SMALL_ICON, ImageLoader.getSmallIcon(IconKeys.EDIT_FIND)); // large icon for toolbar putValue(LARGE_ICON, ImageLoader.getIcon(IconKeys.EDIT_FIND)); // shortcut key putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_F, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/globalactions/CopyAction.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/action/FindAction.java
Method name: void CopyAction(IFrameMediator) Method name: void FindAction(IFrameMediator)
Number of AST nodes: 4 Number of AST nodes: 4
1
putValue(SHORT_DESCRIPTION, GlobalResourceLoader.getString(null, null,
1
putValue(SHORT_DESCRIPTION, GlobalResourceLoader.getString(null, null,
2
				"menu_edit_copy_tooltip").replaceAll("&", ""));
2
				"menu_edit_find_tooltip").replaceAll("&", ""));
3
		// small icon for menu
3
		// small icon for menu
4
		putValue(SMALL_ICON, ImageLoader.getSmallIcon(IconKeys.EDIT_COPY));
4
		putValue(SMALL_ICON, ImageLoader.getSmallIcon(IconKeys.EDIT_FIND));
5
		// large icon for toolbar
5
		// large icon for toolbar
6
		putValue(LARGE_ICON, ImageLoader.getIcon(IconKeys.EDIT_COPY));
6
		putValue(LARGE_ICON, ImageLoader.getIcon(IconKeys.EDIT_FIND));
7
		// short cut key
7
		// shortcut key
8
		putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_C,
8
		putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_F,
9
				Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
9
				Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
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.0
Clones locationClones are in different classes having the same super class
Number of node comparisons16
  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)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    2
    putValue(SHORT_DESCRIPTION, GlobalResourceLoader.getString(null, null, "menu_edit_copy_tooltip").replaceAll("&", ""));
    2
    putValue(SHORT_DESCRIPTION, GlobalResourceLoader.getString(null, null, "menu_edit_copy_tooltip").replaceAll("&", ""));
    2
    putValue(SHORT_DESCRIPTION, GlobalResourceLoader.getString(null, null, "menu_edit_find_tooltip").replaceAll("&", ""));
    Differences
    Expression1Expression2Difference
    "menu_edit_copy_tooltip""menu_edit_find_tooltip"LITERAL_VALUE_MISMATCH
    2
    putValue(SHORT_DESCRIPTION, GlobalResourceLoader.getString(null, null, "menu_edit_find_tooltip").replaceAll("&", ""));
    3
    putValue(SMALL_ICON, ImageLoader.getSmallIcon(IconKeys.EDIT_COPY));
    3
    putValue(SMALL_ICON, ImageLoader.getSmallIcon(IconKeys.EDIT_COPY));
    3
    putValue(SMALL_ICON, ImageLoader.getSmallIcon(IconKeys.EDIT_FIND));
    Differences
    Expression1Expression2Difference
    EDIT_COPYEDIT_FINDVARIABLE_NAME_MISMATCH
    3
    putValue(SMALL_ICON, ImageLoader.getSmallIcon(IconKeys.EDIT_FIND));
    4
    putValue(LARGE_ICON, ImageLoader.getIcon(IconKeys.EDIT_COPY));
    4
    putValue(LARGE_ICON, ImageLoader.getIcon(IconKeys.EDIT_COPY));
    4
    putValue(LARGE_ICON, ImageLoader.getIcon(IconKeys.EDIT_FIND));
    Differences
    Expression1Expression2Difference
    EDIT_COPYEDIT_FINDVARIABLE_NAME_MISMATCH
    4
    putValue(LARGE_ICON, ImageLoader.getIcon(IconKeys.EDIT_FIND));
    5
    putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_C, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
    5
    putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_C, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
    5
    putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_F, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
    Differences
    Expression1Expression2Difference
    VK_CVK_FVARIABLE_NAME_MISMATCH
    5
    putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_F, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
    Precondition Violations (0)
    Row Violation