Return-Path: X-Original-To: apmail-hbase-commits-archive@www.apache.org Delivered-To: apmail-hbase-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 209EB17F0D for ; Mon, 29 Sep 2014 02:36:54 +0000 (UTC) Received: (qmail 73905 invoked by uid 500); 29 Sep 2014 02:36:54 -0000 Delivered-To: apmail-hbase-commits-archive@hbase.apache.org Received: (qmail 73854 invoked by uid 500); 29 Sep 2014 02:36:53 -0000 Mailing-List: contact commits-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list commits@hbase.apache.org Received: (qmail 73845 invoked by uid 99); 29 Sep 2014 02:36:53 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Sep 2014 02:36:53 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id A87E99BB28B; Mon, 29 Sep 2014 02:36:53 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: anoopsamjohn@apache.org To: commits@hbase.apache.org Message-Id: <85b28527e0974ed0875c6b6502635d0e@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: HBASE-12079 Deprecate KeyValueUtil#ensureKeyValue(s). Date: Mon, 29 Sep 2014 02:36:53 +0000 (UTC) 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 Authored: Mon Sep 29 08:06:23 2014 +0530 Committer: anoopsjohn 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 cell if it is an instance of {@link KeyValue} else we will return a * new {@link KeyValue} instance made from cell + * @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 ensureKeyValues(List cells) { List lazyList = Lists.transform(cells, new Function() { public KeyValue apply(Cell arg0) {