File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/action/ExitCommand.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/action/ReportExitCommand.java | |||
Method name: void doAction(ActionEvent)
|
Method name: void doAction(ActionEvent)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (chosenOption == JOptionPane.YES_OPTION) {↵ | 1 | if (chosenOption == JOptionPane.YES_OPTION) {↵ | |
2 | ActionRouter.getInstance().doActionNow(↵ | 2 | ReportActionRouter.getInstance().doActionNow(↵ | |
3 | new ActionEvent(e.getSource(), e.getID(), ActionNames↵ | 3 | new ActionEvent(e.getSource(), e.getID(),↵ | |
4 | .SAVE_ALL_AS));↵ | 4 | ReportSave.SAVE_ALL_AS));↵ | |
5 | if (!GuiPackage.getInstance().isDirty()) {↵ | 5 | if (!ReportGuiPackage.getInstance().isDirty()) {↵ | |
6 | System.exit(0);↵ | 6 | System.exit(0);↵ | |
7 | }↵ | 7 | }↵ | |
8 | } | 8 |
| |
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.5 |
Clones location | Clones are in different classes |
Number of node comparisons | 9 |
Number of mapped statements | 4 |
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) | 3.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6 | else if (chosenOption == JOptionPane.YES_OPTION) | 6 | else if (chosenOption == JOptionPane.YES_OPTION) | ||||||||||||||||||||
7 | ActionRouter.getInstance().doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.SAVE_ALL_AS)); |
| 7 | ReportActionRouter.getInstance().doActionNow(new ActionEvent(e.getSource(), e.getID(), ReportSave.SAVE_ALL_AS)); | |||||||||||||||||||
8 | if (!GuiPackage.getInstance().isDirty()) |
| 8 | if (!ReportGuiPackage.getInstance().isDirty()) | |||||||||||||||||||
9 | System.exit(0); | 9 | System.exit(0); |
Row | Violation |
---|---|
1 | Type org.apache.jmeter.gui.action.ActionNames of variable ActionNames does not match with type org.apache.jmeter.report.gui.action.ReportSave of variable ReportSave |
2 | Type org.apache.jmeter.gui.action.ActionRouter of variable ActionRouter.getInstance() does not match with type org.apache.jmeter.report.gui.action.ReportActionRouter of variable ReportActionRouter.getInstance() |
3 | Type org.apache.jmeter.gui.action.ActionRouter of variable ActionRouter does not match with type org.apache.jmeter.report.gui.action.ReportActionRouter of variable ReportActionRouter |
4 | Type org.apache.jmeter.gui.GuiPackage of variable GuiPackage.getInstance() does not match with type org.apache.jmeter.gui.ReportGuiPackage of variable ReportGuiPackage.getInstance() |
5 | Type org.apache.jmeter.gui.GuiPackage of variable GuiPackage does not match with type org.apache.jmeter.gui.ReportGuiPackage of variable ReportGuiPackage |