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-lang.git


The following commit(s) were added to refs/heads/master by this push:
     new e9d7d3508 Deprecate Validate.Validate().
e9d7d3508 is described below

commit e9d7d3508bd825fdce00d673f06968a75bb50b23
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Mar 20 17:39:53 2026 -0700

    Deprecate Validate.Validate().
---
 src/changes/changes.xml                              | 1 +
 src/main/java/org/apache/commons/lang3/Validate.java | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 544c66e47..4fbf80fc2 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -122,6 +122,7 @@ The <action> type attribute can be add,update,fix,remove.
     <action issue="LANG-771"  type="fix" dev="ggregory" due-to="Ryan Holmes, 
Makarand Hinge, Gary Gregory">DateUtils.ceiling does not behave correctly for 
dates on the boundaries.</action>
     <action issue="LANG-1819" type="fix" dev="ggregory" due-to="Partha Protim 
Paul, Gary Gregory">[LANG-] Javadoc ArrayUtils.removeAll() null input behavior 
#1614.</action>
     <action issue="LANG-1813" type="fix" dev="ggregory" due-to="Ivan 
Ponomarev, Gary Gregory">ArrayUtils#hashCode() Javadoc incorrectly states “null 
returns zero” (actual result is 629).</action>
+    <action                   type="fix" dev="ggregory" due-to="Gary 
Gregory">Deprecate Validate.Validate().</action>
     <!-- ADD -->
     <action                   type="add" dev="ggregory" due-to="Gary 
Gregory">Add JavaVersion.JAVA_27.</action>
     <action                   type="add" dev="ggregory" due-to="Gary 
Gregory">Add SystemUtils.IS_JAVA_27.</action>
diff --git a/src/main/java/org/apache/commons/lang3/Validate.java 
b/src/main/java/org/apache/commons/lang3/Validate.java
index 7239384b9..b35a9daf5 100644
--- a/src/main/java/org/apache/commons/lang3/Validate.java
+++ b/src/main/java/org/apache/commons/lang3/Validate.java
@@ -1274,7 +1274,10 @@ public static void validState(final boolean expression, 
final String message, fi
 
     /**
      * Constructs a new instance. This class should not normally be 
instantiated.
+     *
+     * @deprecated Will be made private in 4.0. Use static methods.
      */
+    @Deprecated
     public Validate() {
     }
 }

Reply via email to