run_stop.setEnabled(false); run_stop.addActionListener(ReportActionRouter.getInstance()); run_stop.setActionCommand(ACTION_STOP); run_shut = new JMenuItem(JMeterUtils.getResString("shutdown"), 'Y');
run_stop.setEnabled(false); run_stop.addActionListener(ActionRouter.getInstance()); run_stop.setActionCommand(ActionNames.ACTION_STOP); run_shut = new JMenuItem(JMeterUtils.getResString("shutdown"), 'Y');
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/util/ReportMenuBar.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/util/JMeterMenuBar.java
Method name: void makeRunMenu() Method name: void makeRunMenu()
Number of AST nodes: 4 Number of AST nodes: 4
1
run_stop.setEnabled(false);
1
run_stop.setEnabled(false);
2
		run_stop.addActionListener(ReportActionRouter.getInstance());
2
		run_stop.addActionListener(ActionRouter.getInstance());
3
		run_stop.setActionCommand(ACTION_STOP);
3
		run_stop.setActionCommand(ActionNames.ACTION_STOP);
4
		run_shut = new JMenuItem(JMeterUtils.getResString("shutdown"), 'Y');
4
		run_shut = new JMenuItem(JMeterUtils.getResString("shutdown"), 'Y');
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 comparisons10
  1. {Non-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
    9
    run_stop.setEnabled(false);
    9
    run_stop.setEnabled(false);
    10
    run_stop.addActionListener(ReportActionRouter.getInstance());
    10
    run_stop.addActionListener(ReportActionRouter.getInstance());
    10
    run_stop.addActionListener(ActionRouter.getInstance());
    Differences
    Expression1Expression2Difference
    org.apache.jmeter.report.gui.action.ReportActionRouterorg.apache.jmeter.gui.action.ActionRouterSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression ReportActionRouter cannot be unified with expression ActionRouter , because common superclass java.awt.event.ActionListener does not declare member(s) public static org.apache.jmeter.report.gui.action.ReportActionRouter getInstance() , public static org.apache.jmeter.gui.action.ActionRouter getInstance()
    10
    run_stop.addActionListener(ActionRouter.getInstance());
    11
    run_stop.setActionCommand(ACTION_STOP);
    11
    run_stop.setActionCommand(ACTION_STOP);
    11
    run_stop.setActionCommand(ActionNames.ACTION_STOP);
    Differences
    Expression1Expression2Difference
    ACTION_STOPActionNames.ACTION_STOPTYPE_COMPATIBLE_REPLACEMENT
    11
    run_stop.setActionCommand(ActionNames.ACTION_STOP);
    12
    run_shut = new JMenuItem(JMeterUtils.getResString("shutdown"), 'Y');
    12
    run_shut = new JMenuItem(JMeterUtils.getResString("shutdown"), 'Y');
    Precondition Violations (1)
    Row Violation
    1Expression ReportActionRouter cannot be unified with expression ActionRouter , because common superclass java.awt.event.ActionListener does not declare member(s) public static org.apache.jmeter.report.gui.action.ReportActionRouter getInstance() , public static org.apache.jmeter.gui.action.ActionRouter getInstance()