runMenu.add(remote_stop_all); if (remote_exit != null) { runMenu.add(remote_exit); } remote_exit_all = new JMenuItem(JMeterUtils.getResString("remote_exit_all"));
runMenu.add(run_start); if (remote_start != null) { runMenu.add(remote_start); } remote_start_all = new JMenuItem(JMeterUtils.getResString("remote_start_all"));
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/JMeterMenuBar.java
Method name: void makeRunMenu() Method name: void makeRunMenu()
Number of AST nodes: 4 Number of AST nodes: 4
1
runMenu.add(remote_stop_all);
1
runMenu.add(r
2
un_start);
2
		if (remote_exit != null) {
3
		if (remote_start != null) {
3
			runMenu.add(remote_exit);
4
			runMenu.add(remote_start);
4
		}
5
		}
5
		remote_exit_all = new JMenuItem(JMeterUtils.getResString("remote_exit_all"));
6
		remote_start_all = new JMenuItem(JMeterUtils.getResString("remote_start_all"));
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 the same method
Number of node comparisons6
  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)1.2
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    42
    runMenu.add(remote_stop_all);
    42
    runMenu.add(remote_stop_all);
    25
    runMenu.add(run_start);
    Differences
    Expression1Expression2Difference
    remote_stop_allrun_startVARIABLE_NAME_MISMATCH
    25
    runMenu.add(run_start);
    43
    if (remote_exit != null)
    43
    if (remote_exit != null)
    26
    if (remote_start != null)
    Differences
    Expression1Expression2Difference
    remote_exitremote_startVARIABLE_NAME_MISMATCH
    26
    if (remote_start != null)
    44
    runMenu.add(remote_exit);
    44
    runMenu.add(remote_exit);
    27
    runMenu.add(remote_start);
    Differences
    Expression1Expression2Difference
    remote_exitremote_startVARIABLE_NAME_MISMATCH
    27
    runMenu.add(remote_start);
    45
    remote_exit_all = new JMenuItem(JMeterUtils.getResString("remote_exit_all"));
    45
    remote_exit_all = new JMenuItem(JMeterUtils.getResString("remote_exit_all"));
    28
    remote_start_all = new JMenuItem(JMeterUtils.getResString("remote_start_all"));
    Differences
    Expression1Expression2Difference
    remote_exit_allremote_start_allVARIABLE_NAME_MISMATCH
    "remote_exit_all""remote_start_all"LITERAL_VALUE_MISMATCH
    Preondition Violations
    Expression remote_exit_all is a field being modified, and thus it cannot be parameterized
    Expression remote_start_all is a field being modified, and thus it cannot be parameterized
    28
    remote_start_all = new JMenuItem(JMeterUtils.getResString("remote_start_all"));
    Precondition Violations (2)
    Row Violation
    1Expression remote_exit_all is a field being modified, and thus it cannot be parameterized
    2Expression remote_start_all is a field being modified, and thus it cannot be parameterized