File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/DataSetViewerEditableTablePanel.java | File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/DataSetViewerEditableTablePanel.java | |||
Method name: int[] changeUnderlyingValueAt(int, int, Object, Object)
|
Method name: int[] changeUnderlyingValueAt(int, int, Object, Object)
|
|||
Number of AST nodes: 2 | Number of AST nodes: 2 | |||
1 | int option = JOptionPane.showConfirmDialog(null, message, s_stringMgr.getString("baseDataSetViewerDestination.warning"),↵ | 1 | int option = JOptionPane.showConfirmDialog(null, message, s_stringMgr.getString("baseDataSetViewerDestination.warning2"),↵ | |
2 | JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);↵ | 2 | JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);↵ | |
3 | if ( option != JOptionPane.YES_OPTION)↵ | 3 | if ( option != JOptionPane.YES_OPTION)↵ | |
4 | {↵ | 4 | {↵ | |
5 | return new int[0]; | 5 |
| |
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.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 5 |
Number of mapped statements | 3 |
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.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
12 | int option = JOptionPane.showConfirmDialog(null, message, s_stringMgr.getString("baseDataSetViewerDestination.warning"), JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE); |
| 18 | int option = JOptionPane.showConfirmDialog(null, message, s_stringMgr.getString("baseDataSetViewerDestination.warning2"), JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE); | ||||||||||
13 | if (option != JOptionPane.YES_OPTION) | 19 | if (option != JOptionPane.YES_OPTION) | |||||||||||
14 | return new int[0]; | 20 | return new int[0]; |
Row | Violation |
---|---|
1 | Not all possible execution flows end in a return statement |