summaryrefslogtreecommitdiffstats
path: root/auth/auth-batch/src
diff options
context:
space:
mode:
authorJonathan Gathman <jonathan.gathman@att.com>2018-05-21 13:40:42 +0000
committerGerrit Code Review <gerrit@onap.org>2018-05-21 13:40:42 +0000
commit3609e1a0f524988c0158b8065f805976f88ae989 (patch)
tree86169735b6376e7912da3d149f46f0f175921fc6 /auth/auth-batch/src
parent9880fa8e3b8f1693ccfce99b335a2f8173303d95 (diff)
parentef7b8c8a7c9a4c68d8f4a573a1c7ae02d7e8d452 (diff)
Merge "Fix sonar issuer in Messages"
Diffstat (limited to 'auth/auth-batch/src')
-rw-r--r--auth/auth-batch/src/main/java/org/onap/aaf/auth/actions/Message.java4
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);