File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/proxy/ProxyControl.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/proxy/ProxyControl.java | |||
Method name: void notifyTestListenersOfStart()
|
Method name: void notifyTestListenersOfEnd()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | JMeterTreeNode subNode = (JMeterTreeNode) kids.nextElement();↵ | 1 | JMeterTreeNode subNode = (JMeterTreeNode) kids.nextElement();↵ | |
2 | if (subNode.isEnabled()) {↵ | 2 | if (subNode.isEnabled()) {↵ | |
3 | TestElement testElement = subNode.getTestElement();↵ | 3 | TestElement testElement = subNode.getTestElement();↵ | |
4 | if (testElement instanceof TestListener) {↵ | 4 | if (testElement instanceof TestListener) {↵ | |
5 | ((TestListener) testElement).testStarted();↵ | 5 | ((TestListener) testElement).testEnded();↵ | |
6 | }↵ | 6 | }↵ | |
7 | } | 7 |
| |
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.2 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 10 |
Number of mapped statements | 5 |
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) | 1.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5 | JMeterTreeNode subNode = (JMeterTreeNode)kids.nextElement(); | 5 | JMeterTreeNode subNode = (JMeterTreeNode)kids.nextElement(); | |||||||||||||||
6 | if (subNode.isEnabled()) | 6 | if (subNode.isEnabled()) | |||||||||||||||
7 | TestElement testElement = subNode.getTestElement(); | 7 | TestElement testElement = subNode.getTestElement(); | |||||||||||||||
8 | if (testElement instanceof TestListener) | 8 | if (testElement instanceof TestListener) | |||||||||||||||
9 | ((TestListener)testElement).testStarted(); |
| 9 | ((TestListener)testElement).testEnded(); |
Row | Violation |
---|---|
1 | Expression ((TestListener)testElement).testStarted() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression ((TestListener)testElement).testEnded() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression ((TestListener)testElement).testStarted() is a void method call, and thus it cannot be parameterized |
4 | Expression ((TestListener)testElement).testEnded() is a void method call, and thus it cannot be parameterized |