Skip to content

Commit 057452c

Browse files
committed
Deprecate remains of com.mongodb.util package
JAVA-3033
1 parent 93e45fc commit 057452c

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

driver-legacy/src/main/com/mongodb/util/JSONParseException.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
* { "x" : 3, "y" : 4, some invalid json.... }
2727
* ^
2828
* </pre>
29+
* @deprecated there is no replacement for this class
2930
*/
31+
@Deprecated
3032
public class JSONParseException extends RuntimeException {
3133

3234
private static final long serialVersionUID = -4415279469780082174L;

driver-legacy/src/main/com/mongodb/util/ObjectSerializer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818

1919
/**
2020
* Interface describing methods for serializing an object to a string.
21+
* @deprecated there is no replacement for this interface
2122
*/
23+
@Deprecated
2224
public interface ObjectSerializer {
2325
/**
2426
* Serializes {@code obj} into {@code buf}.

driver-legacy/src/main/com/mongodb/util/Util.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222

2323
/**
2424
* General utilities that are useful throughout the driver.
25+
* @deprecated there is no replacement for this class
2526
*/
27+
@Deprecated
2628
public class Util {
2729
/**
2830
* Converts the given byte buffer to a hexadecimal string using {@link java.lang.Integer#toHexString(int)}.

0 commit comments

Comments
 (0)