Fix Sonar findings (#1810)
Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -125,12 +125,10 @@ 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 new WrappedException(e);
|
||||||
throw (RuntimeException) e;
|
|
||||||
} else {
|
|
||||||
throw new WrappedException(e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user