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 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
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 | 25 |
Number of mapped statements | 8 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 2.2 |
Clone type | Type 3 |
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 | createMenuBar(); | |||||||||||||||||||||
9 | createMenuBar(); |
| 7 | this.getRemoteItems(); |
Row | Violation |
---|---|
1 | Expression this.getRemoteItems() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression createMenuBar() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression this.getRemoteItems() is a void method call, and thus it cannot be parameterized |
4 | Expression createMenuBar() is a void method call, and thus it cannot be parameterized |
5 | Expression this.getRemoteItems() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression createMenuBar() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression this.getRemoteItems() is a void method call, and thus it cannot be parameterized |
8 | Expression createMenuBar() is a void method call, and thus it cannot be parameterized |
9 | Expression createMenuBar() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression this.getRemoteItems() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Expression createMenuBar() is a void method call, and thus it cannot be parameterized |
12 | Expression this.getRemoteItems() is a void method call, and thus it cannot be parameterized |
13 | Expression createMenuBar() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
14 | Expression this.getRemoteItems() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
15 | Expression createMenuBar() is a void method call, and thus it cannot be parameterized |
16 | Expression this.getRemoteItems() is a void method call, and thus it cannot be parameterized |