File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/engine/StandardJMeterEngine.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/engine/StandardJMeterEngine.java | |||
Method name: void notifyTestListenersOfStart()
|
Method name: void notifyTestListenersOfEnd()
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | TestListener tl = (TestListener) iter.next();↵ | 1 | TestListener tl = (TestListener) iter.next();↵ | |
2 | if (tl instanceof TestBean) {↵ | 2 | if (tl instanceof TestBean) {↵ | |
3 | TestBeanHelper.prepare((TestElement) tl);↵ | 3 | TestBeanHelper.prepare((TestElement) tl);↵ | |
4 | }↵ | 4 | }↵ | |
5 | if (host == null) {↵ | 5 | if (host == null) {↵ | |
6 | tl.testStarted();↵ | 6 | tl.testEnded();↵ | |
7 | } else {↵ | 7 | } else {↵ | |
8 | tl.testStarted(host);↵ | 8 | tl.testEnded(host);↵ | |
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.3 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 22 |
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) | 8382.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | TestListener tl = (TestListener)iter.next(); | 4 | TestListener tl = (TestListener)iter.next(); | |||||||||||||||
4 | if (tl instanceof TestBean) | 5 | if (tl instanceof TestBean) | |||||||||||||||
5 | TestBeanHelper.prepare((TestElement)tl); | 6 | TestBeanHelper.prepare((TestElement)tl); | |||||||||||||||
6 | if (host == null) | 7 | if (host == null) | |||||||||||||||
7 | tl.testStarted(); |
| 8 | tl.testEnded(); | ||||||||||||||
else | else | |||||||||||||||||
8 | tl.testStarted(host); |
| 9 | tl.testEnded(host); |
Row | Violation |
---|---|
1 | Expression tl.testStarted() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression tl.testEnded() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression tl.testStarted() is a void method call, and thus it cannot be parameterized |
4 | Expression tl.testEnded() is a void method call, and thus it cannot be parameterized |
5 | Expression tl.testStarted(host) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression tl.testEnded(host) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression tl.testStarted(host) is a void method call, and thus it cannot be parameterized |
8 | Expression tl.testEnded(host) is a void method call, and thus it cannot be parameterized |