File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/gui/IfControllerPanel.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/gui/IfControllerPanel.java | |||
Method name: void configure(TestElement)
|
Method name: void modifyTestElement(TestElement)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | super.configure(element);↵ | 1 | configureTestElement↵ | |
2 | if (element↵ | 2 | (controller);↵ | |
3 | instanceof IfController) {↵ | 3 | if (controller instanceof IfController) {↵ | |
4 | IfController ifController = (IfController) element;↵ | 4 | IfController ifController = (IfController) ↵ | |
5 | theCondition.setText(↵ | 5 | controller;↵ | |
6 | ifController.getCondition());↵ | 6 | ifController.setCondition(↵ | |
7 | evaluateAll.setSelected(↵ | 7 | theCondition.getText());↵ | |
8 | ifController.isEvaluateAll());↵ | 8 | ifController.setEvaluateAll(evaluateAll.isSelected());↵ | |
9 | } | 9 |
| |
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.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 17 |
Number of mapped statements | 3 |
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) | 5189.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | super.configure(element); |
| 1 | configureTestElement(controller); | ||||||||||||
2 | if (element instanceof IfController) |
| 2 | if (controller instanceof IfController) | ||||||||||||
3 | IfController ifController = (IfController)element; |
| 3 | IfController ifController = (IfController)controller; | ||||||||||||
| 4 | ifController.setCondition(theCondition.getText()); | ||||||||||||||
4 | theCondition.setText(ifController.getCondition()); | | ||||||||||||||
| 5 | ifController.setEvaluateAll(evaluateAll.isSelected()); | ||||||||||||||
5 | evaluateAll.setSelected(ifController.isEvaluateAll()); | |
Row | Violation |
---|---|
1 | Expression super.configure(element) is a void method call, and thus it cannot be parameterized |
2 | Expression configureTestElement(controller) is a void method call, and thus it cannot be parameterized |