File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java | File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java | |||
Method name: int[] findModified(Object[], Object[], Object, SessionImplementor)
|
Method name: int[] findDirty(Object[], Object[], Object, SessionImplementor)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | int[] props = TypeFactory.findModified(↵ | 1 | int[] props = TypeFactory.findDirty(↵ | |
2 | entityMetamodel.getProperties(),↵ | 2 | entityMetamodel.getProperties(),↵ | |
3 | current,↵ | 3 | currentState,↵ | |
4 | old,↵ | 4 | previousState,↵ | |
5 | propertyColumnUpdateable,↵ | 5 | propertyColumnUpdateable,↵ | |
6 | hasUninitializedLazyProperties( entity, session.getEntityMode() ),↵ | 6 | hasUninitializedLazyProperties( entity, session.getEntityMode() ),↵ | |
7 | session↵ | 7 | session↵ | |
8 | );↵ | 8 | );↵ | |
9 | if ( props == null ) {↵ | 9 | if ( props == null ) {↵ | |
10 | return null;↵ | 10 | return null;↵ | |
11 | }↵ | 11 | }↵ | |
12 | else {↵ | 12 | else {↵ | |
13 | logDirtyProperties( props );↵ | 13 | logDirtyProperties( props );↵ | |
14 | return props;↵ | 14 | return props;↵ | |
15 | } | 15 |
| |
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.2 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 17 |
Number of mapped statements | 5 |
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) | 28.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | int[] props = TypeFactory.findModified(entityMetamodel.getProperties(), current, old, propertyColumnUpdateable, hasUninitializedLazyProperties(entity, session.getEntityMode()), session); |
| 1 | int[] props = TypeFactory.findDirty(entityMetamodel.getProperties(), currentState, previousState, propertyColumnUpdateable, hasUninitializedLazyProperties(entity, session.getEntityMode()), session); | ||||||||||||||||
2 | if (props == null) | 2 | if (props == null) | |||||||||||||||||
3 | return null; | 3 | return null; | |||||||||||||||||
else | else | |||||||||||||||||||
4 | logDirtyProperties(props); | 4 | logDirtyProperties(props); | |||||||||||||||||
5 | return props; | 5 | return props; |
Row | Violation |
---|