From b7117a443d700e6a8eb308d64aac020a6f67094d Mon Sep 17 00:00:00 2001 From: Andrew Purtell Date: Mon, 18 Jul 2022 15:31:34 -0700 Subject: [PATCH] HBASE-27200 Clean up error-prone findings in hbase-archetypes (#4621) Signed-off-by: Duo Zhang --- .../apache/hbase/archetypes/exemplars/client/HelloHBase.java | 2 +- .../hbase/archetypes/exemplars/shaded_client/HelloHBase.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hbase-archetypes/hbase-client-project/src/main/java/org/apache/hbase/archetypes/exemplars/client/HelloHBase.java b/hbase-archetypes/hbase-client-project/src/main/java/org/apache/hbase/archetypes/exemplars/client/HelloHBase.java index a9795d6ba91..3ca23a618ae 100644 --- a/hbase-archetypes/hbase-client-project/src/main/java/org/apache/hbase/archetypes/exemplars/client/HelloHBase.java +++ b/hbase-archetypes/hbase-client-project/src/main/java/org/apache/hbase/archetypes/exemplars/client/HelloHBase.java @@ -43,7 +43,7 @@ import org.apache.hadoop.hbase.util.Bytes; */ public final class HelloHBase { - protected static final String MY_NAMESPACE_NAME = "myTestNamespace"; + static final String MY_NAMESPACE_NAME = "myTestNamespace"; static final TableName MY_TABLE_NAME = TableName.valueOf("myTestTable"); static final byte[] MY_COLUMN_FAMILY_NAME = Bytes.toBytes("cf"); static final byte[] MY_FIRST_COLUMN_QUALIFIER = Bytes.toBytes("myFirstColumn"); diff --git a/hbase-archetypes/hbase-shaded-client-project/src/main/java/org/apache/hbase/archetypes/exemplars/shaded_client/HelloHBase.java b/hbase-archetypes/hbase-shaded-client-project/src/main/java/org/apache/hbase/archetypes/exemplars/shaded_client/HelloHBase.java index 66581d5acc6..964e9a5bbd7 100644 --- a/hbase-archetypes/hbase-shaded-client-project/src/main/java/org/apache/hbase/archetypes/exemplars/shaded_client/HelloHBase.java +++ b/hbase-archetypes/hbase-shaded-client-project/src/main/java/org/apache/hbase/archetypes/exemplars/shaded_client/HelloHBase.java @@ -42,7 +42,7 @@ import org.apache.hadoop.hbase.util.Bytes; */ public final class HelloHBase { - protected static final String MY_NAMESPACE_NAME = "myTestNamespace"; + static final String MY_NAMESPACE_NAME = "myTestNamespace"; static final TableName MY_TABLE_NAME = TableName.valueOf("myTestTable"); static final byte[] MY_COLUMN_FAMILY_NAME = Bytes.toBytes("cf"); static final byte[] MY_FIRST_COLUMN_QUALIFIER = Bytes.toBytes("myFirstColumn");