|
67 | 67 | import org.hibernate.dialect.function.LocatePositionEmulation;
|
68 | 68 | import org.hibernate.dialect.function.LpadRpadPadEmulation;
|
69 | 69 | import org.hibernate.dialect.function.SqlFunction;
|
70 |
| -import org.hibernate.dialect.function.TimestampaddFunction; |
71 |
| -import org.hibernate.dialect.function.TimestampdiffFunction; |
72 | 70 | import org.hibernate.dialect.function.TrimFunction;
|
73 | 71 | import org.hibernate.dialect.identity.IdentityColumnSupport;
|
74 | 72 | import org.hibernate.dialect.identity.IdentityColumnSupportImpl;
|
|
284 | 282 | * passed to the constructor, and by the {@link #getVersion()} property.
|
285 | 283 | * <p>
|
286 | 284 | * Programs using Hibernate should migrate away from the use of versioned
|
287 |
| - * dialect classes like, for example, {@link MySQL8Dialect}. These |
| 285 | + * dialect classes like, for example, {@code MySQL8Dialect}. These |
288 | 286 | * classes are now deprecated and will be removed in a future release.
|
289 | 287 | * <p>
|
290 | 288 | * A custom {@code Dialect} may be specified using the configuration
|
@@ -850,12 +848,11 @@ public String getCheckCondition(String columnName, long min, long max) {
|
850 | 848 | */
|
851 | 849 | @Deprecated(forRemoval = true)
|
852 | 850 | public String getCheckCondition(String columnName, long[] values) {
|
853 |
| - Long objValues [] = new Long[ values.length ]; |
854 |
| - int i = 0; |
855 |
| - for( long temp : values){ |
856 |
| - objValues[ i++ ] = temp; |
| 851 | + Long[] boxedValues = new Long[values.length]; |
| 852 | + for ( int i = 0; i<values.length; i++ ) { |
| 853 | + boxedValues[i] = values[i]; |
857 | 854 | }
|
858 |
| - return getCheckCondition(columnName, objValues); |
| 855 | + return getCheckCondition( columnName, boxedValues ); |
859 | 856 | }
|
860 | 857 |
|
861 | 858 | /**
|
|
0 commit comments