Author: stack
Date: Tue Dec 7 22:17:01 2010
New Revision: 1043214
URL: http://svn.apache.org/viewvc?rev=1043214&view=rev
Log:
HBASE-3317 Javadoc and Throws Declaration for Bytes.incrementBytes() is Wrong
Modified:
hbase/trunk/CHANGES.txt
hbase/trunk/src/main/java/org/apache/hadoop/hbase/util/Bytes.java
Modified: hbase/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/hbase/trunk/CHANGES.txt?rev=1043214&r1=1043213&r2=1043214&view=diff
==============================================================================
--- hbase/trunk/CHANGES.txt (original)
+++ hbase/trunk/CHANGES.txt Tue Dec 7 22:17:01 2010
@@ -15,6 +15,8 @@ Release 0.91.0 - Unreleased
COMPRESSION via shell
HBASE-3310 Failing creating/altering table with compression agrument from
the HBase shell (Igor Ranitovic via Stack)
+ HBASE-3317 Javadoc and Throws Declaration for Bytes.incrementBytes() is
+ Wrong (Ed Kohlwey via Stack)
IMPROVEMENTS
HBASE-2001 Coprocessors: Colocate user code with regions (Mingjie Lai via
Modified: hbase/trunk/src/main/java/org/apache/hadoop/hbase/util/Bytes.java
URL:
http://svn.apache.org/viewvc/hbase/trunk/src/main/java/org/apache/hadoop/hbase/util/Bytes.java?rev=1043214&r1=1043213&r2=1043214&view=diff
==============================================================================
--- hbase/trunk/src/main/java/org/apache/hadoop/hbase/util/Bytes.java (original)
+++ hbase/trunk/src/main/java/org/apache/hadoop/hbase/util/Bytes.java Tue Dec
7 22:17:01 2010
@@ -1178,10 +1178,9 @@ public class Bytes {
* @param value - array of bytes containing long (length <= SIZEOF_LONG)
* @param amount value will be incremented on (deincremented if negative)
* @return array of bytes containing incremented long (length == SIZEOF_LONG)
- * @throws IOException - if value.length > SIZEOF_LONG
*/
public static byte [] incrementBytes(byte[] value, long amount)
- throws IOException {
+ {
byte[] val = value;
if (val.length < SIZEOF_LONG) {
// Hopefully this doesn't happen too often.