file_load_recent_files = new LinkedList(); // Lists for remote engines menu items remote_engine_start = new LinkedList(); remote_engine_stop = new LinkedList(); remote_engine_exit = new LinkedList(); remoteHosts = JOrphanUtils.split(JMeterUtils.getPropDefault("remote_hosts", ""), ","); //$NON-NLS-1$ if (remoteHosts.length == 1 && remoteHosts[0].equals("")) { remoteHosts = new String[0]; } this.getRemoteItems(); createMenuBar();
remote_engine_start = new LinkedList(); remote_engine_stop = new LinkedList(); remote_engine_exit = new LinkedList(); remoteHosts = JOrphanUtils.split(JMeterUtils.getPropDefault("remote_hosts", ""), ","); if (remoteHosts.length == 1 && remoteHosts[0].equals("")) { remoteHosts = new String[0]; } this.getRemoteItems(); createMenuBar();
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 JMeterMenuBar() Method name: void ReportMenuBar()
Number of AST nodes: 9 Number of AST nodes: 8
1
file_load_recent_files = new LinkedList();
2
		// Lists for remote engines menu items
3
		remote_engine_start = new LinkedList();
1
remote_engine_start = new LinkedList();
4
		remote_engine_stop = new LinkedList();
2
		remote_engine_stop = new LinkedList();
5
		remote_engine_exit = new LinkedList();
3
		remote_engine_exit = new LinkedList();
6
		remoteHosts = JOrphanUtils.split(JMeterUtils.getPropDefault("remote_hosts", ""), ","); //$NON-NLS-1$
4
		remoteHosts = JOrphanUtils.split(JMeterUtils.getPropDefault("remote_hosts", ""), ",");
7
		if (remoteHosts.length == 1 && remoteHosts[0].equals("")) {
5
		if (remoteHosts.length == 1 && remoteHosts[0].equals("")) {
8
			remoteHosts = new String[0];
6
			remoteHosts = new String[0];
9
		}
7
		}
10
		this.getRemoteItems();
8
		this.getRemoteItems();
11
		createMenuBar();
9
		createMenuBar();
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.3
Clones locationClones are in different classes having the same super class
Number of node comparisons25
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements8
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)2.2
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    1
    file_load_recent_files = new LinkedList();
                                                                                          
    2
    remote_engine_start = new LinkedList();
    1
    remote_engine_start = new LinkedList();
    3
    remote_engine_stop = new LinkedList();
    2
    remote_engine_stop = new LinkedList();
    4
    remote_engine_exit = new LinkedList();
    3
    remote_engine_exit = new LinkedList();
    5
    remoteHosts = JOrphanUtils.split(JMeterUtils.getPropDefault("remote_hosts", ""), ",");
    4
    remoteHosts = JOrphanUtils.split(JMeterUtils.getPropDefault("remote_hosts", ""), ",");
    6
    if (remoteHosts.length == 1 && remoteHosts[0].equals(""))
    5
    if (remoteHosts.length == 1 && remoteHosts[0].equals(""))
    7
    remoteHosts = new String[0];
    6
    remoteHosts = new String[0];
    8
    this.getRemoteItems();
    8
    this.getRemoteItems();
    8
    createMenuBar();
    Differences
    Expression1Expression2Difference
    getRemoteItemscreateMenuBarMETHOD_INVOCATION_NAME_MISMATCH
    thisMISSING_METHOD_INVOCATION_EXPRESSION
    Preondition Violations
    Expression this.getRemoteItems() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method getRemoteItems
    Expression createMenuBar() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression this.getRemoteItems() is a void method call, and thus it cannot be parameterized
    Expression createMenuBar() is a void method call, and thus it cannot be parameterized
    Expression this.getRemoteItems() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method getRemoteItems
    Expression createMenuBar() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression this.getRemoteItems() is a void method call, and thus it cannot be parameterized
    Expression createMenuBar() is a void method call, and thus it cannot be parameterized
    8
    createMenuBar();
    9
    createMenuBar();
    9
    createMenuBar();
    7
    this.getRemoteItems();
    Differences
    Expression1Expression2Difference
    createMenuBargetRemoteItemsMETHOD_INVOCATION_NAME_MISMATCH
    thisMISSING_METHOD_INVOCATION_EXPRESSION
    Preondition Violations
    Expression createMenuBar() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression this.getRemoteItems() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method getRemoteItems
    Expression createMenuBar() is a void method call, and thus it cannot be parameterized
    Expression this.getRemoteItems() is a void method call, and thus it cannot be parameterized
    Expression createMenuBar() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression this.getRemoteItems() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method getRemoteItems
    Expression createMenuBar() is a void method call, and thus it cannot be parameterized
    Expression this.getRemoteItems() is a void method call, and thus it cannot be parameterized
    7
    this.getRemoteItems();
    Precondition Violations (16)
    Row Violation
    1Expression this.getRemoteItems() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression createMenuBar() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression this.getRemoteItems() is a void method call, and thus it cannot be parameterized
    4Expression createMenuBar() is a void method call, and thus it cannot be parameterized
    5Expression this.getRemoteItems() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression createMenuBar() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7Expression this.getRemoteItems() is a void method call, and thus it cannot be parameterized
    8Expression createMenuBar() is a void method call, and thus it cannot be parameterized
    9Expression createMenuBar() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    10Expression this.getRemoteItems() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    11Expression createMenuBar() is a void method call, and thus it cannot be parameterized
    12Expression this.getRemoteItems() is a void method call, and thus it cannot be parameterized
    13Expression createMenuBar() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    14Expression this.getRemoteItems() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    15Expression createMenuBar() is a void method call, and thus it cannot be parameterized
    16Expression this.getRemoteItems() is a void method call, and thus it cannot be parameterized