Author: sebb
Date: Thu Jan 15 00:25:06 2015
New Revision: 1651909

URL: http://svn.apache.org/r1651909
Log:
Replace deprecated method call

Modified:
    
commons/proper/validator/trunk/src/example/org/apache/commons/validator/example/ValidateExample.java

Modified: 
commons/proper/validator/trunk/src/example/org/apache/commons/validator/example/ValidateExample.java
URL: 
http://svn.apache.org/viewvc/commons/proper/validator/trunk/src/example/org/apache/commons/validator/example/ValidateExample.java?rev=1651909&r1=1651908&r2=1651909&view=diff
==============================================================================
--- 
commons/proper/validator/trunk/src/example/org/apache/commons/validator/example/ValidateExample.java
 (original)
+++ 
commons/proper/validator/trunk/src/example/org/apache/commons/validator/example/ValidateExample.java
 Thu Jan 15 00:25:06 2015
@@ -21,7 +21,6 @@ import java.io.InputStream;
 import java.text.MessageFormat;
 import java.util.Iterator;
 import java.util.Locale;
-import java.util.Map;
 import java.util.ResourceBundle;
 
 import org.apache.commons.validator.Field;
@@ -159,8 +158,7 @@ public class ValidateExample {
             ValidatorResult result = results.getValidatorResult(propertyName);
 
             // Get all the actions run against the property, and iterate over 
their names.
-            Map<String, ?> actionMap = result.getActionMap();
-            Iterator<String> keys = actionMap.keySet().iterator();
+            Iterator<String> keys = result.getActions();
             while (keys.hasNext()) {
                 String actName = keys.next();
 


Reply via email to