fix: fixed sonarqube-reported bugs in JSON and EventBuilderTest
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user