- } else if (e instanceof ServiceException) {
- ServiceException se = (ServiceException) e;
- if (se.getHttpStatus() != null) {
- code = se.getHttpStatus();
- }
+ } else if (e instanceof ServiceException se && se.getHttpStatus() != null) {
+ code = se.getHttpStatus();