Skip to content

Comments

Remove allow static imports for unrelocated Preconditions#4543

Merged
rdblue merged 1 commit intoapache:masterfrom
findepi:findepi/remove-allow-static-imports-for-unrelocated-preconditions-e2fb0e
Apr 12, 2022
Merged

Remove allow static imports for unrelocated Preconditions#4543
rdblue merged 1 commit intoapache:masterfrom
findepi:findepi/remove-allow-static-imports-for-unrelocated-preconditions-e2fb0e

Conversation

@findepi
Copy link
Member

@findepi findepi commented Apr 12, 2022

BanUnrelocatedGuavaClasses requires that Preconditions are imported
from a relocated package, so allowing static imports for unrelocated
Preconditions is not useful.

`BanUnrelocatedGuavaClasses` requires that `Preconditions` are imported
from a relocated package, so allowing *static* imports for unrelocated
`Preconditions` is not useful.
Copy link
Contributor

@kbendick kbendick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, especially if tests are passing. Thanks @findepi.

I couldn't find anywhere that a static import for this was included already.

@rdblue rdblue merged commit 014eb78 into apache:master Apr 12, 2022
@rdblue
Copy link
Contributor

rdblue commented Apr 12, 2022

Thanks, @findepi!

@findepi findepi deleted the findepi/remove-allow-static-imports-for-unrelocated-preconditions-e2fb0e branch April 13, 2022 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants