File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/jdbc/AbstractBatcher.java | File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/cfg/HbmBinder.java | |||
Method name: void setStatementFetchSize(PreparedStatement)
|
Method name: void bindComponent(Element, Component, String, String, String, boolean, boolean, Mappings, java.util.Map, boolean)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | Integer statementFetchSize = factory.getSettings().getJdbcFetchSize();↵ | 1 | Class reflectedClass = reflectedPropertyClass( ownerClassName, parentProperty );↵ | |
2 | if ( statementFetchSize!=null ) {↵ | 2 | if ( reflectedClass != null ) {↵ | |
3 | statement.setFetchSize( statementFetchSize.intValue() );↵ | 3 | component.setComponentClassName( reflectedClass.getName() );↵ | |
4 | } | 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.1 |
Clones location | Clones are in different classes |
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.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Integer statementFetchSize = factory.getSettings().getJdbcFetchSize(); | | ||||||||||||||||
| 15 | Class reflectedClass = reflectedPropertyClass(ownerClassName, parentProperty); | ||||||||||||||||
2 | if (statementFetchSize != null) |
| 16 | if (reflectedClass != null) | ||||||||||||||
3 | statement.setFetchSize(statementFetchSize.intValue()); | | ||||||||||||||||
| 17 | component.setComponentClassName(reflectedClass.getName()); |
Row | Violation |
---|---|
1 | Type java.lang.Integer of variable statementFetchSize does not match with type java.lang.Class of variable reflectedClass |