From 8bc2fba3e5038ab47bc75accfea0fa55f6e208f6 Mon Sep 17 00:00:00 2001 From: Jason Brown Date: Tue, 17 Jul 2018 22:23:06 -0700 Subject: [PATCH] add a javadoc comment on VIntCoding function --- src/java/org/apache/cassandra/utils/vint/VIntCoding.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/java/org/apache/cassandra/utils/vint/VIntCoding.java b/src/java/org/apache/cassandra/utils/vint/VIntCoding.java index 67444a917b..d4fdd630ea 100644 --- a/src/java/org/apache/cassandra/utils/vint/VIntCoding.java +++ b/src/java/org/apache/cassandra/utils/vint/VIntCoding.java @@ -86,6 +86,8 @@ public class VIntCoding * Note this method is the same as {@link #readUnsignedVInt(DataInput)}, * except that we do *not* block if there are not enough bytes in the buffer * to reconstruct the value. + * + * @return -1 if there are not enough bytes in the input to read the value; else, the vint unsigned value. */ public static long readUnsignedVInt(ByteBuf input) {