kumaab commented on code in PR #442:
URL: https://github.com/apache/ranger/pull/442#discussion_r1880802719


##########
agents-common/src/main/java/org/apache/ranger/authorization/hadoop/config/RangerLegacyConfigBuilder.java:
##########
@@ -19,227 +19,220 @@
 
 package org.apache.ranger.authorization.hadoop.config;
 
-import java.io.File;
-import java.net.URL;
-import java.util.HashMap;
-import java.util.Map;
-
 import org.apache.hadoop.conf.Configuration;
 import org.apache.ranger.plugin.store.EmbeddedServiceDefsUtil;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+import java.io.File;
+import java.net.URL;
+import java.util.HashMap;
+import java.util.Map;
+
 public class RangerLegacyConfigBuilder {
+    private static final Logger LOG = 
LoggerFactory.getLogger(RangerLegacyConfigBuilder.class);
+
+    static String serviceType;
+    static String legacyResource;
+
+    private RangerLegacyConfigBuilder() {
+        // to block instantiation
+    }
+
+    public static Configuration getSecurityConfig(String serviceType) {
+        RangerLegacyConfigBuilder.legacyResource = 
getPropertyName(RangerConfigConstants.XASECURE_SECURITY_FILE, serviceType);
+        RangerLegacyConfigBuilder.serviceType    = serviceType;
+
+        Configuration ret           = null;

Review Comment:
   nit: null can be removed.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to