Fix sonars in policy models
[policy/models.git] / models-errors / src / main / java / org / onap / policy / models / errors / concepts / ErrorResponseUtils.java
index 67815a8..eb5212e 100644 (file)
@@ -1,6 +1,7 @@
 /*-
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2019 Nordix Foundation.
+ *  Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -46,7 +47,7 @@ public final class ErrorResponseUtils {
 
         List<String> cascascadedErrorMessages = new ArrayList<>();
 
-        for (Throwable t = throwable; t != null; t = t.getCause()) {
+        for (var t = throwable; t != null; t = t.getCause()) {
             cascascadedErrorMessages.add(t.getMessage());
         }