minor changes

This commit is contained in:
Gavin 2022-12-29 16:54:17 +01:00 committed by Gavin King
parent c3a35821bd
commit 0bcf19d85b

View File

@ -174,16 +174,14 @@ public boolean canBeBatched() {
public static Expectation appropriateExpectation(ExecuteUpdateResultCheckStyle style) {
if ( style == ExecuteUpdateResultCheckStyle.NONE ) {
switch ( style ) {
case NONE:
return NONE;
}
else if ( style == ExecuteUpdateResultCheckStyle.COUNT ) {
case COUNT:
return BASIC;
}
else if ( style == ExecuteUpdateResultCheckStyle.PARAM ) {
case PARAM:
return PARAM;
}
else {
default:
throw new HibernateException( "unknown check style : " + style );
}
}