From 82fa485ddceb7be6e2913dea552954bf6214e20e Mon Sep 17 00:00:00 2001 From: Michael Hirsch Date: Mon, 25 Jul 2016 10:13:07 +0200 Subject: [PATCH] suppress warning squid:S2221 Signed-off-by: Michael Hirsch --- .../org/eclipse/hawkbit/security/SystemSecurityContext.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hawkbit-security-core/src/main/java/org/eclipse/hawkbit/security/SystemSecurityContext.java b/hawkbit-security-core/src/main/java/org/eclipse/hawkbit/security/SystemSecurityContext.java index 979080344..0e3863d97 100644 --- a/hawkbit-security-core/src/main/java/org/eclipse/hawkbit/security/SystemSecurityContext.java +++ b/hawkbit-security-core/src/main/java/org/eclipse/hawkbit/security/SystemSecurityContext.java @@ -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); } });