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

"'extends' is followed by whitespace" error thrown in 6.3 #931

Closed
athrog opened this issue Apr 14, 2015 · 1 comment
Closed

"'extends' is followed by whitespace" error thrown in 6.3 #931

athrog opened this issue Apr 14, 2015 · 1 comment
Labels
Milestone

Comments

@athrog
Copy link

athrog commented Apr 14, 2015

Running checkstyle against this example method:

public void foo(List<? extends String[]> bar) { }

results in this error:

Example.java:5:33: 'extends' is followed by whitespace.

Looks like this was introduced in 6.3:

$ java -jar checkstyle-6.2-all.jar -c checkstyle.xml src/Example.java 
Starting audit...
Audit done.
$ java -jar checkstyle-6.3-all.jar -c checkstyle.xml src/Example.java 
Starting audit...
Example.java:5:33: 'extends' is followed by whitespace.
Audit done.

My configuration looks like this:

<module name="Checker">
    <module name="TreeWalker">
        <module name="NoWhitespaceAfter"/>
    </module>
</module>

I looked at the docs to see if there is a way to workaround this, but I couldn't find a way to exclude the 'extends' keyword from this module.

@romani
Copy link
Member

romani commented Apr 19, 2015

merged.

@romani romani closed this as completed Apr 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants