You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by ja...@apache.org on 2018/07/18 05:23:26 UTC

cassandra git commit: add a javadoc comment on VIntCoding function

Repository: cassandra
Updated Branches:
  refs/heads/trunk 207c80c1f -> 8bc2fba3e


add a javadoc comment on VIntCoding function


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/8bc2fba3
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/8bc2fba3
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/8bc2fba3

Branch: refs/heads/trunk
Commit: 8bc2fba3e5038ab47bc75accfea0fa55f6e208f6
Parents: 207c80c
Author: Jason Brown <ja...@gmail.com>
Authored: Tue Jul 17 22:23:06 2018 -0700
Committer: Jason Brown <ja...@gmail.com>
Committed: Tue Jul 17 22:23:06 2018 -0700

----------------------------------------------------------------------
 src/java/org/apache/cassandra/utils/vint/VIntCoding.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/8bc2fba3/src/java/org/apache/cassandra/utils/vint/VIntCoding.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/utils/vint/VIntCoding.java b/src/java/org/apache/cassandra/utils/vint/VIntCoding.java
index 67444a9..d4fdd63 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)
     {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org