File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/reporters/gui/ResultSaverGui.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/reporters/gui/ResultSaverGui.java | |||
Method name: void configure(TestElement)
|
Method name: void modifyTestElement(TestElement)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | super.configure(el);↵ | 1 | super.configure↵ | |
2 | filename.setText(el.getPropertyAsString(ResultSaver.FILENAME));↵ | |||
3 | errorsOnly.setSelected(el.g↵ | 2 | TestElement(te);↵ | |
3 | te.setProperty(ResultSaver.FILENAME, filename.getText());↵ | |||
4 | etPropertyAsBoolean(ResultSaver.ERRORS_ONLY));↵ | 4 | te.setProperty(ResultSaver.ERRORS_ONLY↵ | |
5 | successOnly.setSelected(el.g↵ | 5 | , errorsOnly.isSelected());↵ | |
6 | etPropertyAsBoolean(ResultSaver.SUCCESS_ONLY)); | 6 | te.setProperty(ResultSaver.SUCCESS_ONLY, successOnly.isSelected()); | |
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 declared in the same class |
Number of node comparisons | 16 |
Number of mapped statements | 2 |
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 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | super.configure(el); |
| 2 | te.setProperty(ResultSaver.FILENAME, filename.getText()); | ||||||||||||
2 | filename.setText(el.getPropertyAsString(ResultSaver.FILENAME)); |
| 1 | super.configureTestElement(te); | ||||||||||||
|
| 3 | te.setProperty(ResultSaver.ERRORS_ONLY, errorsOnly.isSelected()); | |||||||||||||
3 | errorsOnly.setSelected(el.getPropertyAsBoolean(ResultSaver.ERRORS_ONLY)); |
| | |||||||||||||
| 4 | te.setProperty(ResultSaver.SUCCESS_ONLY, successOnly.isSelected()); | ||||||||||||||
4 | successOnly.setSelected(el.getPropertyAsBoolean(ResultSaver.SUCCESS_ONLY)); | |
Row | Violation |
---|---|
1 | Expression super.configure(el) is a void method call, and thus it cannot be parameterized |
2 | Expression te.setProperty(ResultSaver.FILENAME,filename.getText()) is a void method call, and thus it cannot be parameterized |
3 | Expression filename.setText(el.getPropertyAsString(ResultSaver.FILENAME)) is a void method call, and thus it cannot be parameterized |
4 | Expression super.configureTestElement(te) is a void method call, and thus it cannot be parameterized |
5 | Unmatched statement te.setProperty(ResultSaver.ERRORS_ONLY,errorsOnly.isSelected()); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
6 | Unmatched statement errorsOnly.setSelected(el.getPropertyAsBoolean(ResultSaver.ERRORS_ONLY)); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |