Sonar Fixes
[aaf/authz.git] / auth / auth-gui / src / main / java / org / onap / aaf / auth / gui / Controls.java
index 5b582f3..270b13d 100644 (file)
@@ -7,9 +7,9 @@
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -28,18 +28,19 @@ import org.onap.aaf.misc.xgen.Cache;
 import org.onap.aaf.misc.xgen.html.HTMLGen;
 
 public class Controls extends NamedCode {
-       public Controls() {
-               super(false,"controls");
-       }
-       
-       @Override
-       public void code(final Cache<HTMLGen> cache, final HTMLGen hgen) throws APIException, IOException {
-               hgen.incr("form","method=post")
-                       .incr("input", true, "type=checkbox", "name=vehicle", "value=Bike").text("I have a bike").end()
-                       .text("Password: ")
-                       .incr("input", true, "type=password", "id=password1").end()
-                       .tagOnly("input", "type=submit", "value=Submit")
-                       .end();
-       }
+    public static final String INPUT = "input";
+    public Controls() {
+        super(false,"controls");
+    }
+
+    @Override
+    public void code(final Cache<HTMLGen> cache, final HTMLGen hgen) throws APIException, IOException {
+        hgen.incr("form","method=post")
+            .incr(INPUT, true, "type=checkbox", "name=vehicle", "value=Bike").text("I have a bike").end()
+            .text("Password: ")
+            .incr(INPUT, true, "type=password", "id=password1").end()
+            .tagOnly(INPUT, "type=submit", "value=Submit")
+            .end();
+    }
 
 }