Skip to content

JAVA-3089: Forbid wildcard imports#1680

Merged
hhughes merged 1 commit into4.xfrom
JAVA-3089
Jul 14, 2023
Merged

JAVA-3089: Forbid wildcard imports#1680
hhughes merged 1 commit into4.xfrom
JAVA-3089

Conversation

@hhughes
Copy link
Contributor

@hhughes hhughes commented Jul 12, 2023

No description provided.

<compilerArg>-Xep:FutureReturnValueIgnored:OFF</compilerArg>
<compilerArg>-Xep:PreferJavaTimeOverload:OFF</compilerArg>
<compilerArg>-Xep:AnnotateFormatMethod:OFF</compilerArg>
<compilerArg>-Xep:WildcardImport:WARN</compilerArg>
Copy link
Contributor

Choose a reason for hiding this comment

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

Does a "WARN" result actually fail the build or do we need to go to "ERROR" for that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It does - we're configuring maven-compiler-plugin with <failOnWarning>true</failOnWarning> (and this is how I found the violations fixed along with this change :) )

@hhughes
Copy link
Contributor Author

hhughes commented Jul 14, 2023

Test failure unrelated

@hhughes hhughes merged commit 9d891b1 into 4.x Jul 14, 2023
@hhughes hhughes deleted the JAVA-3089 branch July 26, 2023 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants