Adjust application.yaml keys and values
[portal/ric-dashboard.git] / webapp-backend / src / main / java / org / oransc / ric / portal / dashboard / controller / SimpleErrorController.java
index ca3df22..b603840 100644 (file)
@@ -2,7 +2,7 @@
  * ========================LICENSE_START=================================
  * O-RAN-SC
  * %%
- * Copyright (C) 2019 AT&T Intellectual Property and Nokia
+ * Copyright (C) 2019 AT&T Intellectual Property
  * %%
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -82,12 +82,11 @@ public class SimpleErrorController implements ErrorController {
                if (t != null)
                        logger.warn("handleError", t);
                Map<String, Object> attributes = errorAttributes.getErrorAttributes(servletWebRequest, true);
-               attributes.forEach((attribute, value) -> {
-                       logger.warn("handleError: {} -> {}", attribute, value);
-               });
+               // use compact lambda syntax to silence Sonar complaint
+               attributes.forEach((attribute, value) -> logger.warn("handleError: {} -> {}", attribute, value));
                // Return the name of the page INCLUDING suffix, which I guess is a "view" name.
                // Just "error" is not enough, but don't seem to need a ModelAndView object.
                return "error.html";
        }
 
-}
\ No newline at end of file
+}