Skip to content

Commit a37ada0

Browse files
committed
Trying to get rid of Lombok -- it's wrong it requires installing of crap on classpath
1 parent 50f7a02 commit a37ada0

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

avro/src/test/java/com/fasterxml/jackson/dataformat/avro/interop/annotations/StringableTest.java

+7-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
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

0 commit comments

Comments
 (0)