Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#685 Incorrectly identifing method call child

SVN_Head
closed
nobody
1
2014-03-10
2012-10-30
Adrian
No

Checkstyle incorrectly identifies the last line of the following as an incorrectly indented method call child:

ArrayList<String[]> s = new ArrayList<String[]>();
...
s.get(1)[3] = "blah";

This generate the error:
[cs:checkstyle] Test.java:10: method call child at indentation level 4 not at correct indentation, 6

It will not complain if the call to the get method is bracketed, ie;

(s.get(1))[3] = "blah";

I have attached a minimum test case to reproduce the bug.

1 Attachments

Discussion

  • Adrian
    Adrian
    2012-10-30

    Oops this is a duplicate of bug #518 which i found after creating this ticket, sorry about that

     
  • Roman Ivanov
    Roman Ivanov
    2013-10-26

    • status: open --> closed