HBASE-3317 Javadoc and Throws Declaration for Bytes.incrementBytes() is Wrong
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1043214 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
325f3cbdfd
commit
584e9b5c26
|
@ -15,6 +15,8 @@ Release 0.91.0 - Unreleased
|
||||||
COMPRESSION via shell
|
COMPRESSION via shell
|
||||||
HBASE-3310 Failing creating/altering table with compression agrument from
|
HBASE-3310 Failing creating/altering table with compression agrument from
|
||||||
the HBase shell (Igor Ranitovic via Stack)
|
the HBase shell (Igor Ranitovic via Stack)
|
||||||
|
HBASE-3317 Javadoc and Throws Declaration for Bytes.incrementBytes() is
|
||||||
|
Wrong (Ed Kohlwey via Stack)
|
||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
HBASE-2001 Coprocessors: Colocate user code with regions (Mingjie Lai via
|
HBASE-2001 Coprocessors: Colocate user code with regions (Mingjie Lai via
|
||||||
|
|
|
@ -1178,10 +1178,9 @@ public class Bytes {
|
||||||
* @param value - array of bytes containing long (length <= SIZEOF_LONG)
|
* @param value - array of bytes containing long (length <= SIZEOF_LONG)
|
||||||
* @param amount value will be incremented on (deincremented if negative)
|
* @param amount value will be incremented on (deincremented if negative)
|
||||||
* @return array of bytes containing incremented long (length == SIZEOF_LONG)
|
* @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)
|
public static byte [] incrementBytes(byte[] value, long amount)
|
||||||
throws IOException {
|
{
|
||||||
byte[] val = value;
|
byte[] val = value;
|
||||||
if (val.length < SIZEOF_LONG) {
|
if (val.length < SIZEOF_LONG) {
|
||||||
// Hopefully this doesn't happen too often.
|
// Hopefully this doesn't happen too often.
|
||||||
|
|
Loading…
Reference in New Issue