fix: fixed sonarqube-reported bugs in JSON and EventBuilderTest

This commit is contained in:
2021-06-04 14:54:25 +02:00
parent 32cbb6d876
commit 672e5e7727
2 changed files with 18 additions and 16 deletions

View File

@ -32,7 +32,7 @@ public class JSON {
try {
return Optional.of(mapper.readValue(input, BasicMessage.class));
} catch (JsonProcessingException e) {
e.printStackTrace();
// e.printStackTrace();
return Optional.empty();
}
}
@ -46,7 +46,7 @@ public class JSON {
try {
return Optional.of(mapper.writeValueAsString(input));
} catch (JsonProcessingException e) {
e.printStackTrace();
// e.printStackTrace();
return Optional.empty();
}
}