summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoresobmar <mariusz.sobucki@est.tech>2019-03-05 13:40:48 +0000
committeresobmar <mariusz.sobucki@est.tech>2019-03-05 13:40:48 +0000
commitc112367f5a49647d3ae962dd77d61d82193a4b3a (patch)
treee0effe925cad64ea72018b76d3a0b70a0c30bae6
parentee3fb78ef198f8826be8fb814d1b8fe7a9212ceb (diff)
Make servlet instance isfeedlog & delivery final
Change-Id: I7e94f494ec38dcbe76beeb4b5b58acb85fa34dc7 Issue-ID: DMAAP-1055 Issue-ID: DMAAP-1073 Signed-off-by: esobmar <mariusz.sobucki@est.tech>
-rw-r--r--datarouter-node/src/main/java/org/onap/dmaap/datarouter/node/NodeServlet.java2
-rw-r--r--datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/LogServlet.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/datarouter-node/src/main/java/org/onap/dmaap/datarouter/node/NodeServlet.java b/datarouter-node/src/main/java/org/onap/dmaap/datarouter/node/NodeServlet.java
index fae2c1f6..35b29064 100644
--- a/datarouter-node/src/main/java/org/onap/dmaap/datarouter/node/NodeServlet.java
+++ b/datarouter-node/src/main/java/org/onap/dmaap/datarouter/node/NodeServlet.java
@@ -67,7 +67,7 @@ public class NodeServlet extends HttpServlet {
//Adding EELF Logger Rally:US664892
private static EELFLogger eelflogger = EELFManager.getInstance()
.getLogger(NodeServlet.class);
- private Delivery delivery;
+ private final Delivery delivery;
static {
final String ws = "\\s*";
diff --git a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/LogServlet.java b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/LogServlet.java
index 8a1a4ba5..c58bda8e 100644
--- a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/LogServlet.java
+++ b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/LogServlet.java
@@ -69,7 +69,7 @@ public class LogServlet extends BaseServlet {
private static final String FMT_1 = "yyyy-MM-dd'T'HH:mm:ss'Z'";
private static final String FMT_2 = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'";
- private boolean isfeedlog;
+ private final boolean isfeedlog;
public abstract class RowHandler {
private final ServletOutputStream out;