-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
checkstyle 10.3.3 and newer throws NullPointerException on annotated generic types from IllegalType rule #12443
Comments
This issue is tied to #12017 and commits 3080013 and 01b7de6 and PRs #12034 and #12035. Rationale was It appears it was not taken into account to have an extra comma on the end with an empty space. There is no exception if there is just an extra comma. The exception comes in when there is a space after the comma. It is not user friendly to throw an exception. I think we should restore the code and drop the remaining empty item. |
We should restore trim. Example: #12258 |
On it |
…th trailing whitespace
…th trailing whitespace
…th trailing whitespace
…th trailing whitespace
…th trailing whitespace
…th trailing whitespace
Fix is merged |
… for CheckStyle, to work around checkstyle/checkstyle#12443.
I minimized my repro to narrow down the cause.
The config:
❯ /bin/cat checkstyle-configuration.xml
The code:
❯ cat ExampleClass.java
Note that any little change to the config file prevents this problem. Even getting rid of the trailing comma or space at the end of StringBuffer in
<property name="illegalClassNames" value="java.lang.StringBuffer, " />
prevents the problem.The text was updated successfully, but these errors were encountered: