From 1c1407766012b6aa5c376fb6dd8912611b626e1b Mon Sep 17 00:00:00 2001 From: esobmar Date: Thu, 14 Mar 2019 13:30:20 +0000 Subject: Remove unused throws ServletException clause Change-Id: I78ed96c0958aa18fad9efedd7b6c326b43482354 Issue-ID: DMAAP-1086 Signed-off-by: esobmar --- .../onap/dmaap/datarouter/provisioning/PublishServlet.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/PublishServlet.java b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/PublishServlet.java index 96e523df..42d2b113 100644 --- a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/PublishServlet.java +++ b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/PublishServlet.java @@ -26,6 +26,7 @@ package org.onap.dmaap.datarouter.provisioning; import com.att.eelf.configuration.EELFLogger; import com.att.eelf.configuration.EELFManager; + import java.io.IOException; import java.util.*; import javax.servlet.ServletConfig; @@ -42,7 +43,6 @@ import org.onap.dmaap.datarouter.provisioning.beans.EventLogRecord; import org.onap.dmaap.datarouter.provisioning.beans.IngressRoute; import org.onap.dmaap.datarouter.provisioning.eelf.EelfMsgs; import org.onap.dmaap.datarouter.provisioning.utils.DB; -import org.slf4j.MDC; /** * This servlet handles redirects for the <publishURL> on the provisioning server, which is generated by the @@ -74,7 +74,7 @@ public class PublishServlet extends BaseServlet { } @Override - public void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException { + public void doDelete(HttpServletRequest req, HttpServletResponse resp) { setUpEelfForPublishServlet(req, "doDelete"); eelflogger.info(EelfMsgs.ENTRY); try { @@ -86,7 +86,7 @@ public class PublishServlet extends BaseServlet { } @Override - public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException { + public void doGet(HttpServletRequest req, HttpServletResponse resp) { setUpEelfForPublishServlet(req, "doGet"); eelflogger.info(EelfMsgs.ENTRY); try { @@ -98,7 +98,7 @@ public class PublishServlet extends BaseServlet { } @Override - public void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException { + public void doPut(HttpServletRequest req, HttpServletResponse resp) { setUpEelfForPublishServlet(req, "doPut"); eelflogger.info(EelfMsgs.ENTRY); try { @@ -110,7 +110,7 @@ public class PublishServlet extends BaseServlet { } @Override - public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException { + public void doPost(HttpServletRequest req, HttpServletResponse resp) { setUpEelfForPublishServlet(req, "doPost"); eelflogger.info(EelfMsgs.ENTRY); try { @@ -130,7 +130,7 @@ public class PublishServlet extends BaseServlet { } } - private void redirect(HttpServletRequest req, HttpServletResponse resp) throws ServletException { + private void redirect(HttpServletRequest req, HttpServletResponse resp) { try { String[] nodes = getNodes(); if (nodes == null || nodes.length == 0) { @@ -170,7 +170,6 @@ public class PublishServlet extends BaseServlet { } } catch (IOException ioe) { intlogger.error("IOException" + ioe.getMessage()); - } } -- cgit 1.2.3-korg