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/ReportMenuBar.java | |||
Method name: void getRemoteItems()
|
Method name: void getRemoteItems()
|
|||
Number of AST nodes: 9 | Number of AST nodes: 9 | |||
1 | remote_engine_start.add(item);↵ | 1 | remote_engine_stop.add(item);↵ | |
2 | remote_start.add(item);↵ | 2 | remote_stop.add(item);↵ | |
3 | item = new JMenuItem(remoteHosts[i]);↵ | 3 | item = new JMenuItem(remoteHosts[i]);↵ | |
4 | item.setActionCommand("remote_stop");↵ | 4 | item.setActionCommand("remote_exit");↵ | |
5 | item.setName(remoteHosts[i]);↵ | 5 | item.setName(remoteHosts[i]);↵ | |
6 | item.addActionListener(ReportActionRouter.getInstance());↵ | 6 | item.addActionListener(ReportActionRouter.getInstance());↵ | |
7 | item.setEnabled(false);↵ | 7 | item.setEnabled(false);↵ | |
8 | remote_engine_stop.add(item);↵ | 8 | remote_engine_exit.add(item);↵ | |
9 | remote_stop.add(item); | 9 | remote_exit.add(item); | |
See real code fragment | See real code fragment |
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.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 82 |
Number of mapped statements | 9 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11 | remote_engine_start.add(item); |
| 18 | remote_engine_stop.add(item); | ||||||||||
12 | remote_start.add(item); |
| 26 | remote_exit.add(item); | ||||||||||
13 | item = new JMenuItem(remoteHosts[i]); | 20 | item = new JMenuItem(remoteHosts[i]); | |||||||||||
14 | item.setActionCommand("remote_stop"); |
| 21 | item.setActionCommand("remote_exit"); | ||||||||||
15 | item.setName(remoteHosts[i]); | 22 | item.setName(remoteHosts[i]); | |||||||||||
16 | item.addActionListener(ReportActionRouter.getInstance()); | 23 | item.addActionListener(ReportActionRouter.getInstance()); | |||||||||||
17 | item.setEnabled(false); | 24 | item.setEnabled(false); | |||||||||||
18 | remote_engine_stop.add(item); |
| 25 | remote_engine_exit.add(item); | ||||||||||
19 | remote_stop.add(item); | 19 | remote_stop.add(item); |
Row | Violation |
---|