You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/05/02 13:30:11 UTC
[commons-lang] branch master updated: Fix Javadoc for Validate.isAssignableFrom()
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 e6dadcb49 Fix Javadoc for Validate.isAssignableFrom()
e6dadcb49 is described below
commit e6dadcb49a5e89c3f5ce6b2012c6d1e7a84bed97
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon May 2 09:30:03 2022 -0400
Fix Javadoc for Validate.isAssignableFrom()
---
src/changes/changes.xml | 1 +
src/main/java/org/apache/commons/lang3/Validate.java | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 5a170c364..0a1b0ec3e 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -76,6 +76,7 @@ The <action> type attribute can be add,update,fix,remove.
<action issue="LANG-1675" type="fix" dev="ggregory" due-to="clover">Improve performance of StringUtils.join for primitives #812.</action>
<action issue="LANG-1675" type="fix" dev="ggregory" due-to="Arturo Bernal">Fixed NPE getting Stack Trace if Throwable is null #733.</action>
<action type="fix" dev="ggregory" due-to="Gary Gregory, Arturo Bernal">Make Validate.isAssignableFrom() check null inputs.</action>
+ <action type="fix" dev="ggregory" due-to="Arturo Bernal">Fix Javadoc for Validate.isAssignableFrom().</action>
<!-- ADD -->
<action type="add" dev="ggregory" due-to="Gary Gregory">Add EnumUtils.getEnumSystemProperty(...).</action>
<action type="add" dev="ggregory" due-to="Gary Gregory">Add TriConsumer.</action>
diff --git a/src/main/java/org/apache/commons/lang3/Validate.java b/src/main/java/org/apache/commons/lang3/Validate.java
index 9733a4739..a7e077161 100644
--- a/src/main/java/org/apache/commons/lang3/Validate.java
+++ b/src/main/java/org/apache/commons/lang3/Validate.java
@@ -1287,7 +1287,7 @@ public class Validate {
*
* <p>The message format of the exception is "Cannot assign {type} to {superType}"</p>
*
- * @param superType the class the class must be validated against, not null
+ * @param superType the class must be validated against, not null
* @param type the class to check, not null
* @throws IllegalArgumentException if type argument is not assignable to the specified superType
* @see #isAssignableFrom(Class, Class, String, Object...)
@@ -1312,7 +1312,7 @@ public class Validate {
* <p>The message of the exception is "The validated object can not be converted to the"
* followed by the name of the class and "class"</p>
*
- * @param superType the class the class must be validated against, not null
+ * @param superType the class must be validated against, not null
* @param type the class to check, not null
* @param message the {@link String#format(String, Object...)} exception message if invalid, not null
* @param values the optional values for the formatted exception message, null array not recommended