Authz unit test and code cleanup
[dmaap/datarouter.git] / datarouter-prov / src / main / java / org / onap / dmaap / datarouter / authz / impl / AuthRespSupplementImpl.java
index 1f62c27..b61c00e 100644 (file)
@@ -7,9 +7,9 @@
  * * Licensed under the Apache License, Version 2.0 (the "License");\r
  * * you may not use this file except in compliance with the License.\r
  * * You may obtain a copy of the License at\r
- * * \r
+ * *\r
  *  *      http://www.apache.org/licenses/LICENSE-2.0\r
- * * \r
+ * *\r
  *  * Unless required by applicable law or agreed to in writing, software\r
  * * distributed under the License is distributed on an "AS IS" BASIS,\r
  * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
@@ -35,37 +35,37 @@ import org.onap.dmaap.datarouter.authz.AuthorizationResponseSupplement;
  *\r
  */\r
 public class AuthRespSupplementImpl implements AuthorizationResponseSupplement {\r
-       \r
-       private String id = null;\r
-       private Map<String, String> attributes = null;\r
 \r
-       /** Constructor, available within the package.\r
-        * \r
-        * @param id  The identifier for the advice or obligation element\r
-        * @param attributes The attributes (name-value pairs) for the advice or obligation element.\r
-        */\r
-       AuthRespSupplementImpl (String id, Map<String, String> attributes) {\r
-               this.id = id;\r
-               this.attributes = new HashMap<String,String>(attributes);\r
-       }\r
+    private String id;\r
+    private Map<String, String> attributes;\r
+\r
+    /** Constructor, available within the package.\r
+     *\r
+     * @param id  The identifier for the advice or obligation element\r
+     * @param attributes The attributes (name-value pairs) for the advice or obligation element.\r
+     */\r
+    AuthRespSupplementImpl(String id, Map<String, String> attributes) {\r
+        this.id = id;\r
+        this.attributes = new HashMap<>(attributes);\r
+    }\r
 \r
-       /** Return the identifier for the supplementary information element.\r
-        * \r
-        * @return a <code>String</code> containing the identifier.\r
-        */\r
-       @Override\r
-       public String getId() {\r
-               return id;\r
-       }\r
+    /** Return the identifier for the supplementary information element.\r
+     *\r
+     * @return a <code>String</code> containing the identifier.\r
+     */\r
+    @Override\r
+    public String getId() {\r
+        return id;\r
+    }\r
 \r
-       /** Return the attributes for the supplementary information element, as a <code>Map</code> in which\r
-        * keys represent attribute identifiers and values represent attribute values.\r
-        * \r
-        * @return attributes for the supplementary information element.\r
-        */\r
-       @Override\r
-       public Map<String, String> getAttributes() {\r
-               return attributes;\r
-       }\r
+    /** Return the attributes for the supplementary information element, as a <code>Map</code> in which\r
+     * keys represent attribute identifiers and values represent attribute values.\r
+     *\r
+     * @return attributes for the supplementary information element.\r
+     */\r
+    @Override\r
+    public Map<String, String> getAttributes() {\r
+        return attributes;\r
+    }\r
 \r
 }\r