diff options
author | 2018-12-11 15:08:49 +0000 | |
---|---|---|
committer | 2018-12-11 15:08:49 +0000 | |
commit | 982b042ac455a740b916cdb976ac1f004ffe0630 (patch) | |
tree | 07aff8dd42df988638c1ae76cf385d62814cb3c4 /filters/provider/src/main/java | |
parent | 4a00849be4beb0c4258d8299709ed10827fcd19a (diff) | |
parent | 86a5baf7014d426b7026288c9ddf55e79608d11a (diff) |
Merge "fixed sonar issues in RequestResponseLoggingFilter"
Diffstat (limited to 'filters/provider/src/main/java')
-rw-r--r-- | filters/provider/src/main/java/org/onap/ccsdk/sli/core/filters/RequestResponseLoggingFilter.java | 10 |
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 f5510b9ab..7b48a2361 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) { |