Correct ByteBufUtils javadoc 96/86696/1
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 4 Jan 2020 12:00:47 +0000 (13:00 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sat, 4 Jan 2020 12:00:47 +0000 (13:00 +0100)
We have some copy&paste references to Byte, which should actually
point to other types. This patch fixes those.

Change-Id: I51661b2519d64a586447e42bd05f5ba8b5d67b5c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-common-netty/src/main/java/org/opendaylight/yangtools/yang/common/netty/ByteBufUtils.java

index 9569e40dd2eee82e03b2b44835bfee1ef099d2c9..53c0c6c52fa7508d7dad92a79d267ee7bbea0720 100644 (file)
@@ -359,10 +359,10 @@ public final class ByteBufUtils {
     }
 
     /**
-     * Write a {@link Byte} value to specified buffer if it is not null, otherwise write two zero bytes.
+     * Write a {@link Short} value to specified buffer if it is not null, otherwise write two zero bytes.
      *
      * @param buf buffer
-     * @param value A {@link Byte}
+     * @param value A {@link Short}
      * @throws NullPointerException if {@code buf} is null
      */
     public static void writeOrZero(final ByteBuf buf, final @Nullable Short value) {
@@ -370,10 +370,10 @@ public final class ByteBufUtils {
     }
 
     /**
-     * Write a {@link Byte} value to specified buffer if it is not null, otherwise write four zero bytes.
+     * Write a {@link Integer} value to specified buffer if it is not null, otherwise write four zero bytes.
      *
      * @param buf buffer
-     * @param value A {@link Byte}
+     * @param value A {@link Integer}
      * @throws NullPointerException if {@code buf} is null
      */
     public static void writeOrZero(final ByteBuf buf, final @Nullable Integer value) {
@@ -392,10 +392,10 @@ public final class ByteBufUtils {
     }
 
     /**
-     * Write a {@link Byte} value to specified buffer if it is not null, otherwise write one zero byte.
+     * Write a {@link Uint8} value to specified buffer if it is not null, otherwise write one zero byte.
      *
      * @param buf buffer
-     * @param value A {@link Byte}
+     * @param value A {@link Uint8}
      * @throws NullPointerException if {@code buf} is null
      */
     public static void writeOrZero(final ByteBuf buf, final @Nullable Uint8 value) {
@@ -403,10 +403,10 @@ public final class ByteBufUtils {
     }
 
     /**
-     * Write a {@link Byte} value to specified buffer if it is not null, otherwise write two zero bytes.
+     * Write a {@link Uint16} value to specified buffer if it is not null, otherwise write two zero bytes.
      *
      * @param buf buffer
-     * @param value A {@link Byte}
+     * @param value A {@link Uint16}
      * @throws NullPointerException if {@code buf} is null
      */
     public static void writeOrZero(final ByteBuf buf, final @Nullable Uint16 value) {
@@ -414,10 +414,10 @@ public final class ByteBufUtils {
     }
 
     /**
-     * Write a {@link Byte} value to specified buffer if it is not null, otherwise write four zero bytes.
+     * Write a {@link Uint32} value to specified buffer if it is not null, otherwise write four zero bytes.
      *
      * @param buf buffer
-     * @param value A {@link Byte}
+     * @param value A {@link Uint32}
      * @throws NullPointerException if {@code buf} is null
      */
     public static void writeOrZero(final ByteBuf buf, final @Nullable Uint32 value) {
@@ -425,10 +425,10 @@ public final class ByteBufUtils {
     }
 
     /**
-     * Write a {@link Byte} value to specified buffer if it is not null, otherwise write eight zero bytes.
+     * Write a {@link Uint64} value to specified buffer if it is not null, otherwise write eight zero bytes.
      *
      * @param buf buffer
-     * @param value A {@link Byte}
+     * @param value A {@link Uint64}
      * @throws NullPointerException if {@code buf} is null
      */
     public static void writeOrZero(final ByteBuf buf, final @Nullable Uint64 value) {