File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/engine/ExecuteUpdateResultCheckStyle.java | File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/engine/ValueInclusion.java | |||
Method name: ExecuteUpdateResultCheckStyle parse(String)
|
Method name: Object readResolve()
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | if ( name.equals( NONE.name ) ) {↵ | 1 | if ( name.equals( NONE.name ) ) {↵ | |
2 | return NONE;↵ | 2 | return NONE;↵ | |
3 | }↵ | 3 | }↵ | |
4 | else if ( name.equals( COUNT.name ) ) {↵ | 4 | else if ( name.equals( FULL.name ) ) {↵ | |
5 | return COUNT;↵ | 5 | return FULL;↵ | |
6 | }↵ | 6 | }↵ | |
7 | else if ( name.equals( PARAM.name ) ) {↵ | 7 | else if ( name.equals( PARTIAL.name ) ) {↵ | |
8 | return PARAM;↵ | 8 | return PARTIAL;↵ | |
9 | }↵ | 9 | }↵ | |
10 | else {↵ | 10 | else {↵ | |
11 | return null;↵ | 11 | throw new StreamCorruptedException( "unrecognized value inclusion [" + name + "]" );↵ | |
12 | } | 12 |
| |
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) | 1.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 36 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 4 |
Number of unmapped statements in the second code fragment | 4 |
Time elapsed for statement mapping (ms) | 1.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (name.equals(NONE.name)) |
| 1 | if (name.equals(NONE.name)) | ||||||||||||||
|
| 2 | return NONE; | |||||||||||||||
2 | return NONE; |
| | |||||||||||||||
3 | else if (name.equals(COUNT.name)) |
| 3 | else if (name.equals(FULL.name)) | ||||||||||||||
|
| 4 | return FULL; | |||||||||||||||
4 | return COUNT; |
| | |||||||||||||||
5 | else if (name.equals(PARAM.name)) |
| 5 | else if (name.equals(PARTIAL.name)) | ||||||||||||||
|
| 6 | return PARTIAL; | |||||||||||||||
6 | return PARAM; |
| | |||||||||||||||
else | | |||||||||||||||||
|
| 7 | throw new StreamCorruptedException("unrecognized value inclusion [" + name + "]"); | |||||||||||||||
7 | return null; |
| |
Row | Violation |
---|---|
1 | Type org.hibernate.engine.ExecuteUpdateResultCheckStyle of variable NONE does not match with type org.hibernate.engine.ValueInclusion of variable NONE |
2 | Unmatched return NONE; |
3 | Unmatched return NONE; |
4 | Type org.hibernate.engine.ExecuteUpdateResultCheckStyle of variable COUNT does not match with type org.hibernate.engine.ValueInclusion of variable FULL |
5 | Unmatched return FULL; |
6 | Unmatched return COUNT; |
7 | Type org.hibernate.engine.ExecuteUpdateResultCheckStyle of variable PARAM does not match with type org.hibernate.engine.ValueInclusion of variable PARTIAL |
8 | Unmatched return PARTIAL; |
9 | Unmatched return PARAM; |
10 | Unmatched throw new StreamCorruptedException("unrecognized value inclusion [" + name + "]"); |
11 | Unmatched return null; |