Fix for #148 and possibly #149 plus a few code polishes here and there
[zxing.git] / zxing.appspot.com / generator / src / com / google / zxing / web / generator / client / EmailGenerator.java
index cf160d3..65e60c5 100644 (file)
@@ -66,7 +66,9 @@ public class EmailGenerator implements GeneratorSource {
   }
 
   public void validate(Widget widget) throws GeneratorException {
-    if (widget == email) getEmailField();
+    if (widget == email) {
+      getEmailField();
+    }
   }
 
   public void setFocus() {