Issue #19734: Added checks for OpenJDK Style §3.3.1 - Wildcard Imports#19735
Conversation
|
@vivek-0509 please review |
|
|
||
| import java.util.*; // violation '.*form of import should be avoided.*' | ||
| import static java.lang.Math.*; // violation '.*form of import should be avoided.*' | ||
|
|
There was a problem hiding this comment.
Using the '.*' form of import should be avoided
use this as violation message and do not put .* at last, also do add more imports in this that are not star imports
|
|
||
| @Test | ||
| public void avoidStarImportValidTest() throws Exception { | ||
| verifyWithWholeConfig(getPath("InputWildcardImportsValid.java")); | ||
| } |
There was a problem hiding this comment.
we do not need this, rather add valid imports in the same file which has star imports take reference from google style
b5989f3 to
2b6fdfb
Compare
|
@vivek-0509 please review |
|
Github, generate website |
vivek-0509
left a comment
There was a problem hiding this comment.
LGTM
@romani Please take a look
romani
left a comment
There was a problem hiding this comment.
blocking this as start imports are allowed and Check need to be improved before used in this style guide
074cd5f to
96e0a33
Compare
|
@vivek-0509 please review |
|
@vivek-0509 please review |
|
as new property is required, lets do just new property at scope of #19496 and then add it style guide in scope of this PR. I am blocking this PR until new property is added. |
|
blocker label is removed. @Anushreebasics , do you have time to finish update ? |
|
@romani thank you, I will finish it |
|
@Aman-Baliyan pls review |
|
Last one : Plese fix this ci failure -> |
|
And make a single commit |
9effe99 to
d3e2395
Compare
|
@Aman-Baliyan pls review |
b1ca21c to
4051606
Compare
|
@Aman-Baliyan pls review the changes |
f37c0c4 to
c3b0a69
Compare
|
@romani ping |
|
Github, generate site |
|
@Aman-Baliyan could you pls help me resolve this CI failure: |
this ci failure is not from your pr it is something else |
|
@romani pls merge this PR |
|
@romani ping |
fixes #19734
Implements OpenJDK Style §3.3.1 (Wildcard Imports) for issue #19734.
This PR adds AvoidStarImport to OpenJDK config, updates OpenJDK style coverage docs, and adds integration tests for both regular and static wildcard imports.
Parent umbrella issue: #19604