diff options
author | burdziak <olaf.burdziakowski@nokia.com> | 2018-05-21 13:34:52 +0200 |
---|---|---|
committer | burdziak <olaf.burdziakowski@nokia.com> | 2018-05-21 13:34:52 +0200 |
commit | ef7b8c8a7c9a4c68d8f4a573a1c7ae02d7e8d452 (patch) | |
tree | 9b412d21f689d7f408044429eb8f1a008dccb6f2 /auth/auth-batch/src/main/java/org | |
parent | c8f8273a200559f87b883767758e4bda446dadfe (diff) |
Fix sonar issuer in Messages
Change-Id: I2e77ab3139530d78e3f3a084e35993e5bf92f223
Issue-ID: AAF-297
Signed-off-by: burdziak <olaf.burdziakowski@nokia.com>
Diffstat (limited to 'auth/auth-batch/src/main/java/org')
-rw-r--r-- | auth/auth-batch/src/main/java/org/onap/aaf/auth/actions/Message.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/auth/auth-batch/src/main/java/org/onap/aaf/auth/actions/Message.java b/auth/auth-batch/src/main/java/org/onap/aaf/auth/actions/Message.java index 98fc0054..a4122d61 100644 --- a/auth/auth-batch/src/main/java/org/onap/aaf/auth/actions/Message.java +++ b/auth/auth-batch/src/main/java/org/onap/aaf/auth/actions/Message.java @@ -28,7 +28,7 @@ public class Message { public final List<String> lines; public Message() { - lines = new ArrayList<String>(); + lines = new ArrayList<>(); } public void clear() { @@ -42,7 +42,7 @@ public class Message { } public void msg(StringBuilder sb, String lineIndent) { - if(lines.size()>0) { + if(!lines.isEmpty()) { for(String line : lines) { sb.append(lineIndent); sb.append(line); |