Skip to content

Commit 7de9b3e

Browse files
committed
Minor test robustification
1 parent e6499e4 commit 7de9b3e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/test/java/com/fasterxml/jackson/databind/testutil/DatabindTestUtil.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
import java.nio.charset.StandardCharsets;
66
import java.util.*;
77

8+
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
9+
810
import com.fasterxml.jackson.core.*;
911
import com.fasterxml.jackson.databind.*;
1012
import com.fasterxml.jackson.databind.introspect.AnnotatedMember;
@@ -271,13 +273,14 @@ public StringWrapper(String value) {
271273

272274
public static enum ABC { A, B, C; }
273275

276+
@JsonPropertyOrder({"x", "y"})
274277
public static class Point {
275278
public int x, y;
276279

277280
protected Point() { } // for deser
278-
public Point(int x0, int y0) {
279-
x = x0;
280-
y = y0;
281+
public Point(int x, int y) {
282+
this.x = x;
283+
this.y = y;
281284
}
282285

283286
@Override

0 commit comments

Comments
 (0)