File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/action/AbstractAction.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/action/Close.java | |||
Method name: void popupShouldSave(ActionEvent)
|
Method name: boolean performAction(ActionEvent)
|
|||
Number of AST nodes: 2 | Number of AST nodes: 2 | |||
1 | if (JOptionPane.showConfirmDialog(GuiPackage.getInstance().getMainFrame(), ↵ | 1 | if ((response=JOptionPane.showConfirmDialog(GuiPackage.getInstance().getMainFrame(), ↵ | |
2 | JMeterUtils.getResString("should_save"), //$NON-NLS-1$↵ | 2 | JMeterUtils.getResString("cancel_new_to_save"), // $NON-NLS-1$↵ | |
3 | JMeterUtils.getResString("warning"), //$NON-NLS-1$↵ | 3 | JMeterUtils.getResString("save?"), // $NON-NLS-1$↵ | |
4 | JOptionPane.YES_NO_OPTION,↵ | 4 | JOptionPane.YES_NO_CANCEL_OPTION,↵ | |
5 | JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) {↵ | 5 | JOptionPane.QUESTION_MESSAGE)) == JOptionPane.YES_OPTION) {↵ | |
6 | ActionRouter.getInstance().doActionNow(new ActionEvent(e.getSource(), e.getID(),ActionNames.SAVE));↵ | 6 | ActionRouter.getInstance().doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.SAVE));↵ | |
7 | } | 7 |
| |
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.3 |
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.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | if (JOptionPane.showConfirmDialog(GuiPackage.getInstance().getMainFrame(), JMeterUtils.getResString("should_save"), JMeterUtils.getResString("warning"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) |
| 5 | if ((response = JOptionPane.showConfirmDialog(GuiPackage.getInstance().getMainFrame(), JMeterUtils.getResString("cancel_new_to_save"), JMeterUtils.getResString("save?"), JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE)) == JOptionPane.YES_OPTION) | ||||||||||
4 | ActionRouter.getInstance().doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.SAVE)); | 6 | ActionRouter.getInstance().doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.SAVE)); |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables , while Clone fragment #2 returns variables response |