Remove superfluous constants
[bgpcep.git] / bgp / parser-spi / src / main / java / org / opendaylight / protocol / bgp / parser / spi / PathIdUtil.java
index 081226d3fe5b82c9759904ffdeb3cb8990790709..950a8535a753ef2c3f47dc2fc85ce2c3571b3d47 100644 (file)
@@ -56,7 +56,7 @@ public final class PathIdUtil {
      * @return Decoded PathId.
      */
     public static PathId readPathId(final ByteBuf buffer) {
-        Preconditions.checkArgument(buffer != null && buffer.isReadable(ByteBufWriteUtil.INT_BYTES_LENGTH));
+        Preconditions.checkArgument(buffer != null && buffer.isReadable(Integer.BYTES));
         return new PathId(ByteBufUtils.readUint32(buffer));
     }