diff options
author | Jonathan Gathman <jonathan.gathman@att.com> | 2018-05-21 13:40:42 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-05-21 13:40:42 +0000 |
commit | 3609e1a0f524988c0158b8065f805976f88ae989 (patch) | |
tree | 86169735b6376e7912da3d149f46f0f175921fc6 | |
parent | 9880fa8e3b8f1693ccfce99b335a2f8173303d95 (diff) | |
parent | ef7b8c8a7c9a4c68d8f4a573a1c7ae02d7e8d452 (diff) |
Merge "Fix sonar issuer in Messages"
-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); |