Skip to content

Commit

Permalink
fixed some typos in the ArgumentValidator.java file
Browse files Browse the repository at this point in the history
  • Loading branch information
MDeLuise authored and Coduz committed Sep 30, 2021
1 parent b5479d3 commit b96483c
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -216,7 +216,7 @@ public static void numRange(long value, long minValue, long maxValue, String arg
* @param minLength The minimum valid length. If {@code null} it means unbounded.
* @param maxLength The maximum valid length. If {@code null} it means unbounded.
* @param argumentName The argument name with will be used in the exception
* @throws KapuaIllegalArgumentException If the given {@link String} excedees the given length limits.
* @throws KapuaIllegalArgumentException If the given {@link String} exceeds the given length limits.
*/
public static void lengthRange(@NotNull String value, @Nullable Integer minLength, @Nullable Integer maxLength, @NotNull String argumentName) throws KapuaIllegalArgumentException {

Expand All @@ -236,7 +236,7 @@ public static void lengthRange(@NotNull String value, @Nullable Integer minLengt
* @param minValue The minimum valid value. If {@code null} it means unbounded.
* @param maxValue The maximum valid value. If {@code null} it means unbounded.
* @param argumentName The argument name with will be used in the exception
* @throws KapuaIllegalArgumentException If the given {@link String} excedees the given length limits.
* @throws KapuaIllegalArgumentException If the given {@link String} exceeds the given length limits.
*/
public static <V extends Comparable<V>> void valueRange(@NotNull V value, @Nullable V minValue, @Nullable V maxValue, @NotNull String argumentName) throws KapuaIllegalArgumentException {

Expand All @@ -255,7 +255,7 @@ public static <V extends Comparable<V>> void valueRange(@NotNull V value, @Nulla
* Same as {@link #validateEntityName(String, Integer, Integer, String)} but assumes default minimum length of 3 chars and maximum length of 255 chars.
*
* @param name The value to validate. Usually would be the {@link KapuaNamedEntity#getName()} or {@link KapuaNamedEntityCreator#getName()}, but other values could be provided
* @param argumentName The name of the argumento to bundle with the {@link KapuaIllegalArgumentException}
* @param argumentName The name of the argument to bundle with the {@link KapuaIllegalArgumentException}
* @throws KapuaIllegalNullArgumentException If the given value to validate is {@code null}.
* @throws KapuaIllegalArgumentException If other validations fails.
* @see ArgumentValidator#notEmptyOrNull(String, String)
Expand All @@ -280,7 +280,7 @@ public static void validateEntityName(@Nullable String name, @NotNull String arg
* @param name The value to validate. Usually would be the {@link KapuaNamedEntity#getName()} or {@link KapuaNamedEntityCreator#getName()}, but other values could be provided
* @param minLength The minimum length of the field. If {@code null} the minLength validation is skipped
* @param maxLength The maximum length of the field. If {@code null} the maxLength validation is skipped
* @param argumentName The name of the argumento to bundle with the {@link KapuaIllegalArgumentException}
* @param argumentName The name of the argument to bundle with the {@link KapuaIllegalArgumentException}
* @throws KapuaIllegalNullArgumentException If the given value to validate is {@code null}.
* @throws KapuaIllegalArgumentException If other validations fails.
* @see ArgumentValidator#notEmptyOrNull(String, String)
Expand Down

0 comments on commit b96483c

Please sign in to comment.