apache / apache/gravitino

[Improvement] Possible incorrect comparison in RangerAuthorizationHDFSPlugin

Open
#7,586 8 comments 0 reactions 1 assignee Assigned to @kdkrkwhr View on GitHub
good first issue improvement
Dominant language
Java
Stars
3.2k
Forks
935
Avg merge
1d 16h
Merged PRs (30d)
298

Description

### What would you like to be improved?

This code looks to be incorrect:
```
Preconditions.checkArgument(
authzMetadataObject.type()
== PathBasedMetadataObject.PathType.get(MetadataObject.Type.SCHEMA),
``

### How should we improve?

Should use .equals rather than ==?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.