Skip to content

Commit e9d7d35

Browse files
committed
Deprecate Validate.Validate().
1 parent ab34e33 commit e9d7d35

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/changes/changes.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ The <action> type attribute can be add,update,fix,remove.
122122
<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>
123123
<action issue="LANG-1819" type="fix" dev="ggregory" due-to="Partha Protim Paul, Gary Gregory">[LANG-] Javadoc ArrayUtils.removeAll() null input behavior #1614.</action>
124124
<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>
125+
<action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate Validate.Validate().</action>
125126
<!-- ADD -->
126127
<action type="add" dev="ggregory" due-to="Gary Gregory">Add JavaVersion.JAVA_27.</action>
127128
<action type="add" dev="ggregory" due-to="Gary Gregory">Add SystemUtils.IS_JAVA_27.</action>

src/main/java/org/apache/commons/lang3/Validate.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,10 @@ public static void validState(final boolean expression, final String message, fi
12741274

12751275
/**
12761276
* Constructs a new instance. This class should not normally be instantiated.
1277+
*
1278+
* @deprecated Will be made private in 4.0. Use static methods.
12771279
*/
1280+
@Deprecated
12781281
public Validate() {
12791282
}
12801283
}

0 commit comments

Comments
 (0)