@@ -147,6 +147,9 @@ Trunk (unreleased changes)
HADOOP-3031. Fix javac warnings in test classes. (cdouglas)
+ HADOOP-3119. Update javadoc for Text::getBytes to better describe its
+ behavior. (Tim Nelson via cdouglas)
+
Release 0.17.0 - Unreleased
INCOMPATIBLE CHANGES
@@ -82,7 +82,10 @@ public class Text implements WritableComparable {
set(utf8);
}
- /** Retuns the raw bytes. */
+ /**
+ * Returns the raw bytes; however, only data up to {@link #getLength()} is
+ * valid.
+ */
public byte[] getBytes() {
return bytes;