From b651b46d36409283321ab0520d26e6a57e9758e8 Mon Sep 17 00:00:00 2001 From: Ramkrishna Date: Tue, 12 Sep 2017 15:23:21 +0530 Subject: [PATCH] HBASE-18795 - Expose KeyValue.getBuffer() for tests alone (Ram) --- .../src/main/java/org/apache/hadoop/hbase/KeyValue.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 98cf9cb1da4..dc98422fde6 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; }