From 41490e792ad7673dcba327b16b095f2355e4a863 Mon Sep 17 00:00:00 2001 From: Jan Hentschel Date: Mon, 29 Jul 2019 09:10:51 +0200 Subject: [PATCH] HBASE-22754 Removed deprecated methods from Increment (#421) Signed-off-by: Peter Somogyi --- .../apache/hadoop/hbase/client/Increment.java | 41 ------------------- 1 file changed, 41 deletions(-) diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Increment.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Increment.java index d7d11160a78..60304ccd5cc 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Increment.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Increment.java @@ -262,36 +262,6 @@ public class Increment extends Mutation { return sb.toString(); } - /** - * @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0. - * No replacement. - */ - @Deprecated - @Override - public int hashCode() { - // TODO: This is wrong. Can't have two gets the same just because on same row. But it - // matches how equals works currently and gets rid of the findbugs warning. - return Bytes.hashCode(this.getRow()); - } - - /** - * @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0. - * Use {@link Row#COMPARATOR} instead - */ - @Deprecated - @Override - public boolean equals(Object obj) { - // TODO: This is wrong. Can't have two the same just because on same row. - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - Row other = (Row) obj; - return compareTo(other) == 0; - } - @Override protected long extraHeapSize(){ return HEAP_OVERHEAD; @@ -312,17 +282,6 @@ public class Increment extends Mutation { return (Increment) super.setDurability(d); } - /** - * Method for setting the Increment's familyMap - * @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0. - * Use {@link Increment#Increment(byte[], long, NavigableMap)} instead - */ - @Deprecated - @Override - public Increment setFamilyCellMap(NavigableMap> map) { - return (Increment) super.setFamilyCellMap(map); - } - @Override public Increment setClusterIds(List clusterIds) { return (Increment) super.setClusterIds(clusterIds);