Skip to content

Commit 5ec4027

Browse files
authored
Make MongoArray internal (#122)
1 parent 85f8bab commit 5ec4027

File tree

5 files changed

+25
-3
lines changed

5 files changed

+25
-3
lines changed

src/main/java/com/mongodb/hibernate/jdbc/ArrayAdapter.java renamed to src/main/java/com/mongodb/hibernate/internal/jdbc/ArrayAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.mongodb.hibernate.jdbc;
17+
package com.mongodb.hibernate.internal.jdbc;
1818

1919
import java.sql.Array;
2020
import java.sql.ResultSet;

src/main/java/com/mongodb/hibernate/jdbc/MongoArray.java renamed to src/main/java/com/mongodb/hibernate/internal/jdbc/MongoArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.mongodb.hibernate.jdbc;
17+
package com.mongodb.hibernate.internal.jdbc;
1818

1919
public final class MongoArray implements ArrayAdapter {
2020
private final Object contents;
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright 2024-present MongoDB, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
/** The program elements within this package are not part of the public API and may be removed or changed at any time */
18+
@NullMarked
19+
package com.mongodb.hibernate.internal.jdbc;
20+
21+
import org.jspecify.annotations.NullMarked;

src/main/java/com/mongodb/hibernate/internal/type/ValueConversions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import static com.mongodb.hibernate.internal.MongoAssertions.fail;
2222
import static java.lang.String.format;
2323

24-
import com.mongodb.hibernate.jdbc.MongoArray;
24+
import com.mongodb.hibernate.internal.jdbc.MongoArray;
2525
import java.lang.reflect.Array;
2626
import java.math.BigDecimal;
2727
import java.sql.JDBCType;

src/main/java/com/mongodb/hibernate/jdbc/MongoConnection.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import com.mongodb.client.MongoDatabase;
2525
import com.mongodb.hibernate.internal.BuildConfig;
2626
import com.mongodb.hibernate.internal.cfg.MongoConfiguration;
27+
import com.mongodb.hibernate.internal.jdbc.MongoArray;
2728
import java.sql.Array;
2829
import java.sql.DatabaseMetaData;
2930
import java.sql.PreparedStatement;

0 commit comments

Comments
 (0)