Skip to content

Commit

Permalink
Fix ivan's suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
SethSmucker committed Oct 7, 2024
1 parent 997799f commit 78aee24
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,10 @@ protected Future<ResponseEntity<String>> execute(DatawaveUserDetails authUser, S
}

private ObjectMapper createJSONObjectMapper() {
ObjectMapper mapper = new ObjectMapper();
mapper.registerModule(new JaxbAnnotationModule());
JsonMapper.builder().configure(MapperFeature.USE_WRAPPER_NAME_AS_PROPERTY_NAME, true);
return mapper;
JsonMapper.Builder builder = JsonMapper.builder();
return builder.configure(MapperFeature.USE_WRAPPER_NAME_AS_PROPERTY_NAME, true)
.addModule(new JaxbAnnotationModule())
.build();
}

protected List<DefaultEventQueryResponse> parseJSONBaseQueryResponses(String responseBody) throws JsonProcessingException {
Expand Down

0 comments on commit 78aee24

Please sign in to comment.