Skip to content

Commit

Permalink
change import
Browse files Browse the repository at this point in the history
  • Loading branch information
rapolaskaseliscgi committed Dec 10, 2024
1 parent 26106f0 commit 971a51f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.nimbusds.jwt.JWT;
import com.nimbusds.jwt.JWTParser;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.context.annotation.PropertySource;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
Expand Down Expand Up @@ -931,7 +932,7 @@ private Map<String, Object> getErrorResponseMap(ResponseEntity<Object> responseE
throws JsonProcessingException {
Map<String, Object> errorResponseMap = new HashMap<>();
String body = (String) responseEntity.getBody();
if (org.apache.commons.lang3.StringUtils.isNotEmpty(body)) {
if (StringUtils.isNotEmpty(body)) {
errorResponseMap.put("response_body", objectMapper.readValue(
body, ErrorResponse.class));
} else {
Expand Down

0 comments on commit 971a51f

Please sign in to comment.