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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]