File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/action/Start.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/action/ReportStart.java | |||
Method name: void doAction(ActionEvent)
|
Method name: void doAction(ActionEvent)
|
|||
Number of AST nodes: 13 | Number of AST nodes: 13 | |||
1 | if (e.getActionCommand().equals(ActionNames.ACTION_START)) {↵ | 1 | if (e.getActionCommand().equals(ActionNames.ACTION_START)) {↵ | |
2 | popupShouldSave(e);↵ | 2 | popupShouldSave(e);↵ | |
3 | startEngine();↵ | 3 | startEngine();↵ | |
4 | } else if (e.getActionCommand().equals(ActionNames.ACTION_STOP)) {↵ | 4 | } else if (e.getActionCommand().equals(ActionNames.ACTION_STOP)) {↵ | |
5 | if (engine != null) {↵ | 5 | if (engine != null) {↵ | |
6 | GuiPackage.getInstance().getMainFrame().showStoppingMessage("");↵ | 6 | ReportGuiPackage.getInstance().getMainFrame().showStoppingMessage("");↵ | |
7 | engine.stopTest();↵ | 7 | engine.stopTest();↵ | |
8 | engine = null;↵ | 8 | engine = null;↵ | |
9 | }↵ | 9 | }↵ | |
10 | } else if (e.getActionCommand().equals(ActionNames.ACTION_SHUTDOWN)) {↵ | 10 | } else if (e.getActionCommand().equals(ActionNames.ACTION_SHUTDOWN)) {↵ | |
11 | if (engine != null) {↵ | 11 | if (engine != null) {↵ | |
12 | GuiPackage.getInstance().getMainFrame().showStoppingMessage("");↵ | 12 | ReportGuiPackage.getInstance().getMainFrame().showStoppingMessage("");↵ | |
13 | engine.askThreadsToStop();↵ | 13 | engine.askThreadsToStop();↵ | |
14 | engine = null;↵ | 14 | engine = null;↵ | |
15 | }↵ | 15 | }↵ | |
16 | } | 16 |
| |
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) | 1.5 |
Clones location | Clones are in different classes |
Number of node comparisons | 65 |
Number of mapped statements | 13 |
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) | 27.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (e.getActionCommand().equals(ActionNames.ACTION_START)) | 1 | if (e.getActionCommand().equals(ActionNames.ACTION_START)) | ||||||||||||||||
2 | popupShouldSave(e); | 2 | popupShouldSave(e); | ||||||||||||||||
3 | startEngine(); | 3 | startEngine(); | ||||||||||||||||
4 | else if (e.getActionCommand().equals(ActionNames.ACTION_STOP)) | 4 | else if (e.getActionCommand().equals(ActionNames.ACTION_STOP)) | ||||||||||||||||
5 | if (engine != null) | 5 | if (engine != null) | ||||||||||||||||
6 | GuiPackage.getInstance().getMainFrame().showStoppingMessage(""); |
| 6 | ReportGuiPackage.getInstance().getMainFrame().showStoppingMessage(""); | |||||||||||||||
7 | engine.stopTest(); | 7 | engine.stopTest(); | ||||||||||||||||
8 | engine = null; | 8 | engine = null; | ||||||||||||||||
9 | else if (e.getActionCommand().equals(ActionNames.ACTION_SHUTDOWN)) | 9 | else if (e.getActionCommand().equals(ActionNames.ACTION_SHUTDOWN)) | ||||||||||||||||
10 | if (engine != null) | 10 | if (engine != null) | ||||||||||||||||
11 | GuiPackage.getInstance().getMainFrame().showStoppingMessage(""); |
| 11 | ReportGuiPackage.getInstance().getMainFrame().showStoppingMessage(""); | |||||||||||||||
12 | engine.askThreadsToStop(); | 12 | engine.askThreadsToStop(); | ||||||||||||||||
13 | engine = null; | 13 | engine = null; |
Row | Violation |
---|---|
1 | Type org.apache.jmeter.gui.GuiPackage of variable GuiPackage.getInstance() does not match with type org.apache.jmeter.gui.ReportGuiPackage of variable ReportGuiPackage.getInstance() |
2 | Type org.apache.jmeter.gui.GuiPackage of variable GuiPackage does not match with type org.apache.jmeter.gui.ReportGuiPackage of variable ReportGuiPackage |
3 | Type org.apache.jmeter.gui.GuiPackage of variable GuiPackage.getInstance() does not match with type org.apache.jmeter.gui.ReportGuiPackage of variable ReportGuiPackage.getInstance() |
4 | Type org.apache.jmeter.gui.GuiPackage of variable GuiPackage does not match with type org.apache.jmeter.gui.ReportGuiPackage of variable ReportGuiPackage |