Collection syntax change because of Sonar
[aaf/authz.git] / cadi / core / src / main / java / org / onap / aaf / cadi / taf / HttpEpiTaf.java
index 5cd6323..5b51c11 100644 (file)
@@ -93,7 +93,12 @@ public class HttpEpiTaf implements HttpTaf {
                TafResp tresp = null;
                TafResp firstTry = null;
                List<Redirectable> redirectables = null;
-               List<TafResp> log = (access.willLog(Level.DEBUG)) ? new ArrayList<TafResp>() : null;
+               List<TafResp> log;
+               if(access.willLog(Level.DEBUG)) {
+                       log = new ArrayList<>();
+               } else {
+                       log = null;
+               }
                try {
                        for (HttpTaf taf : tafs) {
                                tresp = taf.validate(reading, req, resp);