commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgra...@apache.org
Subject cvs commit: jakarta-commons/validator/src/share/org/apache/commons/validator Validator.java
Date Wed, 28 May 2003 04:30:58 GMT
dgraham     2003/05/27 21:30:58

  Modified:    validator/src/share/org/apache/commons/validator
                        Validator.java
  Log:
  Changed parameters variable to Map instead of HashMap so we can 
  change implementation later without breaking subclasses.
  
  Revision  Changes    Path
  1.25      +7 -7      jakarta-commons/validator/src/share/org/apache/commons/validator/Validator.java
  
  Index: Validator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/Validator.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- Validator.java	28 May 2003 04:28:01 -0000	1.24
  +++ Validator.java	28 May 2003 04:30:58 -0000	1.25
  @@ -184,12 +184,12 @@
        * Maps validation method parameter class names to the objects to be passed 
        * into the method.
        */
  -    protected HashMap parameters = new HashMap();
  +    protected Map parameters = new HashMap();
   
       /**
        * @deprecated Use parameters instead.
        */
  -    protected HashMap hResources = this.parameters;
  +    protected HashMap hResources = (HashMap) this.parameters;
       
       /**
        * The current page number to validate.
  @@ -334,7 +334,7 @@
       public void clear() {
           this.formName = null;
           this.parameters = new HashMap();
  -        this.hResources = this.parameters;
  +        this.hResources = (HashMap) this.parameters;
           this.page = 0;
       }
   
  
  
  

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


Mime
View raw message