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();
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();
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 ReportMenuBar()
|
|
Method name: void JMeterMenuBar()
|
Number of AST nodes: 8
|
|
Number of AST nodes: 8
|
|
1 | remote_engine_start = new LinkedList();↵ | | 1 | remote_engine_start = new LinkedList();↵
|
2 | remote_engine_stop = new LinkedList();↵ | | 2 | remote_engine_stop = new LinkedList();↵
|
3 | remote_engine_exit = new LinkedList();↵ | | 3 | remote_engine_exit = new LinkedList();↵
|
4 | remoteHosts = JOrphanUtils.split(JMeterUtils.getPropDefault("remote_hosts", ""), ",");↵ | | 4 | remoteHosts = JOrphanUtils.split(JMeterUtils.getPropDefault("remote_hosts", ""), ","); //$NON-NLS-1$↵
|
5 | if (remoteHosts.length == 1 && remoteHosts[0].equals("")) {↵ | | 5 | if (remoteHosts.length == 1 && remoteHosts[0].equals("")) {↵
|
6 | remoteHosts = new String[0];↵ | | 6 | remoteHosts = new String[0];↵
|
7 | }↵ | | 7 | }↵
|
8 | this.getRemoteItems();↵ | | 8 | this.getRemoteItems();↵
|
9 | createMenuBar(); | | 9 | createMenuBar();
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.3 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 20 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 8 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 10.6 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
1 | remote_engine_start = new LinkedList(); | | 2 | remote_engine_start = new LinkedList(); |
2 | remote_engine_stop = new LinkedList(); | | 3 | remote_engine_stop = new LinkedList(); |
3 | remote_engine_exit = new LinkedList(); | | 4 | remote_engine_exit = new LinkedList(); |
4 | remoteHosts = JOrphanUtils.split(JMeterUtils.getPropDefault("remote_hosts", ""), ","); | | 5 | remoteHosts = JOrphanUtils.split(JMeterUtils.getPropDefault("remote_hosts", ""), ","); |
5 | if (remoteHosts.length == 1 && remoteHosts[0].equals("")) | | 6 | if (remoteHosts.length == 1 && remoteHosts[0].equals("")) |
6 | remoteHosts = new String[0]; | | 7 | remoteHosts = new String[0]; |
7 | this.getRemoteItems(); | | 8 | this.getRemoteItems(); |
8 | createMenuBar(); | | 9 | createMenuBar(); |
Precondition Violations (0)
Row |
Violation |