HBASE-5022 Optimize HBaseConfiguration#create (N Keywal)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1214366 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2011-12-14 17:30:44 +00:00
parent cd0c4cffa9
commit 9ed28b472c
1 changed files with 2 additions and 5 deletions

View File

@ -114,13 +114,10 @@ public class HBaseConfiguration extends Configuration {
/**
* Creates a clone of passed configuration.
* @param that Configuration to clone.
* @return a Configuration created with the hbase-*.xml files plus
* the given configuration.
* @return a clone of passed configuration.
*/
public static Configuration create(final Configuration that) {
Configuration conf = create();
merge(conf, that);
return conf;
return new Configuration(that);
}
/**