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: 6 | Number of AST nodes: 6 | |||
1 | while (kids.hasMoreElements()) {↵ | 1 | while (kids.hasMoreElements()) {↵ | |
2 | JMeterTreeNode subNode = (JMeterTreeNode) kids.nextElement();↵ | 2 | JMeterTreeNode subNode = (JMeterTreeNode) kids.nextElement();↵ | |
3 | if (subNode.isEnabled()) {↵ | 3 | if (subNode.isEnabled()) {↵ | |
4 | TestElement testElement = subNode.getTestElement();↵ | 4 | TestElement testElement = subNode.getTestElement();↵ | |
5 | if (testElement instanceof TestListener) {↵ | 5 | if (testElement instanceof TestListener) {↵ | |
6 | ((TestListener) testElement).testStarted();↵ | 6 | ((TestListener) testElement).testEnded();↵ | |
7 | }↵ | 7 | }↵ | |
8 | }↵ | 8 | }↵ | |
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.2 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 12 |
Number of mapped statements | 6 |
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.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | while (kids.hasMoreElements()) | 4 | while (kids.hasMoreElements()) | |||||||||||||||
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 |