ButtonWithMnemonic closeButton = new ButtonWithMnemonic( GlobalResourceLoader.getString("global", "global", "close")); closeButton.setActionCommand("CLOSE"); closeButton.addActionListener(this);
ButtonWithMnemonic closeButton = new ButtonWithMnemonic( GlobalResourceLoader.getString("global", "global", "close")); closeButton.setActionCommand(CMD_CLOSE); closeButton.addActionListener(this);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/base/InfoViewerDialog.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/util/AboutDialog.java
Method name: void initComponents() Method name: void init()
Number of AST nodes: 3 Number of AST nodes: 3
1
ButtonWithMnemonic closeButton = new ButtonWithMnemonic(
1
ButtonWithMnemonic closeButton = new ButtonWithMnemonic(
2
				GlobalResourceLoader.getString("global", "global", "close"));
2
				GlobalResourceLoader.getString("global", "global", "close"));
3
		closeButton.setActionCommand("CLOSE");
3
		closeButton.setActionCommand(CMD_CLOSE);
4
		closeButton.addActionListener(this);
4
		closeButton.addActionListener(this);
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 comparisons5
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements3
    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
    14
    ButtonWithMnemonic closeButton = new ButtonWithMnemonic(GlobalResourceLoader.getString("global", "global", "close"));
    115
    ButtonWithMnemonic closeButton = new ButtonWithMnemonic(GlobalResourceLoader.getString("global", "global", "close"));
    15
    closeButton.setActionCommand("CLOSE");
    15
    closeButton.setActionCommand("CLOSE");
    116
    closeButton.setActionCommand(CMD_CLOSE);
    Differences
    Expression1Expression2Difference
    "CLOSE"CMD_CLOSETYPE_COMPATIBLE_REPLACEMENT
    116
    closeButton.setActionCommand(CMD_CLOSE);
    16
    closeButton.addActionListener(this);
    117
    closeButton.addActionListener(this);
    Precondition Violations (0)
    Row Violation