aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2018-12-11 15:08:49 +0000
committerGerrit Code Review <gerrit@onap.org>2018-12-11 15:08:49 +0000
commit982b042ac455a740b916cdb976ac1f004ffe0630 (patch)
tree07aff8dd42df988638c1ae76cf385d62814cb3c4
parent4a00849be4beb0c4258d8299709ed10827fcd19a (diff)
parent86a5baf7014d426b7026288c9ddf55e79608d11a (diff)
Merge "fixed sonar issues in RequestResponseLoggingFilter"
-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) {