You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by an...@apache.org on 2014/09/29 04:36:53 UTC

git commit: HBASE-12079 Deprecate KeyValueUtil#ensureKeyValue(s).

Repository: hbase
Updated Branches:
  refs/heads/master b48a47498 -> 8895ee694


HBASE-12079 Deprecate KeyValueUtil#ensureKeyValue(s).


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

Branch: refs/heads/master
Commit: 8895ee694c7b28d93ad6abc4faaeb805bd211a88
Parents: b48a474
Author: anoopsjohn <an...@gmail.com>
Authored: Mon Sep 29 08:06:23 2014 +0530
Committer: anoopsjohn <an...@gmail.com>
Committed: Mon Sep 29 08:06:23 2014 +0530

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


http://git-wip-us.apache.org/repos/asf/hbase/blob/8895ee69/hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValueUtil.java
----------------------------------------------------------------------
diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValueUtil.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValueUtil.java
index e2ccb3d..9e969e7 100644
--- a/hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValueUtil.java
+++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValueUtil.java
@@ -524,12 +524,15 @@ public class KeyValueUtil {
    * @param cell
    * @return <code>cell<code> if it is an instance of {@link KeyValue} else we will return a
    * new {@link KeyValue} instance made from <code>cell</code>
+   * @deprecated without any replacement.
    */
+  @Deprecated
   public static KeyValue ensureKeyValue(final Cell cell) {
     if (cell == null) return null;
     return cell instanceof KeyValue? (KeyValue)cell: copyToNewKeyValue(cell);
   }
 
+  @Deprecated
   public static List<KeyValue> ensureKeyValues(List<Cell> cells) {
     List<KeyValue> lazyList = Lists.transform(cells, new Function<Cell, KeyValue>() {
       public KeyValue apply(Cell arg0) {