Fix Sonar findings (#1810)

Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2024-08-09 17:43:50 +03:00
committed by GitHub
parent 52b3ccf885
commit 8c2d1037bb

View File

@@ -125,12 +125,10 @@ public class MDCHandler {
put(MDC_KEY_USER, currentUser);
}
}
} catch (final RuntimeException e) {
throw e;
} catch (final Exception e) {
if (e instanceof RuntimeException) {
throw (RuntimeException) e;
} else {
throw new WrappedException(e);
}
throw new WrappedException(e);
}
}