Fix Sonar findings (#1810)
Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -125,14 +125,12 @@ public class MDCHandler {
|
|||||||
put(MDC_KEY_USER, currentUser);
|
put(MDC_KEY_USER, currentUser);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (final RuntimeException e) {
|
||||||
|
throw e;
|
||||||
} catch (final Exception e) {
|
} catch (final Exception e) {
|
||||||
if (e instanceof RuntimeException) {
|
|
||||||
throw (RuntimeException) e;
|
|
||||||
} else {
|
|
||||||
throw new WrappedException(e);
|
throw new WrappedException(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private static void put(final String key, final String value) {
|
private static void put(final String key, final String value) {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user