You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by to...@apache.org on 2014/07/27 21:04:15 UTC

svn commit: r1613828 - /hadoop/common/branches/MR-2841/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/Text.java

Author: todd
Date: Sun Jul 27 19:04:14 2014
New Revision: 1613828

URL: http://svn.apache.org/r1613828
Log:
MAPREDUCE-5995. native-task: Revert changes to Text internals. Contributed by Todd Lipcon.

Modified:
    hadoop/common/branches/MR-2841/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/Text.java

Modified: hadoop/common/branches/MR-2841/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/Text.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/MR-2841/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/Text.java?rev=1613828&r1=1613827&r2=1613828&view=diff
==============================================================================
--- hadoop/common/branches/MR-2841/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/Text.java (original)
+++ hadoop/common/branches/MR-2841/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/Text.java Sun Jul 27 19:04:14 2014
@@ -226,10 +226,6 @@ public class Text extends BinaryComparab
     this.length = len;
   }
 
-  public void setLength(int len) {
-    this.length = len;
-  }
-
   /**
    * Append a range of bytes to the end of the given text
    * @param utf8 the data to copy from
@@ -264,7 +260,7 @@ public class Text extends BinaryComparab
    * @param len the number of bytes we need
    * @param keepData should the old data be kept
    */
-  public void setCapacity(int len, boolean keepData) {
+  private void setCapacity(int len, boolean keepData) {
     if (bytes == null || bytes.length < len) {
       if (bytes != null && keepData) {
         bytes = Arrays.copyOf(bytes, Math.max(len,length << 1));