From ef7b8c8a7c9a4c68d8f4a573a1c7ae02d7e8d452 Mon Sep 17 00:00:00 2001 From: burdziak Date: Mon, 21 May 2018 13:34:52 +0200 Subject: Fix sonar issuer in Messages Change-Id: I2e77ab3139530d78e3f3a084e35993e5bf92f223 Issue-ID: AAF-297 Signed-off-by: burdziak --- auth/auth-batch/src/main/java/org/onap/aaf/auth/actions/Message.java | 4 ++-- 1 file 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 lines; public Message() { - lines = new ArrayList(); + 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); -- cgit 1.2.3-korg