File path: /sql12/plugins/mssql/src/net/sourceforge/squirrel_sql/plugins/mssql/util/MssqlIntrospector.java | File path: /sql12/plugins/mssql/src/net/sourceforge/squirrel_sql/plugins/mssql/util/MssqlIntrospector.java | |||
Method name: String formatDataType(String, short, int, int)
|
Method name: String formatDataType(String, short, int, int)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | buf.append(dataType);↵ | 1 | buf.append(dataType);↵ | |
2 | buf.append("(");↵ | 2 | buf.append("(");↵ | |
3 | buf.append(dataPrec);↵ | 3 | buf.append(dataLength);↵ | |
4 | buf.append(")"); | 4 |
| |
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 | 16 |
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 | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8 | buf.append(dataType); | 3 | buf.append(dataType); | |||||||||||||||
9 | buf.append("("); | 4 | buf.append("("); | |||||||||||||||
10 | buf.append(dataPrec); |
| 5 | buf.append(dataLength); | ||||||||||||||
11 | buf.append(")"); | 6 | buf.append(")"); |
Row | Violation |
---|---|
1 | Type int of variable dataPrec does not match with type short of variable dataLength |