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: 7 | Number of AST nodes: 7 | |||
1 | while (iter.hasNext()) {↵ | 1 | while (iter.hasNext()) {↵ | |
2 | TestListener tl = (TestListener) iter.next();↵ | 2 | TestListener tl = (TestListener) iter.next();↵ | |
3 | if (tl instanceof TestBean) {↵ | 3 | if (tl instanceof TestBean) {↵ | |
4 | TestBeanHelper.prepare((TestElement) tl);↵ | 4 | TestBeanHelper.prepare((TestElement) tl);↵ | |
5 | }↵ | 5 | }↵ | |
6 | if (host == null) {↵ | 6 | if (host == null) {↵ | |
7 | tl.testStarted();↵ | 7 | tl.testEnded();↵ | |
8 | } else {↵ | 8 | } else {↵ | |
9 | tl.testStarted(host);↵ | 9 | tl.testEnded(host);↵ | |
10 | }↵ | 10 | }↵ | |
11 | } | 11 |
| |
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 | 24 |
Number of mapped statements | 7 |
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) | 7846.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | while (iter.hasNext()) | 3 | while (iter.hasNext()) | |||||||||||||||
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 |