#89 white space before )

release_3.1
closed
nobody
None
9
2012-10-10
2002-07-19
Anonymous
No

if you think about Iterators and Enumeration there are
often blocks like

<code>
for (Iterator i = c.iterator(); i.hasNext(); ) {
...
}
</code>

In my opinion there should be a white space before
the ). On the other hand there should be no whitespace
before and after parantheses in method declaration and
calls.

So what I am asking for is, if you could make
checkstyle more flexible, so that it could be configured
where whitespace should be and where not.

Discussion

  • Oliver Burn

    Oliver Burn - 2003-01-09

    Logged In: YES
    user_id=218824

    I agree this case should be handled by Checkstyle. It has
    been requested a lot of time.

     
  • Oliver Burn

    Oliver Burn - 2003-04-10

    Logged In: YES
    user_id=218824

    implemented by EmptyForIteratorPadCheck and ParenPadCheck

     

Log in to post a comment.