2020public class DefaultGsonBuilder {
2121
2222 private static final TypeAdapter <OffsetDateTime > OFFSET_DATE_TIME =
23- new TypeAdapter <>() {
23+ new TypeAdapter <OffsetDateTime >() {
2424 @ Override
2525 public OffsetDateTime read (JsonReader in ) throws IOException {
2626 String stringValue = in .nextString ();
@@ -49,7 +49,7 @@ public void write(JsonWriter out, OffsetDateTime value) throws IOException {
4949 };
5050
5151 private static final TypeAdapter <LocalDate > LOCAL_DATE =
52- new TypeAdapter <>() {
52+ new TypeAdapter <LocalDate >() {
5353 @ Override
5454 public LocalDate read (JsonReader in ) throws IOException {
5555 String stringValue = in .nextString ();
@@ -72,7 +72,7 @@ public void write(JsonWriter out, LocalDate value) throws IOException {
7272 };
7373
7474 private static final TypeAdapter <LocalTime > LOCAL_TIME =
75- new TypeAdapter <>() {
75+ new TypeAdapter <LocalTime >() {
7676 @ Override
7777 public LocalTime read (JsonReader in ) throws IOException {
7878 String stringValue = in .nextString ();
@@ -95,7 +95,7 @@ public void write(JsonWriter out, LocalTime value) throws IOException {
9595 };
9696
9797 private static final TypeAdapter <PeriodAndDuration > PERIOD_AND_DURATION =
98- new TypeAdapter <>() {
98+ new TypeAdapter <PeriodAndDuration >() {
9999 @ Override
100100 public PeriodAndDuration read (JsonReader in ) throws IOException {
101101 String stringValue = in .nextString ();
@@ -118,7 +118,7 @@ public void write(JsonWriter out, PeriodAndDuration value) throws IOException {
118118 };
119119
120120 private static final TypeAdapter <byte []> BYTE_ARRAY =
121- new TypeAdapter <>() {
121+ new TypeAdapter <byte [] >() {
122122 @ Override
123123 public byte [] read (JsonReader in ) throws IOException {
124124 String stringValue = in .nextString ();
0 commit comments