#599 GenericWhitespace does not handle square brackets

release_5.0
closed
Oliver Burn
5
2013-11-10
2010-01-22
Dmitriy Beryoza
No

The following piece of code is not accepted by rule GenericWhitespace and there seems to be no workaround short of disabling the check:

HashMap<Integer, List<String>[]> x;

The check complains that there is whitespace after the first '>'. Any suggestions or a possible workaround would be appreciated.

Discussion

  • Roman Ivanov
    Roman Ivanov
    2013-11-10

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,5 +1,7 @@
     The following piece of code is not accepted by rule GenericWhitespace and there seems to be no workaround short of disabling the check:
    
    +~~~~~~
     HashMap<Integer, List<String>[]> x;
    +~~~~~~
    
     The check complains that there is whitespace after the first '>'. Any suggestions or a possible workaround would be appreciated.
    
     
  • Roman Ivanov
    Roman Ivanov
    2013-11-10

    • status: open --> closed