File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/com/mongodb/hibernate/internal/type Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ public static BsonArray toBsonValue(java.sql.Array value) throws SQLFeatureNotSu
163
163
private static BsonArray arrayToBsonValue (Object value ) throws SQLFeatureNotSupportedException {
164
164
var length = Array .getLength (value );
165
165
var elements = new ArrayList <BsonValue >(length );
166
- for (int i = 0 ; i < length ; i ++) {
166
+ for (var i = 0 ; i < length ; i ++) {
167
167
elements .add (toBsonValue (Array .get (value , i )));
168
168
}
169
169
return new BsonArray (elements );
@@ -298,7 +298,7 @@ public static MongoArray toArrayDomainValue(BsonValue value) throws SQLFeatureNo
298
298
private static Object toDomainValue (BsonArray value , Class <?> elementType ) throws SQLFeatureNotSupportedException {
299
299
var size = value .size ();
300
300
var result = Array .newInstance (elementType , size );
301
- for (int i = 0 ; i < size ; i ++) {
301
+ for (var i = 0 ; i < size ; i ++) {
302
302
var element = toDomainValue (value .get (i ), elementType );
303
303
Array .set (result , i , element );
304
304
}
You can’t perform that action at this time.
0 commit comments