Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Subtask] enable BadImport error-prone #2476

Closed
Tracked by #2225
coolderli opened this issue Mar 8, 2024 · 0 comments · Fixed by #2809
Closed
Tracked by #2225

[Subtask] enable BadImport error-prone #2476

coolderli opened this issue Mar 8, 2024 · 0 comments · Fixed by #2809
Assignees
Labels
subtask Subtasks of umbrella issue

Comments

@coolderli
Copy link
Contributor

Describe the subtask

enable BadImport error-prone

https://errorprone.info/bugpattern/BadImport

Parent issue

#2225

@coolderli coolderli added the subtask Subtasks of umbrella issue label Mar 8, 2024
coolderli added a commit to coolderli/gravitino that referenced this issue Apr 5, 2024
@jerryshao jerryshao added this to the Gravitino 0.5.0 milestone Apr 7, 2024
jerryshao pushed a commit that referenced this issue Apr 7, 2024
### What changes were proposed in this pull request?

- enable BadImport error-prone
- Importing nested classes/static methods/static fields with
commonly-used names can make code harder to read, because it may not be
clear from the context exactly which type is being referred to.
Qualifying the name with that of the containing class can make the code
clearer.

### Why are the changes needed?

Fix: #2476

### Does this PR introduce _any_ user-facing change?

- no
### How was this patch tested?

- GitHub CI passed.
unknowntpo pushed a commit to unknowntpo/gravitino that referenced this issue Apr 9, 2024
### What changes were proposed in this pull request?

- enable BadImport error-prone
- Importing nested classes/static methods/static fields with
commonly-used names can make code harder to read, because it may not be
clear from the context exactly which type is being referred to.
Qualifying the name with that of the containing class can make the code
clearer.

### Why are the changes needed?

Fix: apache#2476

### Does this PR introduce _any_ user-facing change?

- no
### How was this patch tested?

- GitHub CI passed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
subtask Subtasks of umbrella issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants