run_shut.setEnabled(false); run_shut.addActionListener(ReportActionRouter.getInstance()); run_shut.setActionCommand(ACTION_SHUTDOWN); run_clear = new JMenuItem(JMeterUtils.getResString("clear"), 'C'); run_clear.addActionListener(ReportActionRouter.getInstance()); run_clear.setActionCommand(ActionNames.CLEAR);
run_shut.setEnabled(false); run_shut.addActionListener(ActionRouter.getInstance()); run_shut.setActionCommand(ActionNames.ACTION_SHUTDOWN); run_clear = new JMenuItem(JMeterUtils.getResString("clear"), 'C'); //$NON-NLS-1$ run_clear.addActionListener(ActionRouter.getInstance()); run_clear.setActionCommand(ActionNames.CLEAR);
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: 6 Number of AST nodes: 6
1
run_shut.setEnabled(false);
1
run_shut.setEnabled(false);
2
		run_shut.addActionListener(ReportActionRouter.getInstance());
2
		run_shut.addActionListener(ActionRouter.getInstance());
3
		run_shut.setActionCommand(ACTION_SHUTDOWN);
3
		run_shut.setActionCommand(ActionNames.ACTION_SHUTDOWN);
4
		run_clear = new JMenuItem(JMeterUtils.getResString("clear"), 'C');
4
		run_clear = new JMenuItem(JMeterUtils.getResString("clear"), 'C'); //$NON-NLS-1$
5
		run_clear.addActionListener(ReportActionRouter.getInstance());
5
		run_clear.addActionListener(ActionRouter.getInstance());
6
		run_clear.setActionCommand(ActionNames.CLEAR);
6
		run_clear.setActionCommand(ActionNames.CLEAR);
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 comparisons26
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements6
    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
    run_shut.setEnabled(false);
    14
    run_shut.setEnabled(false);
    15
    run_shut.addActionListener(ReportActionRouter.getInstance());
    15
    run_shut.addActionListener(ReportActionRouter.getInstance());
    15
    run_shut.addActionListener(ActionRouter.getInstance());
    Differences
    Expression1Expression2Difference
    org.apache.jmeter.report.gui.action.ReportActionRouterorg.apache.jmeter.gui.action.ActionRouterVARIABLE_TYPE_MISMATCH
    org.apache.jmeter.report.gui.action.ReportActionRouterorg.apache.jmeter.gui.action.ActionRouterVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.apache.jmeter.report.gui.action.ReportActionRouter of variable ReportActionRouter.getInstance() does not match with type org.apache.jmeter.gui.action.ActionRouter of variable ActionRouter.getInstance()
    • Make classes org.apache.jmeter.report.gui.action.ReportActionRouter and org.apache.jmeter.gui.action.ActionRouter extend a common superclass
    Type org.apache.jmeter.report.gui.action.ReportActionRouter of variable ReportActionRouter does not match with type org.apache.jmeter.gui.action.ActionRouter of variable ActionRouter
    • Make classes org.apache.jmeter.report.gui.action.ReportActionRouter and org.apache.jmeter.gui.action.ActionRouter extend a common superclass
    15
    run_shut.addActionListener(ActionRouter.getInstance());
    16
    run_shut.setActionCommand(ACTION_SHUTDOWN);
    16
    run_shut.setActionCommand(ACTION_SHUTDOWN);
    16
    run_shut.setActionCommand(ActionNames.ACTION_SHUTDOWN);
    Differences
    Expression1Expression2Difference
    ACTION_SHUTDOWNActionNames.ACTION_SHUTDOWNTYPE_COMPATIBLE_REPLACEMENT
    16
    run_shut.setActionCommand(ActionNames.ACTION_SHUTDOWN);
    17
    run_clear = new JMenuItem(JMeterUtils.getResString("clear"), 'C');
    17
    run_clear = new JMenuItem(JMeterUtils.getResString("clear"), 'C');
    18
    run_clear.addActionListener(ReportActionRouter.getInstance());
    18
    run_clear.addActionListener(ReportActionRouter.getInstance());
    18
    run_clear.addActionListener(ActionRouter.getInstance());
    Differences
    Expression1Expression2Difference
    org.apache.jmeter.report.gui.action.ReportActionRouterorg.apache.jmeter.gui.action.ActionRouterVARIABLE_TYPE_MISMATCH
    org.apache.jmeter.report.gui.action.ReportActionRouterorg.apache.jmeter.gui.action.ActionRouterVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Expression ReportActionRouter.getInstance() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression ActionRouter.getInstance() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Type org.apache.jmeter.report.gui.action.ReportActionRouter of variable ReportActionRouter.getInstance() does not match with type org.apache.jmeter.gui.action.ActionRouter of variable ActionRouter.getInstance()
    • Make classes org.apache.jmeter.report.gui.action.ReportActionRouter and org.apache.jmeter.gui.action.ActionRouter extend a common superclass
    Type org.apache.jmeter.report.gui.action.ReportActionRouter of variable ReportActionRouter does not match with type org.apache.jmeter.gui.action.ActionRouter of variable ActionRouter
    • Make classes org.apache.jmeter.report.gui.action.ReportActionRouter and org.apache.jmeter.gui.action.ActionRouter extend a common superclass
    18
    run_clear.addActionListener(ActionRouter.getInstance());
    19
    run_clear.setActionCommand(ActionNames.CLEAR);
    19
    run_clear.setActionCommand(ActionNames.CLEAR);
    Precondition Violations (6)
    Row Violation
    1Type org.apache.jmeter.report.gui.action.ReportActionRouter of variable ReportActionRouter.getInstance() does not match with type org.apache.jmeter.gui.action.ActionRouter of variable ActionRouter.getInstance()
    2Type org.apache.jmeter.report.gui.action.ReportActionRouter of variable ReportActionRouter does not match with type org.apache.jmeter.gui.action.ActionRouter of variable ActionRouter
    3Expression ReportActionRouter.getInstance() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Expression ActionRouter.getInstance() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5Type org.apache.jmeter.report.gui.action.ReportActionRouter of variable ReportActionRouter.getInstance() does not match with type org.apache.jmeter.gui.action.ActionRouter of variable ActionRouter.getInstance()
    6Type org.apache.jmeter.report.gui.action.ReportActionRouter of variable ReportActionRouter does not match with type org.apache.jmeter.gui.action.ActionRouter of variable ActionRouter