You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by dg...@apache.org on 2004/04/09 01:29:31 UTC
cvs commit: jakarta-commons/validator/src/share/org/apache/commons/validator CreditCardValidator.java ValidatorAction.java Constant.java
dgraham 2004/04/08 16:29:31
Modified: validator/src/share/org/apache/commons/validator
CreditCardValidator.java ValidatorAction.java
Removed: validator/src/share/org/apache/commons/validator
Constant.java
Log:
Removed items deprecated in 1.1.x series.
Revision Changes Path
1.17 +3 -20 jakarta-commons/validator/src/share/org/apache/commons/validator/CreditCardValidator.java
Index: CreditCardValidator.java
===================================================================
RCS file: /home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/CreditCardValidator.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- CreditCardValidator.java 21 Feb 2004 17:10:29 -0000 1.16
+++ CreditCardValidator.java 8 Apr 2004 23:29:31 -0000 1.17
@@ -182,23 +182,6 @@
return (sum == 0) ? false : (sum % 10 == 0);
}
-
- /**
- * Checks for a valid credit card number.
- * @param card Credit Card Number.
- * @deprecated This will be removed in a future release.
- */
- protected boolean isValidPrefix(String card) {
-
- if (card.length() < 13) {
- return false;
- }
-
- return new Visa().matches(card)
- || new Amex().matches(card)
- || new Mastercard().matches(card)
- || new Discover().matches(card);
- }
/**
* CreditCardType implementations define how validation is performed
1.21 +3 -46 jakarta-commons/validator/src/share/org/apache/commons/validator/ValidatorAction.java
Index: ValidatorAction.java
===================================================================
RCS file: /home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/ValidatorAction.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- ValidatorAction.java 21 Feb 2004 17:10:29 -0000 1.20
+++ ValidatorAction.java 8 Apr 2004 23:29:31 -0000 1.21
@@ -28,7 +28,6 @@
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
-import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Map;
@@ -226,14 +225,6 @@
}
/**
- * Gets the method parameters for the method as an unmodifiable List.
- * @deprecated This will be removed after Validator 1.1.2
- */
- public List getMethodParamsList() {
- return Collections.unmodifiableList(this.methodParameterList);
- }
-
- /**
* Gets the dependencies of the validator action as a comma separated list
* of validator names.
*/
@@ -346,22 +337,6 @@
}
/**
- * Gets an instance based on the validator action's classname.
- * @deprecated This will be removed after Validator 1.1.2
- */
- public Object getClassnameInstance() {
- return instance;
- }
-
- /**
- * Sets an instance based on the validator action's classname.
- * @deprecated This will be removed after Validator 1.1.2
- */
- public void setClassnameInstance(Object instance) {
- this.instance = instance;
- }
-
- /**
* Initialize based on set.
*/
protected void init() {
@@ -492,28 +467,10 @@
}
/**
- * Creates a <code>FastHashMap</code> for the isDependency method
- * based on depends.
- * @deprecated This functionality has been moved to other methods. It's no
- * longer required to call this method to initialize this object.
- */
- public synchronized void process(Map globalConstants) {
- // do nothing
- }
-
- /**
* Checks whether or not the value passed in is in the depends field.
*/
public boolean isDependency(String validatorName) {
return this.dependencyList.contains(validatorName);
- }
-
- /**
- * Gets the dependencies as a <code>Collection</code>.
- * @deprecated Use getDependencyList() instead.
- */
- public Collection getDependencies() {
- return this.getDependencyList();
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org