Skip to content

Commit 35be4cb

Browse files
committed
HHH-17404 fix code scna warning about switch default case
1 parent dfa6fdd commit 35be4cb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hibernate-core/src/main/java/org/hibernate/type/format/StringJsonDocumentReader.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,11 @@ public JsonDocumentItemType next() {
222222
"] in current processing state " +
223223
this.processingStates.getCurrent() );
224224
}
225+
default: {
226+
throw new IllegalStateException( "unexpected marker ["+
227+
marker +
228+
"] at position " + this.position );
229+
}
225230
}
226231
}
227232
throw new IllegalStateException( "unexpected end of JSON ["+

0 commit comments

Comments
 (0)