You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ja...@apache.org on 2020/10/11 15:11:54 UTC

[hbase] branch master updated: HBASE-25175 Remove the constructors of HBaseConfiguration (#2530)

This is an automated email from the ASF dual-hosted git repository.

janh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/master by this push:
     new 3d1aaa6  HBASE-25175 Remove the constructors of HBaseConfiguration (#2530)
3d1aaa6 is described below

commit 3d1aaa66324c46b432e546b4dfa5bdf5191224ed
Author: niuyulin <ny...@163.com>
AuthorDate: Sun Oct 11 10:11:32 2020 -0500

    HBASE-25175 Remove the constructors of HBaseConfiguration (#2530)
    
    Co-authored-by: niuyulin <ni...@xiaomi.com>
    
    Signed-off-by: Jan Hentschel <ja...@apache.org>
---
 .../apache/hadoop/hbase/HBaseConfiguration.java    | 30 ----------------------
 1 file changed, 30 deletions(-)

diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/HBaseConfiguration.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/HBaseConfiguration.java
index 67de5fb..70467f0 100644
--- a/hbase-common/src/main/java/org/apache/hadoop/hbase/HBaseConfiguration.java
+++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/HBaseConfiguration.java
@@ -36,36 +36,6 @@ import org.slf4j.LoggerFactory;
 public class HBaseConfiguration extends Configuration {
   private static final Logger LOG = LoggerFactory.getLogger(HBaseConfiguration.class);
 
-  /**
-   * Instantiating HBaseConfiguration() is deprecated. Please use
-   * HBaseConfiguration#create() to construct a plain Configuration
-   * @deprecated since 0.90.0. Please use {@link #create()} instead.
-   * @see #create()
-   * @see <a href="https://issues.apache.org/jira/browse/HBASE-2036">HBASE-2036</a>
-   */
-  @Deprecated
-  public HBaseConfiguration() {
-    //TODO:replace with private constructor, HBaseConfiguration should not extend Configuration
-    super();
-    addHbaseResources(this);
-    LOG.warn("instantiating HBaseConfiguration() is deprecated. Please use"
-        + " HBaseConfiguration#create() to construct a plain Configuration");
-  }
-
-  /**
-   * Instantiating HBaseConfiguration() is deprecated. Please use
-   * HBaseConfiguration#create(conf) to construct a plain Configuration
-   * @deprecated since 0.90.0. Please use {@link #create(Configuration)} instead.
-   * @see #create(Configuration)
-   * @see <a href="https://issues.apache.org/jira/browse/HBASE-2036">HBASE-2036</a>
-   */
-  @Deprecated
-  public HBaseConfiguration(final Configuration c) {
-    //TODO:replace with private constructor
-    this();
-    merge(this, c);
-  }
-
   private static void checkDefaultsVersion(Configuration conf) {
     if (conf.getBoolean("hbase.defaults.for.version.skip", Boolean.FALSE)) return;
     String defaultsVersion = conf.get("hbase.defaults.for.version");