File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/action/AbstractAction.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/action/ReportClose.java | |||
Method name: void popupShouldSave(ActionEvent)
|
Method name: void doAction(ActionEvent)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 2 | |||
1 | if (ReportGuiPackage.getInstance().getReportPlanFile() == null) {↵ | |||
2 | if (JOptionPane.showConfirmDialog(ReportGuiPackage.getInstance()↵ | 1 | if (JOptionPane.showConfirmDialog(ReportGuiPackage.getInstance()↵ | |
3 | .getMainFrame(), JMeterUtils↵ | 2 | .getMainFrame(), JMeterUtils↵ | |
4 | .getResString("should_save"), JMeterUtils↵ | 3 | .getResString("cancel_new_to_save"), JMeterUtils↵ | |
5 | .getResString("warning"), JOptionPane.YES_NO_OPTION,↵ | 4 | .getResString("Save?"), JOptionPane.YES_NO_OPTION,↵ | |
6 | JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) {↵ | 5 | JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) {↵ | |
7 | ReportActionRouter.getInstance().doActionNow(↵ | 6 | ReportActionRouter.getInstance().doActionNow(↵ | |
8 | new ActionEvent(e.getSource(), e.getID(), ReportSave.SAVE));↵ | 7 | new ActionEvent(e.getSource(), e.getID(), ActionNames.SAVE));↵ | |
9 | }↵ | 8 |
| |
10 | } | |||
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 | 5 |
Number of mapped statements | 2 |
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) | 0.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | if (JOptionPane.showConfirmDialog(ReportGuiPackage.getInstance().getMainFrame(), JMeterUtils.getResString("should_save"), JMeterUtils.getResString("warning"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) |
| 4 | if (JOptionPane.showConfirmDialog(ReportGuiPackage.getInstance().getMainFrame(), JMeterUtils.getResString("cancel_new_to_save"), JMeterUtils.getResString("Save?"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) | |||||||||||||
4 | ReportActionRouter.getInstance().doActionNow(new ActionEvent(e.getSource(), e.getID(), ReportSave.SAVE)); |
| 5 | ReportActionRouter.getInstance().doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.SAVE)); |
Row | Violation |
---|---|
1 | Type org.apache.jmeter.report.gui.action.ReportSave of variable ReportSave does not match with type org.apache.jmeter.gui.action.ActionNames of variable ActionNames |