Skip to content

Commit 675946c

Browse files
committed
update Java version
1 parent f1b99fe commit 675946c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/test/java/com/upokecenter/test/CBORObjectTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public class CBORObjectTest {
9191
"[0E+6]", "[\"\ud800\udc00\"]", "[\"\\ud800\\udc00\"]",
9292
"[\"\\ud800\\udc00\ud800\udc00\"]", "23.0e01", "23.0e00", "[23.0e01]",
9393
"[23.0e00]", "0", "1", "0.2", "0.05", "-0.2", "-0.05",
94-
"2", "3", "4", "5","6","7","8","9",
94+
"2", "3", "4", "5", "6", "7","8","9",
9595
};
9696

9797
private static final JSONOptions ValueNoDuplicateKeys = new JSONOptions("allowduplicatekeys=false");

src/test/java/com/upokecenter/test/CBORTest.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public static void TestJsonUtf8One(byte[] bytes) {
133133
public void JsonTestSuiteTest(String fn, byte[] jsonBytes) {
134134
CBORObject json = null;
135135
try {
136-
json = CBORObject.ReadJSONBytes(jsonBytes, new
136+
json = CBORObject.FromJSONBytes(jsonBytes, new
137137
JSONOptions("allowduplicatekeys=1"));
138138
} catch (CBORException ex) {
139139
json = null;
@@ -1062,9 +1062,8 @@ public static boolean TestEquivJSONOne(byte[] bytes) {
10621062
System.out.println(TestCommon.ToByteArrayString(bytes));
10631063
System.out.println(com.upokecenter.util.DataUtilities.GetUtf8String(bytes, true));
10641064
System.out.println("old " + TestCommon.ToByteArrayString(cbo.ToJSONBytes()));
1065-
System.out.println(cbo.ToJSONString());
1066-
System.out.println("new " +
1067-
TestCommon.ToByteArrayString(cbo2.ToJSONBytes()));
1065+
System.out.println(cbo.ToJSONString());
1066+
System.out.println("new " + TestCommon.ToByteArrayString(cbo2.ToJSONBytes()));
10681067
System.out.println(cbo2.ToJSONString());
10691068
}
10701069
Assert.assertEquals(cbo, cbo2);

0 commit comments

Comments
 (0)