Skip to content

Commit

Permalink
Fixed "Line is longer than 120 characters" build issue by pushing the…
Browse files Browse the repository at this point in the history
… end of the offending lines to a new line

Signed-off-by: Luke Sieben <siebenluke@gmail.com>
  • Loading branch information
siebenluke committed Aug 16, 2023
1 parent 97f2920 commit 421ca34
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sdk/src/main/java/io/dapr/client/domain/CloudEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -438,14 +438,16 @@ public int hashCode() {

private static class OffsetDateTimeSerializer extends JsonSerializer<OffsetDateTime> {
@Override
public void serialize(OffsetDateTime offsetDateTime, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
public void serialize(OffsetDateTime offsetDateTime, JsonGenerator jsonGenerator,
SerializerProvider serializerProvider) throws IOException {
jsonGenerator.writeString(offsetDateTime.format(DateTimeFormatter.ISO_OFFSET_DATE_TIME));
}

Check warning on line 444 in sdk/src/main/java/io/dapr/client/domain/CloudEvent.java

View check run for this annotation

Codecov / codecov/patch

sdk/src/main/java/io/dapr/client/domain/CloudEvent.java#L443-L444

Added lines #L443 - L444 were not covered by tests
}

private static class OffsetDateTimeDeserializer extends JsonDeserializer<OffsetDateTime> {
@Override
public OffsetDateTime deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException {
public OffsetDateTime deserialize(JsonParser jsonParser, DeserializationContext deserializationContext)
throws IOException {
return OffsetDateTime.parse(jsonParser.getText());
}
}
Expand Down

0 comments on commit 421ca34

Please sign in to comment.