Skip to content

Commit 0da01d1

Browse files
committed
JAVA-488: Rolling back unintentional API change
1 parent 7d56b14 commit 0da01d1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/com/mongodb/util/JSON.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,8 @@ public static String serialize( Object o ){
5252
* @return String containing JSON form of the object
5353
* @see com.mongodb.util.JSONSerializers#getLegacy()
5454
*/
55-
public static String serialize( Object o, StringBuilder buf) {
55+
public static void serialize( Object o, StringBuilder buf) {
5656
JSONSerializers.getLegacy().serialize(o, buf);
57-
return buf.toString();
5857
}
5958

6059
/**

0 commit comments

Comments
 (0)