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

[sony] Checkstyle Invalid Token #4816

Closed
tmrobert8 opened this issue Feb 6, 2019 · 1 comment
Closed

[sony] Checkstyle Invalid Token #4816

tmrobert8 opened this issue Feb 6, 2019 · 1 comment

Comments

@tmrobert8
Copy link

tmrobert8 commented Feb 6, 2019

I'm updating the sony addon and ran into an issue with checkstyle. If you have the following method definition:

protected ScalarWebChannel createChannel(String name, String @Nullable... addtlPaths) {
//code here
}

Checkstyle will start giving you a bunch of unexpected token messages (on various lines of code) and will eventually fail with "expecting EOF but found ..." (where ... is whatever code it eventually landed on).

The issue is the "@nullable..." - removing the @nullable from it fixes checkstyle. Apparently didn't expect a token combination like that..

EDIT: appears to be in this thread: checkstyle/checkstyle#3238

@davidgraeff davidgraeff changed the title Checkstyle Invalid Token [sony] Checkstyle Invalid Token Feb 12, 2019
@davidgraeff
Copy link
Member

Hm. I think the repository is wrong to report this.

You would rather report this in https://github.com/openhab/static-code-analysis.

But we do not have any influence on the checkstyle implementation and need to wait for those guys to fix it. Closing this now.

Thanks for the report though.

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

No branches or pull requests

2 participants