runMenu.add(remote_stop_all); if (remote_exit != null) { runMenu.add(remote_exit); } remote_exit_all = new JMenuItem(JMeterUtils.getResString("remote_exit_all")); //$NON-NLS-1$ remote_exit_all.addActionListener(ActionRouter.getInstance());
runMenu.add(remote_stop_all); if (remote_exit != null) { runMenu.add(remote_exit); } remote_exit_all = new JMenuItem(JMeterUtils.getResString("remote_exit_all")); remote_exit_all.addActionListener(ReportActionRouter.getInstance());
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/util/JMeterMenuBar.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/util/ReportMenuBar.java
Method name: void makeRunMenu() Method name: void makeRunMenu()
Number of AST nodes: 5 Number of AST nodes: 5
1
runMenu.add(remote_stop_all);
1
runMenu.add(remote_stop_all);
2
		if (remote_exit != null) {
2
		if (remote_exit != null) {
3
			runMenu.add(remote_exit);
3
			runMenu.add(remote_exit);
4
		}
4
		}
5
		remote_exit_all = new JMenuItem(JMeterUtils.getResString("remote_exit_all")); //$NON-NLS-1$
5
		remote_exit_all = new JMenuItem(JMeterUtils.getResString("remote_exit_all"));
6
		remote_exit_all.addActionListener(ActionRouter.getInstance());
6
		remote_exit_all.addActionListener(ReportActionRouter.getInstance());
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.1
Clones locationClones are in different classes having the same super class
Number of node comparisons9
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements5
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)3.9
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    42
    runMenu.add(remote_stop_all);
    41
    runMenu.add(remote_stop_all);
    43
    if (remote_exit != null)
    42
    if (remote_exit != null)
    44
    runMenu.add(remote_exit);
    43
    runMenu.add(remote_exit);
    45
    remote_exit_all = new JMenuItem(JMeterUtils.getResString("remote_exit_all"));
    44
    remote_exit_all = new JMenuItem(JMeterUtils.getResString("remote_exit_all"));
    46
    remote_exit_all.addActionListener(ActionRouter.getInstance());
    46
    remote_exit_all.addActionListener(ActionRouter.getInstance());
    45
    remote_exit_all.addActionListener(ReportActionRouter.getInstance());
    Differences
    Expression1Expression2Difference
    org.apache.jmeter.gui.action.ActionRouterorg.apache.jmeter.report.gui.action.ReportActionRouterVARIABLE_TYPE_MISMATCH
    org.apache.jmeter.gui.action.ActionRouterorg.apache.jmeter.report.gui.action.ReportActionRouterVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.apache.jmeter.gui.action.ActionRouter of variable ActionRouter.getInstance() does not match with type org.apache.jmeter.report.gui.action.ReportActionRouter of variable ReportActionRouter.getInstance()
    • Make classes org.apache.jmeter.gui.action.ActionRouter and org.apache.jmeter.report.gui.action.ReportActionRouter extend a common superclass
    Type org.apache.jmeter.gui.action.ActionRouter of variable ActionRouter does not match with type org.apache.jmeter.report.gui.action.ReportActionRouter of variable ReportActionRouter
    • Make classes org.apache.jmeter.gui.action.ActionRouter and org.apache.jmeter.report.gui.action.ReportActionRouter extend a common superclass
    45
    remote_exit_all.addActionListener(ReportActionRouter.getInstance());
    Precondition Violations (2)
    Row Violation
    1Type org.apache.jmeter.gui.action.ActionRouter of variable ActionRouter.getInstance() does not match with type org.apache.jmeter.report.gui.action.ReportActionRouter of variable ReportActionRouter.getInstance()
    2Type org.apache.jmeter.gui.action.ActionRouter of variable ActionRouter does not match with type org.apache.jmeter.report.gui.action.ReportActionRouter of variable ReportActionRouter