super.clearGui();
_fieldName.setText(""); //$NON-NLS-1$
_prefix.setText(""); //$NON-NLS-1$
_lowerBound.setText(ZERO);
_upperBound.setText("10"); //$NON-NLS-1$
_increment.setText("1"); //$NON-NLS-1$
_suffix.setText("");
super.clearGui();
server.setText(""); //$NON-NLS-1$
port.setText(""); //$NON-NLS-1$
timeout.setText(""); //$NON-NLS-1$
requestData.setText(""); //$NON-NLS-1$
reUseConnection.setSelected(true);
setNoDelay.setSelected(false);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/modifier/gui/ParamModifierGui.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/tcp/config/gui/TCPConfigGui.java
|
Method name: void clearGui()
|
|
Method name: void clearGui()
|
Number of AST nodes: 7
|
|
Number of AST nodes: 7
|
|
1 | super.clearGui();↵ | | 1 | super.clearGui();↵
|
2 | ↵ | | 2 | ↵
|
3 | _fieldName.setText(""); //$NON-NLS-1$↵ | | 3 | server.setText(""); //$NON-NLS-1$↵
|
4 | _prefix.setText(""); //$NON-NLS-1$↵ | | 4 | port.setText(""); //$NON-NLS-1$↵
|
5 | _lowerBound.setText(ZERO);↵ | | 5 | ↵
|
6 | _upperBound↵ | | 6 | timeout.setText(""); //$NON-NLS-1$↵
|
7 | .setText("10"); //$NON-NLS-1$↵ | | 7 | requestData.setText(""); //$NON-NLS-1$↵
|
8 | _increment.setText("1"); //$NON-NLS-1$↵ | | 8 | ↵
|
9 | _suffix.setText(""↵ | | 9 | reUseConnection.setSelected(true);↵
|
10 | ); | | 10 | setNoDelay.setSelected(false);
|
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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 49 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
1 | super.clearGui(); | | 1 | super.clearGui(); |
2 | _fieldName.setText(""); | | 2 | server.setText(""); |
3 | _prefix.setText(""); | | 3 | port.setText(""); |
4 | _lowerBound.setText(ZERO); | | 4 | timeout.setText(""); |
5 | _upperBound.setText("10"); | | 5 | requestData.setText(""); |
| | | 6 | reUseConnection.setSelected(true); |
6 | _increment.setText("1"); | | | |
| | | 7 | setNoDelay.setSelected(false); |
7 | _suffix.setText(""); | | | |
Precondition Violations (0)
Row |
Violation |