#468 Whitespace around ":" operator also affects for-each loops

SVN_Head
closed
5
2012-10-10
2007-01-31
Torsten Marek
No

Hi,

if I activate to check for whitespace around each ":" operator in inline conditionals, this rule will also be applied to colons in for each loops, ie this code will also receive a complaint:

for(String a: listOfString) {
...
}

Maybe some people want whitespace around the colon here, but it should be a separate option then.

best regards,

Torsten

Discussion

  • Torsten Marek
    Torsten Marek
    2007-02-01

    Logged In: YES
    user_id=603402
    Originator: YES

    Hi again,

    the same applies to ? as wildcards for generics.

    private Class<? extends IESPFileStore> fileStoreClass; // Complaint: should have whitespace before ?

     
  • Torsten Marek
    Torsten Marek
    2007-03-19

    Logged In: YES
    user_id=603402
    Originator: YES

    Discard the last comment, I didn't find the config option.

     
  • Fixed by adding ignoreEnhancedForColon property to the check