aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/prelude/fastsearch/DocsumField.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@yahoo-inc.com>2017-01-18 11:40:10 +0100
committerJon Bratseth <bratseth@yahoo-inc.com>2017-01-18 11:40:10 +0100
commit2945c88c507a382144e9713ef8f338bdca9c77e2 (patch)
tree4794781ca4b82c77570f41c59394e78e9c4da4f0 /container-search/src/main/java/com/yahoo/prelude/fastsearch/DocsumField.java
parent32e3cbf82a532f9e1c7763270fc485bbf0d79d0e (diff)
Use int length and allow 0 length
Diffstat (limited to 'container-search/src/main/java/com/yahoo/prelude/fastsearch/DocsumField.java')
-rw-r--r--container-search/src/main/java/com/yahoo/prelude/fastsearch/DocsumField.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/container-search/src/main/java/com/yahoo/prelude/fastsearch/DocsumField.java b/container-search/src/main/java/com/yahoo/prelude/fastsearch/DocsumField.java
index 096382dd023..1e14fea26b7 100644
--- a/container-search/src/main/java/com/yahoo/prelude/fastsearch/DocsumField.java
+++ b/container-search/src/main/java/com/yahoo/prelude/fastsearch/DocsumField.java
@@ -106,8 +106,8 @@ public abstract class DocsumField {
public abstract Object decode(ByteBuffer b);
/**
- * Get the number of bytes this field occupies in the given buffer and set
- * the position of the first byte after this field.
+ * Get the number of bytes this field occupies in the given buffer
+ * AND SET(!) the position to the first byte after this field.
*/
public abstract int getLength(ByteBuffer b);