Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
0.7.1
-
Patch
Description
FindBugs/SpotBug detects a couple of problems with the code base:
- Incorrect class casting - in XXServiceDef.equals
- Unnecessary NPE checks - for variables which is known to be non-null (for example, because in other places a method is called on that object). In ServiceREST.java PublicAPIs.java, ServiceUtil.java and independently in XUserMgr.java
- Collection.contains method call which is never true - in ServiceDBStore.validatePolicyItems for policyItem.getAccesses().contains("") - because getAccesses doesn't store String objects
- Making public partially initialized objects in HadoopConfigHolder.initResourceMap()
- Calling toString on array, which is not too readable
Attachments
Attachments
Issue Links
- causes
-
RANGER-2016 Fix null passed in as a HttpServletRequest - into the deletePoliciesProvidedInServiceMap method.
- Resolved
- links to