When I build my project, So I got this checkstyle warning : WhitespaceAround: WhitespaceAround: '{' is not preceded with whitespace. Can you please help me to remove this warning.
public List<ObjectSyncStatus> createEntities(Long connectorId, EntityRequest entityRequest) {
if (connectorId == null && entityRequest == null){
return Collections.emptyList();
}
String entitiesUrl = connectorEndpoint + CONNECTOR_PATH + connectorId + "/entities";
HttpMethod method = HttpMethod.POST;
HttpEntity<EntityRequest> httpEntity = new HttpEntity<>(entityRequest);
ResponseEntity<List> responseEntity = restTemplate.exchange(entitiesUrl, method, httpEntity, List.class);
log.info(OPERATION_SUCCESSFUL, responseEntity);
return mapper.mapAsList(responseEntity.getBody(), ObjectSyncStatus.class);
}
I got the warning in If condition.