File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/sql/ResultSetColumnReader.java | File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/sql/ResultSetColumnReader.java | |||
Method name: Date getDate(int)
|
Method name: String getString(int)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | final Date results = _rs.getDate(columnIdx);↵ | 1 | final String results = _rs.getString(columnIdx);↵ | |
2 | _wasNull = results == null;↵ | 2 | _wasNull = results == null;↵ | |
3 | return results; | 3 |
| |
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 declared in the same class |
Number of node comparisons | 5 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | final String results = _rs.getString(columnIdx); | |||||||||||||
1 | final Date results = _rs.getDate(columnIdx); | | |||||||||||||
2 | _wasNull = results == null; |
| 2 | _wasNull = results == null; | |||||||||||
|
| 3 | return results; | ||||||||||||
3 | return results; |
| |
Row | Violation |
---|---|
1 | Type java.sql.Date of variable results does not match with type java.lang.String of variable results |
2 | Unmatched return results; |
3 | Unmatched return results; |