suppress warning squid:S2221

Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com>
This commit is contained in:
Michael Hirsch
2016-07-25 10:13:07 +02:00
parent f3b472bcd2
commit 82fa485ddc

View File

@@ -101,7 +101,9 @@ public class SystemSecurityContext {
try {
setSystemContext(SecurityContextHolder.getContext());
return callable.call();
} catch (final Exception e) {
// The callable API throws a Exception and not a specific
// one
} catch (@SuppressWarnings("squid:S2221") final Exception e) {
throw Throwables.propagate(e);
}
});