HBASE-25175 Remove the constructors of HBaseConfiguration (#2530)
Co-authored-by: niuyulin <niuyulin@xiaomi.com> Signed-off-by: Jan Hentschel <janh@apache.org>
This commit is contained in:
parent
c8c860c906
commit
3d1aaa6632
|
@ -36,36 +36,6 @@ import org.slf4j.LoggerFactory;
|
||||||
public class HBaseConfiguration extends Configuration {
|
public class HBaseConfiguration extends Configuration {
|
||||||
private static final Logger LOG = LoggerFactory.getLogger(HBaseConfiguration.class);
|
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) {
|
private static void checkDefaultsVersion(Configuration conf) {
|
||||||
if (conf.getBoolean("hbase.defaults.for.version.skip", Boolean.FALSE)) return;
|
if (conf.getBoolean("hbase.defaults.for.version.skip", Boolean.FALSE)) return;
|
||||||
String defaultsVersion = conf.get("hbase.defaults.for.version");
|
String defaultsVersion = conf.get("hbase.defaults.for.version");
|
||||||
|
|
Loading…
Reference in New Issue