From f2b1d9516498b403d88e0b190e5266b8c5d33cbc Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Wed, 6 Dec 2017 16:14:21 +0100 Subject: [PATCH] Fix javadocs for ObjectUtil methods. Motivation: The javadocs for a few methds in ObjectUtil are not correct. Modifications: Add "not" where it was missing. Result: Fixes [#7455]. --- .../src/main/java/io/netty/util/internal/ObjectUtil.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/src/main/java/io/netty/util/internal/ObjectUtil.java b/common/src/main/java/io/netty/util/internal/ObjectUtil.java index 1ab39c4c77..28c3729fb9 100644 --- a/common/src/main/java/io/netty/util/internal/ObjectUtil.java +++ b/common/src/main/java/io/netty/util/internal/ObjectUtil.java @@ -34,7 +34,7 @@ public final class ObjectUtil { } /** - * Checks that the given argument is strictly positive. If it is, throws {@link IllegalArgumentException}. + * Checks that the given argument is strictly positive. If it is not, throws {@link IllegalArgumentException}. * Otherwise, returns the argument. */ public static int checkPositive(int i, String name) { @@ -45,7 +45,7 @@ public final class ObjectUtil { } /** - * Checks that the given argument is strictly positive. If it is, throws {@link IllegalArgumentException}. + * Checks that the given argument is strictly positive. If it is not, throws {@link IllegalArgumentException}. * Otherwise, returns the argument. */ public static long checkPositive(long i, String name) { @@ -56,7 +56,7 @@ public final class ObjectUtil { } /** - * Checks that the given argument is positive or zero. If it is, throws {@link IllegalArgumentException}. + * Checks that the given argument is positive or zero. If it is not , throws {@link IllegalArgumentException}. * Otherwise, returns the argument. */ public static int checkPositiveOrZero(int i, String name) { @@ -67,7 +67,7 @@ public final class ObjectUtil { } /** - * Checks that the given argument is positive or zero. If it is, throws {@link IllegalArgumentException}. + * Checks that the given argument is positive or zero. If it is not, throws {@link IllegalArgumentException}. * Otherwise, returns the argument. */ public static long checkPositiveOrZero(long i, String name) {