File path: /sql12/plugins/smarttools/src/net/sourceforge/squirrel_sql/plugins/smarttools/gui/SmarttoolFindBadNullValuesFrame.java | File path: /sql12/plugins/smarttools/src/net/sourceforge/squirrel_sql/plugins/smarttools/gui/SmarttoolMissingIndicesFrame.java | |||
Method name: void stopWork()
|
Method name: void stopWork()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | threadSuspended = true;↵ | 1 | threadSuspended = true;↵ | |
2 | if (JOptionPane.showConfirmDialog(↵ | 2 | if (JOptionPane.showConfirmDialog(↵ | |
3 | session.getApplication().getMainFrame(), i18n.QUESTION_CANCEL_WORK,↵ | 3 | session.getApplication().getMainFrame(), i18n.QUESTION_CANCEL_WORK,↵ | |
4 | i18n.QUESTION_CANCEL_WORK_TITLE,↵ | 4 | i18n.QUESTION_CANCEL_WORK_TITLE,↵ | |
5 | JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) ↵ | 5 | JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION)↵ | |
6 | {↵ | 6 | {↵ | |
7 | threadWork = null;↵ | 7 | threadWork = null;↵ | |
8 | controlComponents(STOP_WORKING);↵ | 8 | controlComponents(STOP_WORKING);↵ | |
9 | }↵ | 9 | }↵ | |
10 | threadSuspended = false; | 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 having the same super class |
Number of node comparisons | 13 |
Number of mapped statements | 5 |
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) | 2.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | threadSuspended = true; | 1 | threadSuspended = true; | ||||||||||||||||
2 | if (JOptionPane.showConfirmDialog(session.getApplication().getMainFrame(), i18n.QUESTION_CANCEL_WORK, i18n.QUESTION_CANCEL_WORK_TITLE, JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) |
| 2 | if (JOptionPane.showConfirmDialog(session.getApplication().getMainFrame(), i18n.QUESTION_CANCEL_WORK, i18n.QUESTION_CANCEL_WORK_TITLE, JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) | |||||||||||||||
3 | threadWork = null; | 3 | threadWork = null; | ||||||||||||||||
4 | controlComponents(STOP_WORKING); | 4 | controlComponents(STOP_WORKING); | ||||||||||||||||
5 | threadSuspended = false; | 5 | threadSuspended = false; |
Row | Violation |
---|---|
1 | Type net.sourceforge.squirrel_sql.plugins.smarttools.gui.SmarttoolFindBadNullValuesFrame.i18n does not match with type net.sourceforge.squirrel_sql.plugins.smarttools.gui.SmarttoolMissingIndicesFrame.i18n |
2 | Type net.sourceforge.squirrel_sql.plugins.smarttools.gui.SmarttoolFindBadNullValuesFrame.i18n does not match with type net.sourceforge.squirrel_sql.plugins.smarttools.gui.SmarttoolMissingIndicesFrame.i18n |