File tree 1 file changed +7
-3
lines changed
avro/src/test/java/com/fasterxml/jackson/dataformat/avro/interop/annotations
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 28
28
/**
29
29
* Tests support for using classes marked {@link Stringable @Stringable} as map keys. These classes must have a constructor which accepts a
30
30
* 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
32
32
* default}:
33
33
* <ul>
34
34
* <li>{@link File}</li>
@@ -55,13 +55,17 @@ public String toString() {
55
55
}
56
56
57
57
@ Data
58
- @ NoArgsConstructor
59
- @ AllArgsConstructor
60
58
static class BigNumberWrapper {
61
59
@ AvroSchema ("\" double\" " )
62
60
private BigDecimal bigDecimal ;
63
61
@ AvroSchema ("\" long\" " )
64
62
private BigInteger bigInteger ;
63
+
64
+ protected BigNumberWrapper () { }
65
+ public BigNumberWrapper (BigDecimal d1 , BigInteger i2 ) {
66
+ bigDecimal = d1 ;
67
+ bigInteger = i2 ;
68
+ }
65
69
}
66
70
67
71
@ Test
You can’t perform that action at this time.
0 commit comments