File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/type/TypeFactory.java | File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/type/TypeFactory.java | |||
Method name: int[] findDirty(StandardProperty[], Object[], Object[], boolean[][], boolean, SessionImplementor)
|
Method name: int[] findModified(StandardProperty[], Object[], Object[], boolean[][], boolean, SessionImplementor)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | final boolean dirty = currentState[i] != LazyPropertyInitializer.UNFETCHED_PROPERTY↵ | 1 | final boolean modified = currentState[i]!=LazyPropertyInitializer.UNFETCHED_PROPERTY↵ | |
2 | && properties[i].isDirtyCheckable( anyUninitializedProperties )↵ | 2 | && properties[i].isDirtyCheckable(anyUninitializedProperties)↵ | |
3 | && properties[i].getType().isDirty( previousState[i], currentState[i], includeColumns[i], session );↵ | 3 | && properties[i].getType().isModified( previousState[i], currentState[i], includeColumns[i], session );↵ | |
4 | if ( dirty ) {↵ | 4 | if ( modified ) {↵ | |
5 | if ( results == null ) {↵ | 5 | if ( results == null ) {↵ | |
6 | results = new int[span];↵ | 6 | results = new int[span];↵ | |
7 | }↵ | 7 | }↵ | |
8 | results[count++] = i;↵ | 8 | results[count++] = i;↵ | |
9 | } | 9 |
| |
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 | 10 |
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) | 4.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5 | final boolean dirty = currentState[i] != LazyPropertyInitializer.UNFETCHED_PROPERTY && properties[i].isDirtyCheckable(anyUninitializedProperties) && properties[i].getType().isDirty(previousState[i], currentState[i], includeColumns[i], session); |
| 5 | final boolean modified = currentState[i] != LazyPropertyInitializer.UNFETCHED_PROPERTY && properties[i].isDirtyCheckable(anyUninitializedProperties) && properties[i].getType().isModified(previousState[i], currentState[i], includeColumns[i], session); | |||||||||||||
6 | if (dirty) |
| 6 | if (modified) | |||||||||||||
7 | if (results == null) | 7 | if (results == null) | ||||||||||||||
8 | results = new int[span]; | 8 | results = new int[span]; | ||||||||||||||
9 | results[count++] = i; | 9 | results[count++] = i; |
Row | Violation |
---|