File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/tuple/entity/EntityMetamodel.java | File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/mapping/UniqueKey.java | |||
Method name: boolean hasPartialUpdateComponentGeneration(Component)
|
Method name: boolean isGenerated(Dialect)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | if ( prop.getValue() instanceof Component ) { ↵ | 1 | while ( iter.hasNext() ) {↵ | |
2 | if ( hasPartialUpdateComponentGeneration( ( Component ) prop.getValue() ) ) {↵ | 2 | if ( ↵ | |
3 | ↵ | 3 | ( (Column) iter.next() ).isNullable() ) {↵ | |
4 | return true; ↵ | 4 | return false;↵ | |
5 | }↵ | 5 | ↵ | |
6 | ↵ | 6 | }↵ | |
7 | } | 7 |
| |
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 | 2 |
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.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 | if (hasPartialUpdateComponentGeneration((Component)prop.getValue())) |
| 5 | if (((Column)iter.next()).isNullable()) | ||||||||||||||||
8 | return true; |
| 6 | return false; |
Row | Violation |
---|---|
1 | Conditional return true; |
2 | Conditional return false; |