File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeLong.java | File path: /sql12/plugins/derby/src/net/sourceforge/squirrel_sql/plugins/derby/types/DerbyClobDataTypeComponent.java | |||
Method name: void keyTyped(KeyEvent)
|
Method name: void keyTyped(KeyEvent)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if ((c==KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)) {↵ | 1 | if ((c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)) {↵ | |
2 | // delete when null => original value↵ | 2 | // delete when null => original value↵ | |
3 | DataTypeLong.this._textComponent.restoreText();↵ | |||
4 | e.consume();↵ | |||
5 | }↵ | |||
6 | else {↵ | |||
7 | ↵ | 3 | DerbyClobDataTypeComponent.this._textComponent.restoreText();↵ | |
4 | e.consume();↵ | |||
5 | } else {↵ | |||
8 | // non-delete when null => clear field and add text↵ | 6 | // non-delete when null => clear field and add text↵ | |
9 | DataTypeLong.this._textComponent.updateText("");↵ | 7 | DerbyClobDataTypeComponent.this._textComponent.updateText("");↵ | |
10 | // fall through to normal processing of this key stroke↵ | 8 | // fall through to normal processing of this key stroke↵ | |
11 | } | 9 | } | |
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.4 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 17 |
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) | 3.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
24 | if ((c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)) | 6 | if ((c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)) | ||||||||||||
25 | DataTypeLong.this._textComponent.restoreText(); |
| 7 | DerbyClobDataTypeComponent.this._textComponent.restoreText(); | |||||||||||
26 | e.consume(); | 8 | e.consume(); | ||||||||||||
else | else | ||||||||||||||
27 | DataTypeLong.this._textComponent.updateText(""); |
| 9 | DerbyClobDataTypeComponent.this._textComponent.updateText(""); |
Row | Violation |
---|---|
1 | Expression DataTypeLong cannot be unified with expression DerbyClobDataTypeComponent , because common superclass net.sourceforge.squirrel_sql.fw.datasetviewer.cellcomponent.BaseDataTypeComponent does not declare member(s) private net.sourceforge.squirrel_sql.fw.datasetviewer.cellcomponent.IRestorableTextComponent _textComponent |
2 | Expression DataTypeLong cannot be unified with expression DerbyClobDataTypeComponent , because common superclass net.sourceforge.squirrel_sql.fw.datasetviewer.cellcomponent.BaseDataTypeComponent does not declare member(s) private net.sourceforge.squirrel_sql.fw.datasetviewer.cellcomponent.IRestorableTextComponent _textComponent |