File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/tcp/config/gui/TCPConfigGui.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/config/gui/LdapConfigGui.java | |||
Method name: void clearGui()
|
Method name: void itemStateChanged(ItemEvent)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | super↵ | 1 | cl.show(cards, "Delete");↵ | |
2 | .clearGui();↵ | 2 | tableModifyPanel.clear();↵ | |
3 | ↵ | |||
4 | server.setText(""); //$NON-NLS-1$↵ | 3 | modify.setText(""); // $NON-NLS-1$↵ | |
5 | port.setText(""); //$NON-NLS-1$↵ | |||
6 | timeout↵ | 4 | tableAddPanel.clear();↵ | |
7 | .setText(""); //$NON-NLS-1$↵ | 5 | add.setText(""); // $NON-NLS-1$↵ | |
8 | requestData.setText(""); //$NON-NLS-1$↵ | 6 | searchbase.setText(""); // $NON-NLS-1$↵ | |
9 | reUseConnection.setSelected(true);↵ | |||
10 | setNoDelay.setSelected(false); | 7 | searchfilter.setText(""); | |
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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 49 |
Number of mapped statements | 7 |
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 | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | super.clearGui(); |
| 11 | cl.show(cards, "Delete"); | |||||||||||||||||||||||
2 | server.setText(""); |
| 17 | searchfilter.setText(""); | |||||||||||||||||||||||
3 | port.setText(""); |
| 15 | add.setText(""); | |||||||||||||||||||||||
4 | timeout.setText(""); |
| 13 | modify.setText(""); | |||||||||||||||||||||||
5 | requestData.setText(""); |
| 16 | searchbase.setText(""); | |||||||||||||||||||||||
6 | reUseConnection.setSelected(true); |
| 12 | tableModifyPanel.clear(); | |||||||||||||||||||||||
7 | setNoDelay.setSelected(false); |
| 14 | tableAddPanel.clear(); |
Row | Violation |
---|---|
1 | Expression super.clearGui() is a void method call, and thus it cannot be parameterized |
2 | Expression cl.show(cards,"Delete") is a void method call, and thus it cannot be parameterized |
3 | Expression reUseConnection.setSelected(true) is a void method call, and thus it cannot be parameterized |
4 | Expression tableModifyPanel.clear() is a void method call, and thus it cannot be parameterized |
5 | Expression reUseConnection.setSelected(true) is a void method call, and thus it cannot be parameterized |
6 | Expression tableModifyPanel.clear() is a void method call, and thus it cannot be parameterized |
7 | Expression setNoDelay.setSelected(false) is a void method call, and thus it cannot be parameterized |
8 | Expression tableAddPanel.clear() is a void method call, and thus it cannot be parameterized |
9 | Expression setNoDelay.setSelected(false) is a void method call, and thus it cannot be parameterized |
10 | Expression tableAddPanel.clear() is a void method call, and thus it cannot be parameterized |