Skip to content

Commit 200e8a2

Browse files
committed
feat(70552): fix spotless
1 parent f62a789 commit 200e8a2

4 files changed

Lines changed: 5 additions & 12 deletions

File tree

‎src/main/java/fi/hsl/common/hfp/HfpJson.java‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ public class HfpJson {
2222
// {"VP":{"desi":"81","dir":"2","oper":22,"veh":792,"tst":"2018-04-05T17:38:36Z","tsi":1522949916,"spd":0.16,"hdg":225,"lat":60.194481,"long":25.03095,"acc":0,"dl":-25,"odo":2819,"drst":0,"oday":"2018-04-05","jrn":636,"line":112,"start":"20:25"}}
2323

2424
@JsonProperty("VP")
25-
@JsonAlias({"DUE", "ARR", "DEP", "ARS", "PDE", "PAS", "WAIT",
26-
"DOO", "DOC", "TLR", "TLA", "DA", "DOUT", "BA", "BOUT",
27-
"VJA", "VJOUT"})
25+
@JsonAlias({"DUE", "ARR", "DEP", "ARS", "PDE", "PAS", "WAIT", "DOO", "DOC", "TLR", "TLA", "DA", "DOUT", "BA",
26+
"BOUT", "VJA", "VJOUT"})
2827
public Payload payload;
2928

3029
@JsonIgnoreProperties(ignoreUnknown = true)
@@ -142,8 +141,7 @@ public Double deserialize(JsonParser p, DeserializationContext ctxt)
142141

143142
public static class OdoSerializer extends JsonSerializer<Double> {
144143
@Override
145-
public void serialize(Double value, JsonGenerator gen, SerializerProvider serializers)
146-
throws IOException {
144+
public void serialize(Double value, JsonGenerator gen, SerializerProvider serializers) throws IOException {
147145
if (value == null) {
148146
gen.writeNull();
149147
} else {

‎src/main/java/fi/hsl/common/passengercount/PassengerCountParser.java‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ public class PassengerCountParser {
2121

2222
static final Pattern topicVersionRegex = Pattern.compile("(^v\\d+|dev)");
2323

24-
ObjectMapper objectMapper = new ObjectMapper()
25-
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
24+
ObjectMapper objectMapper = new ObjectMapper().configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
2625
.configure(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY, true)
2726
.configure(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT, true)
2827
.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);
@@ -274,9 +273,7 @@ public ApcJson parseJson(byte @NotNull [] data) throws IOException, InvalidAPCPa
274273
return objectMapper.readValue(data, ApcJson.class);
275274
} catch (IOException ioe) {
276275
if (ioe instanceof com.fasterxml.jackson.core.JsonProcessingException jpe) {
277-
throw new PassengerCountParser.InvalidAPCPayloadException(
278-
"Failed to parse APC JSON", jpe
279-
);
276+
throw new PassengerCountParser.InvalidAPCPayloadException("Failed to parse APC JSON", jpe);
280277
} else {
281278
throw ioe;
282279
}

‎src/main/java/fi/hsl/common/passengercount/json/ApcJson.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package fi.hsl.common.passengercount.json;
22

3-
43
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
54
import com.fasterxml.jackson.annotation.JsonProperty;
65

‎src/main/java/fi/hsl/common/passengercount/json/Vehiclecounts.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package fi.hsl.common.passengercount.json;
22

3-
43
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
54

65
import java.util.List;

0 commit comments

Comments
 (0)