Browse Source

HADOOP-3119. Update javadoc for Text::getBytes to better describe its
behavior. Contributed by Tim Nelson.



git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@653546 13f79535-47bb-0310-9956-ffa450edef68

Christopher Douglas 17 years ago
parent
commit
e34d186151
2 changed files with 7 additions and 1 deletions
  1. 3 0
      CHANGES.txt
  2. 4 1
      src/java/org/apache/hadoop/io/Text.java

+ 3 - 0
CHANGES.txt

@@ -147,6 +147,9 @@ Trunk (unreleased changes)
 
 
     HADOOP-3031. Fix javac warnings in test classes. (cdouglas)
     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
 Release 0.17.0 - Unreleased
 
 
   INCOMPATIBLE CHANGES
   INCOMPATIBLE CHANGES

+ 4 - 1
src/java/org/apache/hadoop/io/Text.java

@@ -82,7 +82,10 @@ public class Text implements WritableComparable {
     set(utf8);
     set(utf8);
   }
   }
   
   
-  /** Retuns the raw bytes. */
+  /**
+   * Returns the raw bytes; however, only data up to {@link #getLength()} is
+   * valid.
+   */
   public byte[] getBytes() {
   public byte[] getBytes() {
     return bytes;
     return bytes;
   }
   }