aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2018-12-07 00:16:43 +0530
committerSandeep J <sandeejh@in.ibm.com>2018-12-07 00:16:54 +0530
commit86a5baf7014d426b7026288c9ddf55e79608d11a (patch)
treec0cca0abadb9d745f68afcbeae9831a571e103d0
parent7db11491f101ed834da2f73958647240502677df (diff)
fixed sonar issues in RequestResponseLoggingFilter
fixed sonar issues Issue-ID: CCSDK-525 Change-Id: Icaccda30e0386614dd7cd601a8c93fd32597c213 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
-rw-r--r--filters/provider/src/main/java/org/onap/ccsdk/sli/core/filters/RequestResponseLoggingFilter.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/filters/provider/src/main/java/org/onap/ccsdk/sli/core/filters/RequestResponseLoggingFilter.java b/filters/provider/src/main/java/org/onap/ccsdk/sli/core/filters/RequestResponseLoggingFilter.java
index f5510b9a..7b48a236 100644
--- a/filters/provider/src/main/java/org/onap/ccsdk/sli/core/filters/RequestResponseLoggingFilter.java
+++ b/filters/provider/src/main/java/org/onap/ccsdk/sli/core/filters/RequestResponseLoggingFilter.java
@@ -5,6 +5,8 @@
* Copyright (C) 2017 AT&T Intellectual Property. All rights
* reserved.
* ================================================================================
+ * Modifications Copyright (C) 2018 IBM.
+ * ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -70,7 +72,7 @@ public class RequestResponseLoggingFilter implements Filter {
@Override
public void setWriteListener(WriteListener arg0) {
-
+ //this method does nothing
}
}
@@ -131,7 +133,7 @@ public class RequestResponseLoggingFilter implements Filter {
@Override
public void setReadListener(ReadListener arg0) {
-
+ // this method does nothing
}
}
@@ -151,7 +153,7 @@ public class RequestResponseLoggingFilter implements Filter {
InputStream is = req.getInputStream();
baos = new ByteArrayOutputStream();
- byte buf[] = new byte[1024];
+ byte[] buf = new byte[1024];
int letti;
while ((letti = is.read(buf)) > 0) {
baos.write(buf, 0, letti);
@@ -180,6 +182,7 @@ public class RequestResponseLoggingFilter implements Filter {
@Override
public void init(FilterConfig filterConfig) throws ServletException {
+ //this method does nothing
}
@Override
@@ -259,6 +262,7 @@ public class RequestResponseLoggingFilter implements Filter {
@Override
public void destroy() {
+ //this method does nothing
}
private String decompressGZIPByteArray(byte[] bytes) {