File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/ColumnDetailDialog.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/ColumnDetailDialog.java | |||
Method name: void itemStateChanged(ItemEvent)
|
Method name: void itemStateChanged(ItemEvent)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | commentTextArea.setEditable(false);↵ | 1 | nullableCheckBox.setEnabled(false);↵ | |
2 | //i18n[ColumnDetailsDialog.columnCommentLabel={0} does not ↵ | 2 | //i18n[ColumnDetailsDialog.columnNullLabel={0} does not ↵ | |
3 | //support column comments]↵ | 3 | //support ↵ | |
4 | altering column nullability]↵ | |||
4 | String noColumnSupportMsg =↵ | 5 | String noColumnSupportMsg =↵ | |
6 | ↵ | |||
5 | s_stringMgr.getString(↵ | 7 | s_stringMgr.getString(↵ | |
6 | "ColumnDetailsDialog.columnCommentToolTip",↵ | 8 | "ColumnDetailsDialog.columnNullToolTip",↵ | |
7 | dbName);↵ | 9 | dbName);↵ | |
8 | commentTextArea.setToolTipText(noColumnSupportMsg); | 10 | nullableCheckBox.setToolTipText(noColumnSupportMsg); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 9 |
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 | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | commentTextArea.setEditable(false); |
| 11 | nullableCheckBox.setEnabled(false); | ||||||||||||||||||
5 | String noColumnSupportMsg = s_stringMgr.getString("ColumnDetailsDialog.columnCommentToolTip", dbName); |
| 12 | String noColumnSupportMsg = s_stringMgr.getString("ColumnDetailsDialog.columnNullToolTip", dbName); | ||||||||||||||||||
6 | commentTextArea.setToolTipText(noColumnSupportMsg); |
| 13 | nullableCheckBox.setToolTipText(noColumnSupportMsg); |
Row | Violation |
---|---|
1 | Expression commentTextArea.setEditable(false) is a void method call, and thus it cannot be parameterized |
2 | Expression nullableCheckBox.setEnabled(false) is a void method call, and thus it cannot be parameterized |