[fix-#5845] remove the unused codes (#6096)

This commit is contained in:
brotherlu-xcq 2021-06-17 19:18:14 +08:00 committed by GitHub
parent fb3e5ad290
commit b97644109d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,14 +60,7 @@ public class InitUtils {
if (Boolean.parseBoolean(isUseCloudNamespaceParsing)) { if (Boolean.parseBoolean(isUseCloudNamespaceParsing)) {
tmpNamespace = TenantUtil.getUserTenantForAns(); tmpNamespace = TenantUtil.getUserTenantForAns();
tmpNamespace = TemplateUtils.stringEmptyAndThenExecute(tmpNamespace, new Callable<String>() { LogUtils.NAMING_LOGGER.info("initializer namespace from System Property : {}", tmpNamespace);
@Override
public String call() {
String namespace = System.getProperty(SystemPropertyKeyConst.ANS_NAMESPACE);
LogUtils.NAMING_LOGGER.info("initializer namespace from System Property :" + namespace);
return namespace;
}
});
tmpNamespace = TemplateUtils.stringEmptyAndThenExecute(tmpNamespace, new Callable<String>() { tmpNamespace = TemplateUtils.stringEmptyAndThenExecute(tmpNamespace, new Callable<String>() {
@Override @Override