Small changes according to comments on the pullrequest

This commit is contained in:
2020-05-28 10:58:11 +02:00
parent e1df56147b
commit d5540c1979
3 changed files with 9 additions and 24 deletions

View File

@ -25,7 +25,7 @@ public class ConfigurationReader {
try {
String jsonData = Files.readString(path, StandardCharsets.UTF_8);
ObjectMapper objectMapper = new ObjectMapper();
Supplier sup = (Supplier)objectMapper.readValue(jsonData, Supplier.class);
Supplier sup = objectMapper.readValue(jsonData, Supplier.class);
System.out.println("Loaded " + sup.id);
return sup;
} catch (IOException e) {