You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by Apache Wiki <wi...@apache.org> on 2010/01/27 12:05:25 UTC

[Velocity Wiki] Trivial Update of "VelocityValidationToolHack" by newacct

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Velocity Wiki" for change notification.

The "VelocityValidationToolHack" page has been changed by newacct.
http://wiki.apache.org/jakarta-velocity/VelocityValidationToolHack?action=diff&rev1=2&rev2=3

--------------------------------------------------

  
                          Map hVars = field.getVars();
                          // Loop through the field's variables.
-                         for (Iterator iVars = hVars.keySet().iterator(); iVars.hasNext();) {
+                         for (Iterator iVars = hVars.entrySet().iterator(); iVars.hasNext();) {
+                             Map.Entry entry = (Map.Entry) iVars.next();
-                             String varKey = (String) iVars.next();
+                             String varKey = (String) entry.getKey();
-                             Var var = (Var) hVars.get(varKey);
+                             Var var = (Var) entry.getValue();
                              String varValue = var.getValue();
                              String jsType = var.getJsType();
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org