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/gui/action/AbstractAction.java | |||
Method name: void popupShouldSave(ActionEvent)
|
Method name: void popupShouldSave(ActionEvent)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | log.debug("popupShouldSave");↵ | 1 | log.debug("popupShouldSave");↵ | |
2 | if (ReportGuiPackage.getInstance().getReportPlanFile() == null) {↵ | 2 | if (GuiPackage.getInstance().getTestPlanFile() == null) {↵ | |
3 | if (JOptionPane.showConfirmDialog(ReportGuiPackage.getInstance().getMainFrame(), ↵ | 3 | if (JOptionPane.showConfirmDialog(GuiPackage.getInstance().getMainFrame(), ↵ | |
4 | JMeterUtils↵ | 4 | JMeterUtils↵ | |
5 | .getResString("should_save"), ↵ | 5 | .getResString("should_save"), //$NON-NLS-1$↵ | |
6 | JMeterUtils.getResString("warning"), ↵ | 6 | JMeterUtils.getResString("warning"), //$NON-NLS-1$↵ | |
7 | JOptionPane.YES_NO_OPTION,↵ | 7 | JOptionPane.YES_NO_OPTION,↵ | |
8 | JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) {↵ | 8 | JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) {↵ | |
9 | ReportActionRouter.getInstance().doActionNow(new ActionEvent(e.getSource(), e.getID(), ReportSave.SAVE));↵ | 9 | ActionRouter.getInstance().doActionNow(new ActionEvent(e.getSource(), e.getID(),ActionNames.SAVE));↵ | |
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.6 |
Clones location | Clones are in different classes |
Number of node comparisons | 6 |
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) | 1.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | log.debug("popupShouldSave"); | 1 | log.debug("popupShouldSave"); | ||||||||||||||||||||
2 | if (ReportGuiPackage.getInstance().getReportPlanFile() == null) |
| 2 | if (GuiPackage.getInstance().getTestPlanFile() == null) | |||||||||||||||||||
3 | if (JOptionPane.showConfirmDialog(ReportGuiPackage.getInstance().getMainFrame(), JMeterUtils.getResString("should_save"), JMeterUtils.getResString("warning"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) |
| 3 | if (JOptionPane.showConfirmDialog(GuiPackage.getInstance().getMainFrame(), JMeterUtils.getResString("should_save"), JMeterUtils.getResString("warning"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) | |||||||||||||||||||
4 | ReportActionRouter.getInstance().doActionNow(new ActionEvent(e.getSource(), e.getID(), ReportSave.SAVE)); |
| 4 | ActionRouter.getInstance().doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.SAVE)); |
Row | Violation |
---|---|
1 | Type org.apache.jmeter.gui.ReportGuiPackage of variable ReportGuiPackage.getInstance() does not match with type org.apache.jmeter.gui.GuiPackage of variable GuiPackage.getInstance() |
2 | Type org.apache.jmeter.gui.ReportGuiPackage of variable ReportGuiPackage does not match with type org.apache.jmeter.gui.GuiPackage of variable GuiPackage |
3 | Type org.apache.jmeter.gui.ReportGuiPackage of variable ReportGuiPackage.getInstance() does not match with type org.apache.jmeter.gui.GuiPackage of variable GuiPackage.getInstance() |
4 | Type org.apache.jmeter.gui.ReportGuiPackage of variable ReportGuiPackage does not match with type org.apache.jmeter.gui.GuiPackage of variable GuiPackage |
5 | 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 |
6 | Type org.apache.jmeter.report.gui.action.ReportActionRouter of variable ReportActionRouter.getInstance() does not match with type org.apache.jmeter.gui.action.ActionRouter of variable ActionRouter.getInstance() |
7 | Type org.apache.jmeter.report.gui.action.ReportActionRouter of variable ReportActionRouter does not match with type org.apache.jmeter.gui.action.ActionRouter of variable ActionRouter |