From 14abe9a0dab51fdee9d8c2422a232fade8255794 Mon Sep 17 00:00:00 2001 From: Sean Busbey Date: Thu, 21 Sep 2017 14:04:42 -0500 Subject: [PATCH] HBASE-18731 [compat 1-2] Mark protected methods of QuotaSettings that touch Protobuf internals as IA.Private --- .../src/main/java/org/apache/hadoop/hbase/quotas/QuotaSettings.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/quotas/QuotaSettings.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/quotas/QuotaSettings.java index 3a8c158..58f4a62 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/quotas/QuotaSettings.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/quotas/QuotaSettings.java @@ -49,7 +49,9 @@ public abstract class QuotaSettings { /** * Convert a QuotaSettings to a protocol buffer SetQuotaRequest. This is used internally by the * Admin client to serialize the quota settings and send them to the master. + * @deprecated Removed in HBase 2.0+ as a part of removing protobuf from our API */ + @Deprecated public static SetQuotaRequest buildSetQuotaRequestProto(final QuotaSettings settings) { SetQuotaRequest.Builder builder = SetQuotaRequest.newBuilder(); if (settings.getUserName() != null) { @@ -68,7 +70,9 @@ public abstract class QuotaSettings { /** * Called by toSetQuotaRequestProto() the subclass should implement this method to set the * specific SetQuotaRequest properties. + * @deprecated Removed in HBase 2.0+ as a part of removing protobuf from our API */ + @Deprecated protected abstract void setupSetQuotaRequest(SetQuotaRequest.Builder builder); protected String ownerToString() { -- 2.7.2