File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeBigDecimal.java | File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeShort.java | |||
Method name: JTextArea getJTextArea(Object)
|
Method name: JTextArea getJTextArea(Object)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | _textComponent = new RestorableJTextArea();↵ | 1 | _textComponent = new RestorableJTextArea();↵ | |
2 | ↵ | |||
2 | // value is a simple string representation of the data,↵ | 3 | // value is a simple string representation of the data,↵ | |
3 | // the same one used in Text and in-cell operations.↵ | 4 | // the same one used in Text and in-cell operations.↵ | |
4 | ((RestorableJTextArea)_textComponent).setText(renderObject(value));↵ | 5 | ((RestorableJTextArea)_textComponent).setText(renderObject(value));↵ | |
6 | ↵ | |||
5 | // special handling of operations while editing this data type↵ | 7 | // special handling of operations while editing this data type↵ | |
6 | ((RestorableJTextArea)_textComponent).addKeyListener(new KeyTextHandler());↵ | 8 | ((RestorableJTextArea)_textComponent).addKeyListener(new KeyTextHandler());↵ | |
9 | ↵ | |||
7 | return (RestorableJTextArea)_textComponent; | 10 |
| |
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 different classes having the same super class |
Number of node comparisons | 10 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | _textComponent = new RestorableJTextArea(); | 1 | _textComponent = new RestorableJTextArea(); | |||||||||||
2 | ((RestorableJTextArea)_textComponent).setText(renderObject(value)); | 2 | ((RestorableJTextArea)_textComponent).setText(renderObject(value)); | |||||||||||
3 | ((RestorableJTextArea)_textComponent).addKeyListener(new KeyTextHandler()); |
| 3 | ((RestorableJTextArea)_textComponent).addKeyListener(new KeyTextHandler()); | ||||||||||
4 | return (RestorableJTextArea)_textComponent; | 4 | return (RestorableJTextArea)_textComponent; |
Row | Violation |
---|