Merge "Sonar Fix: EmailPrint.java"
authorJonathan Gathman <jonathan.gathman@att.com>
Wed, 2 Jan 2019 16:11:29 +0000 (16:11 +0000)
committerGerrit Code Review <gerrit@onap.org>
Wed, 2 Jan 2019 16:11:29 +0000 (16:11 +0000)
auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/actions/EmailPrint.java

index 3ab481f..2ae8699 100644 (file)
@@ -3,6 +3,8 @@
  * org.onap.aaf
  * ===========================================================================
  * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
+ *
+ * Modifications Copyright © 2018 IBM.
  * ===========================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -44,7 +46,9 @@ public class EmailPrint extends Email {
         boolean first = true;
         out.print("To: ");
         for (String s: toList) {
-            if (first) {first = false;}
+            if (first) {
+                first = false;
+            }
             else {out.print(',');}
             out.print(s);
         }
@@ -53,7 +57,9 @@ public class EmailPrint extends Email {
         first = true;
         out.print("CC: ");
         for (String s: ccList) {
-            if (first) {first = false;}
+            if (first) {
+                first = false;
+            }
             else {out.print(',');}
             out.print(s);
         }