File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
hibernate-core/src/main/java/org/hibernate/type/internal Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -97,11 +97,10 @@ public static JdbcMapping resolveBindType(
9797 final var javaType = value .getClass ();
9898 final var temporalJavaType = (TemporalJavaType <?>) baseType .getJdbcJavaType ();
9999 final var bindableType = (BindableType <?>) baseType ;
100- // Cast individual arms of the switch to avoid a JDK 17 javac bug
101- return switch ( temporalJavaType .getPrecision () ) {
102- case TIMESTAMP -> (JdbcMapping ) resolveTimestampTemporalTypeVariant ( javaType , bindableType , typeConfiguration );
103- case DATE -> (JdbcMapping ) resolveDateTemporalTypeVariant ( javaType , bindableType , typeConfiguration );
104- case TIME -> (JdbcMapping ) resolveTimeTemporalTypeVariant ( javaType , bindableType , typeConfiguration );
100+ return (JdbcMapping ) switch ( temporalJavaType .getPrecision () ) {
101+ case TIMESTAMP -> resolveTimestampTemporalTypeVariant ( javaType , bindableType , typeConfiguration );
102+ case DATE -> resolveDateTemporalTypeVariant ( javaType , bindableType , typeConfiguration );
103+ case TIME -> resolveTimeTemporalTypeVariant ( javaType , bindableType , typeConfiguration );
105104 };
106105 }
107106 }
You can’t perform that action at this time.
0 commit comments