]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/output/template/IfStatement.java
Format code according do BenBE's formatter.
[gigi.git] / src / org / cacert / gigi / output / template / IfStatement.java
index e33cd896546591def0fb346ad4c7e704b257688a..bed559ed41a2ad0144440155eac444d7225afba0 100644 (file)
@@ -7,19 +7,21 @@ import org.cacert.gigi.Language;
 import org.cacert.gigi.output.Outputable;
 
 public final class IfStatement implements Outputable {
-       private final String variable;
-       private final TemplateBlock body;
 
-       public IfStatement(String variable, TemplateBlock body) {
-               this.variable = variable;
-               this.body = body;
-       }
+    private final String variable;
 
-       @Override
-       public void output(PrintWriter out, Language l, Map<String, Object> vars) {
-               Object o = vars.get(variable);
-               if (!(o == Boolean.FALSE || o == null)) {
-                       body.output(out, l, vars);
-               }
-       }
-}
\ No newline at end of file
+    private final TemplateBlock body;
+
+    public IfStatement(String variable, TemplateBlock body) {
+        this.variable = variable;
+        this.body = body;
+    }
+
+    @Override
+    public void output(PrintWriter out, Language l, Map<String, Object> vars) {
+        Object o = vars.get(variable);
+        if ( !(o == Boolean.FALSE || o == null)) {
+            body.output(out, l, vars);
+        }
+    }
+}