[
https://issues.apache.org/jira/browse/SENTRY-1659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
kalyan kumar kalvagadda reassigned SENTRY-1659:
-----------------------------------------------
Assignee: kalyan kumar kalvagadda
> HMSPathsDumper has useless code
> -------------------------------
>
> Key: SENTRY-1659
> URL: https://issues.apache.org/jira/browse/SENTRY-1659
> Project: Sentry
> Issue Type: Bug
> Components: Sentry
> Reporter: Alexander Kolbasov
> Assignee: kalyan kumar kalvagadda
> Priority: Minor
> Labels: bite-sized, newbie
>
> The HMSPathsDumper class has the following code:
> {code}
> if (child.getAuthzObjs().size() != 0) {
> for (String authzObj: child.getAuthzObjs()) {
> Set<Entry> paths = authzObjToPath.get(authzObj);
> if (paths == null) {
> paths = new HashSet<Entry>();
> }
> paths.add(child);
> }
> }
> {code}
> Note that local var paths is created inside the loop and never used, so this
> piece of code is completely useless.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)