This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-validator.git

commit 6dc6c136bc7fd490662b927b1571df44720af1e7
Author: Gary D. Gregory <[email protected]>
AuthorDate: Sat Dec 28 11:39:01 2024 -0500

    Deprecate GenericTypeValidator.GenericTypeValidator()
---
 src/changes/changes.xml                                        |  1 +
 .../org/apache/commons/validator/GenericTypeValidator.java     | 10 ++++++++++
 2 files changed, 11 insertions(+)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 89e21c13..4fa2bc14 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -70,6 +70,7 @@ The <action> type attribute can be add,update,fix,remove.
     <action type="fix" dev="ggregory" due-to="Johannes Weberhofer">Fix order 
of actual and expected parameters in assertEquals() #246.</action>
     <action type="fix" dev="ggregory" due-to="Johannes 
Weberhofer">InetAddressValidator does not need its instance variable, so uses a 
touch less memory.</action>
     <action type="fix" dev="ggregory" due-to="Gary Gregory">Pick up 
maven-antrun-plugin version from parent POM org.apache:apache.</action>
+    <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate 
GenericTypeValidator.GenericTypeValidator().</action>
     <!-- ADD -->
     <action type="add" issue="VALIDATOR-497" dev="sjaranowski" 
due-to="Slawomir Jaranowski">IBANValidator: add method validate with validation 
status</action>
     <action type="add" dev="sebb">DomainValidatorTest: added Maven profile to 
simplfy execution.</action>
diff --git 
a/src/main/java/org/apache/commons/validator/GenericTypeValidator.java 
b/src/main/java/org/apache/commons/validator/GenericTypeValidator.java
index 8ee08484..bce10c9a 100644
--- a/src/main/java/org/apache/commons/validator/GenericTypeValidator.java
+++ b/src/main/java/org/apache/commons/validator/GenericTypeValidator.java
@@ -467,5 +467,15 @@ public class GenericTypeValidator implements Serializable {
         return result;
     }
 
+    /**
+     * Constructs a new instance.
+     *
+     * @deprecated Will be private in the next major version.
+     */
+    @Deprecated
+    public GenericTypeValidator() {
+        // empty
+    }
+
 }
 

Reply via email to