hbase git commit: HBASE-18795 - Expose KeyValue.getBuffer() for tests alone (Ram)

2017-09-12 Thread ramkrishna
Repository: hbase
Updated Branches:
  refs/heads/branch-2 a11a17825 -> b651b46d3


HBASE-18795 - Expose KeyValue.getBuffer() for tests alone (Ram)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/b651b46d
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/b651b46d
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/b651b46d

Branch: refs/heads/branch-2
Commit: b651b46d36409283321ab0520d26e6a57e9758e8
Parents: a11a178
Author: Ramkrishna 
Authored: Tue Sep 12 15:23:21 2017 +0530
Committer: Ramkrishna 
Committed: Tue Sep 12 15:25:10 2017 +0530

--
 .../src/main/java/org/apache/hadoop/hbase/KeyValue.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/hbase/blob/b651b46d/hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValue.java
--
diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValue.java 
b/hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValue.java
index 98cf9cb..dc98422 100644
--- a/hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValue.java
+++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValue.java
@@ -1237,10 +1237,11 @@ public class KeyValue implements ExtendedCell {
   //---
 
   /**
+   * To be used only in tests where the Cells are clearly assumed to be of 
type KeyValue
+   * and that we need access to the backing array to do some test case related 
assertions.
* @return The byte array backing this KeyValue.
-   * @deprecated Since 0.98.0.  Use Cell Interface instead.  Do not presume 
single backing buffer.
*/
-  @Deprecated
+  @VisibleForTesting
   public byte [] getBuffer() {
 return this.bytes;
   }



hbase git commit: HBASE-18795 - Expose KeyValue.getBuffer() for tests alone (Ram)

2017-09-12 Thread ramkrishna
Repository: hbase
Updated Branches:
  refs/heads/master 58bfa1307 -> bebb2a3a4


HBASE-18795 - Expose KeyValue.getBuffer() for tests alone (Ram)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/bebb2a3a
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/bebb2a3a
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/bebb2a3a

Branch: refs/heads/master
Commit: bebb2a3a458f6908131616c442ffb0888b5f7778
Parents: 58bfa13
Author: Ramkrishna 
Authored: Tue Sep 12 15:23:21 2017 +0530
Committer: Ramkrishna 
Committed: Tue Sep 12 15:23:21 2017 +0530

--
 .../src/main/java/org/apache/hadoop/hbase/KeyValue.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/hbase/blob/bebb2a3a/hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValue.java
--
diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValue.java 
b/hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValue.java
index 98cf9cb..dc98422 100644
--- a/hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValue.java
+++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValue.java
@@ -1237,10 +1237,11 @@ public class KeyValue implements ExtendedCell {
   //---
 
   /**
+   * To be used only in tests where the Cells are clearly assumed to be of 
type KeyValue
+   * and that we need access to the backing array to do some test case related 
assertions.
* @return The byte array backing this KeyValue.
-   * @deprecated Since 0.98.0.  Use Cell Interface instead.  Do not presume 
single backing buffer.
*/
-  @Deprecated
+  @VisibleForTesting
   public byte [] getBuffer() {
 return this.bytes;
   }