File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/dialect/Dialect.java | File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/dialect/Dialect.java | |||
Method name: String getHibernateTypeName(int, int, int, int)
|
Method name: String getTypeName(int, int, int, int)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | String result = hibernateTypeNames.get( code, length, precision, scale );↵ | 1 | String result = typeNames.get( code, length, precision, scale );↵ | |
2 | if ( result == null ) {↵ | 2 | if ( result == null ) {↵ | |
3 | throw new HibernateException(↵ | 3 | throw new HibernateException(↵ | |
4 | "No Hibernate type mapping for java.sql.Types code: " +↵ | 4 | "No type mapping for java.sql.Types code: " +↵ | |
5 | code +↵ | 5 | code +↵ | |
6 | ", length: " +↵ | 6 | ", length: " +↵ | |
7 | length↵ | 7 | length↵ | |
8 | );↵ | 8 | );↵ | |
9 | }↵ | 9 | }↵ | |
10 | return result; | 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.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 8 |
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.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | String result = hibernateTypeNames.get(code, length, precision, scale); |
| 1 | String result = typeNames.get(code, length, precision, scale); | ||||||||||
2 | if (result == null) | 2 | if (result == null) | |||||||||||
3 | throw new HibernateException("No Hibernate type mapping for java.sql.Types code: " + code + ", length: " + length); |
| 3 | throw new HibernateException("No type mapping for java.sql.Types code: " + code + ", length: " + length); | ||||||||||
4 | return result; | 4 | return result; |
Row | Violation |
---|