File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/config/gui/HttpDefaultsGui.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/gui/ForeachControlPanel.java | |||
Method name: void clearGui()
|
Method name: void clearGui()
|
|||
Number of AST nodes: 3 | Number of AST nodes: 4 | |||
1 | super.clearGui();↵ | 1 | super.clearGui();↵ | |
2 | urlConfig.clear();↵ | 2 | ↵ | |
3 | imageParse↵ | |||
3 | inputVal.setText(""); // $NON-NLS-1$↵ | |||
4 | returnVal.setText(""); // $NON-NLS-1$↵ | |||
4 | r.setSelected(false); | 5 | useSeparator.setSelected(true); | |
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 | 12 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | super.clearGui(); |
| 1 | super.clearGui(); | ||||||||||||||||||||||||||
2 | urlConfig.clear(); |
| 2 | inputVal.setText(""); | ||||||||||||||||||||||||||
| 3 | returnVal.setText(""); | ||||||||||||||||||||||||||||
3 | imageParser.setSelected(false); |
| 4 | useSeparator.setSelected(true); |
Row | Violation |
---|---|
1 | Super method call super.clearGui(); cannot be extracted from method |
2 | Super method call super.clearGui(); cannot be extracted from method |
3 | Expression urlConfig.clear() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression urlConfig.clear() is a void method call, and thus it cannot be parameterized |
5 | Expression inputVal.setText("") is a void method call, and thus it cannot be parameterized |
6 | Expression urlConfig cannot be unified with expression inputVal , because common superclass javax.swing.JComponent does not declare member(s) public void clear() , public void setText(java.lang.String) |
7 | Expression urlConfig.clear() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Expression urlConfig.clear() is a void method call, and thus it cannot be parameterized |
9 | Expression inputVal.setText("") is a void method call, and thus it cannot be parameterized |