Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.0.0
Description
Constants.java has the following code:
public static final Map<String, String> requestTypeToOperationMap = new HashMap<String, String>(); public static final Map<String, String> requestTypeToObjectTypeMap = new HashMap<String, String>(); static { // for hive audit log requestTypeToOperationMap.put(TCreateSentryRoleRequest.class.getName(), Constants.OPERATION_CREATE_ROLE); requestTypeToOperationMap.put( TAlterSentryRoleGrantPrivilegeRequest.class.getName(), Constants.OPERATION_GRANT_PRIVILEGE); ...
Instead it should create immutable maps for these.