File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/action/ReportStart.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/engine/StandardJMeterEngine.java | |||
Method name: void doAction(ActionEvent)
|
Method name: void stopEngine()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 2 | |||
1 | if (e.getActionCommand().equals(ActionNames.ACTION_SHUTDOWN)) {↵ | 1 | if (e↵ | |
2 | if (engine != null) {↵ | |||
3 | ReportGuiPackage.getInstance().getMainFrame().showStoppingMessage("");↵ | 2 | ngine != null) { // May be null if called from Unit test↵ | |
4 | engine.askThreadsToStop();↵ | 3 | engine.↵ | |
5 | engine = null;↵ | |||
6 | }↵ | 4 | stopTest(false);↵ | |
7 | } | 5 |
| |
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 in different classes |
Number of node comparisons | 8 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 1.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10 | if (engine != null) | 1 | if (engine != null) | ||||||||||||||||||||||
11 | ReportGuiPackage.getInstance().getMainFrame().showStoppingMessage(""); | | |||||||||||||||||||||||
12 | engine.askThreadsToStop(); |
| 2 | engine.stopTest(false); | |||||||||||||||||||||
13 | engine = null; | |
Row | Violation |
---|---|
1 | Expression engine.askThreadsToStop() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression engine.stopTest(false) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression engine.askThreadsToStop() is a void method call, and thus it cannot be parameterized |
4 | Expression engine.stopTest(false) is a void method call, and thus it cannot be parameterized |
5 | Expression engine.askThreadsToStop() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression engine.stopTest(false) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression engine.askThreadsToStop() is a void method call, and thus it cannot be parameterized |
8 | Expression engine.stopTest(false) is a void method call, and thus it cannot be parameterized |