Skip to content

Commit 6f58c5e

Browse files
committed
minor cleanups in Dialect
Signed-off-by: Gavin King <[email protected]>
1 parent 505e64b commit 6f58c5e

File tree

1 file changed

+5
-8
lines changed
  • hibernate-core/src/main/java/org/hibernate/dialect

1 file changed

+5
-8
lines changed

hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@
6767
import org.hibernate.dialect.function.LocatePositionEmulation;
6868
import org.hibernate.dialect.function.LpadRpadPadEmulation;
6969
import org.hibernate.dialect.function.SqlFunction;
70-
import org.hibernate.dialect.function.TimestampaddFunction;
71-
import org.hibernate.dialect.function.TimestampdiffFunction;
7270
import org.hibernate.dialect.function.TrimFunction;
7371
import org.hibernate.dialect.identity.IdentityColumnSupport;
7472
import org.hibernate.dialect.identity.IdentityColumnSupportImpl;
@@ -284,7 +282,7 @@
284282
* passed to the constructor, and by the {@link #getVersion()} property.
285283
* <p>
286284
* 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
288286
* classes are now deprecated and will be removed in a future release.
289287
* <p>
290288
* A custom {@code Dialect} may be specified using the configuration
@@ -850,12 +848,11 @@ public String getCheckCondition(String columnName, long min, long max) {
850848
*/
851849
@Deprecated(forRemoval = true)
852850
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];
857854
}
858-
return getCheckCondition(columnName, objValues);
855+
return getCheckCondition( columnName, boxedValues );
859856
}
860857

861858
/**

0 commit comments

Comments
 (0)