File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
avro/src/test/java/com/fasterxml/jackson/dataformat/avro/interop/annotations Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 2828/**
2929 * Tests support for using classes marked {@link Stringable @Stringable} as map keys. These classes must have a constructor which accepts a
3030 * single string as an argument, and their {@link #toString()} must return a serialized version of the object that can be passed back into
31- * the constructor to recreate it. In addition, Avro considers the following classes {@link SpecificData#stringableClasses stringable by
31+ * the constructor to recreate it. In addition, Avro considers the following classes {@link SpecificData#stringableClasses} stringable by
3232 * default}:
3333 * <ul>
3434 * <li>{@link File}</li>
@@ -55,13 +55,17 @@ public String toString() {
5555 }
5656
5757 @ Data
58- @ NoArgsConstructor
59- @ AllArgsConstructor
6058 static class BigNumberWrapper {
6159 @ AvroSchema ("\" double\" " )
6260 private BigDecimal bigDecimal ;
6361 @ AvroSchema ("\" long\" " )
6462 private BigInteger bigInteger ;
63+
64+ protected BigNumberWrapper () { }
65+ public BigNumberWrapper (BigDecimal d1 , BigInteger i2 ) {
66+ bigDecimal = d1 ;
67+ bigInteger = i2 ;
68+ }
6569 }
6670
6771 @ Test
You can’t perform that action at this time.
0 commit comments