]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/pages/account/MyDetailsForm.java
upd: enforce pattern of making templates static and final.
[gigi.git] / src / org / cacert / gigi / pages / account / MyDetailsForm.java
index 9ea66b359965f8ba0142b1ca4cbcced21f252335..d35ba45e84bea8ec27872807196abf4de2be6632 100644 (file)
@@ -17,12 +17,9 @@ import org.cacert.gigi.util.HTMLEncoder;
 
 public class MyDetailsForm extends Form {
 
-    private static Template assured = new Template(MyDetails.class.getResource("MyDetailsFormAssured.templ"));
+    private static final Template assured = new Template(MyDetails.class.getResource("MyDetailsFormAssured.templ"));
 
-    private static Template templ;
-    static {
-        templ = new Template(MyDetailsForm.class.getResource("MyDetailsForm.templ"));
-    }
+    private static final Template templ = new Template(MyDetailsForm.class.getResource("MyDetailsForm.templ"));
 
     private User target;