Qiang Zhang created RANGER-2238: ----------------------------------- Summary: String comparison should not use ‘==’ in ServiceUtil.java Key: RANGER-2238 URL: https://issues.apache.org/jira/browse/RANGER-2238 Project: Ranger Issue Type: Bug Components: admin Affects Versions: master Reporter: Qiang Zhang Assignee: Qiang Zhang
Here is related code: {code:java} for(RangerPolicy.RangerPolicyItemCondition condition : policyItem.getConditions()) { if(condition.getType() == "ipaddress") { {code} equals() should be used to compare Strings. -- This message was sent by Atlassian JIRA (v7.6.3#76005)