From 2f263faca0d553bcdd615a022f114a8aaaabfdc6 Mon Sep 17 00:00:00 2001 From: Michael Hirsch Date: Mon, 25 Jul 2016 12:01:28 +0200 Subject: [PATCH] suppress warning for multiple checked exception declaration Signed-off-by: Michael Hirsch --- .../im/authentication/UserAuthenticationFilter.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/hawkbit-security-core/src/main/java/org/eclipse/hawkbit/im/authentication/UserAuthenticationFilter.java b/hawkbit-security-core/src/main/java/org/eclipse/hawkbit/im/authentication/UserAuthenticationFilter.java index fd59f1d30..deaff089f 100644 --- a/hawkbit-security-core/src/main/java/org/eclipse/hawkbit/im/authentication/UserAuthenticationFilter.java +++ b/hawkbit-security-core/src/main/java/org/eclipse/hawkbit/im/authentication/UserAuthenticationFilter.java @@ -8,6 +8,8 @@ */ package org.eclipse.hawkbit.im.authentication; +import java.io.IOException; + import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; @@ -44,11 +46,16 @@ public interface UserAuthenticationFilter { * the servlet response * @param chain * the filterchain + * @throws IOException + * cannot read from request * @throws ServletException * servlet exception */ - - void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws ServletException; + // this declaration of multiple checked exception is necessary so it's + // aligned with the servlet API. + @SuppressWarnings("squid:S1160") + void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) + throws IOException, ServletException; /** * @see Filter#destroy()