Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#319 Indentation gets confused by enums with methods

release_4.0
closed
5
2012-10-10
2005-05-02
Paul Holser
No

The attached file, when run through checkstyle with the
Indentation module, yields the following:

C:\java\jaggregate\src\jaggregate\EquivalenceTester.java:22:
method def modifier at indentation level 8 not at
correct indentation, 4
C:\java\jaggregate\src\jaggregate\EquivalenceTester.java:23:
method def child at indentation level 12 not at correct
indentation, 8
C:\java\jaggregate\src\jaggregate\EquivalenceTester.java:24:
method def rcurly at indentation level 8 not at correct
indentation, 4
C:\java\jaggregate\src\jaggregate\EquivalenceTester.java:29:
method def modifier at indentation level 8 not at
correct indentation, 4
C:\java\jaggregate\src\jaggregate\EquivalenceTester.java:30:
method def child at indentation level 12 not at correct
indentation, 8
C:\java\jaggregate\src\jaggregate\EquivalenceTester.java:31:
method def rcurly at indentation level 8 not at correct
indentation, 4
C:\java\jaggregate\src\jaggregate\EquivalenceTester.java:41:
method def modifier at indentation level 8 not at
correct indentation, 4
C:\java\jaggregate\src\jaggregate\EquivalenceTester.java:42:
method def child at indentation level 12 not at correct
indentation, 8
C:\java\jaggregate\src\jaggregate\EquivalenceTester.java:43:
method def rcurly at indentation level 8 not at correct
indentation, 4
C:\java\jaggregate\src\jaggregate\EquivalenceTester.java:48:
method def modifier at indentation level 8 not at
correct indentation, 4
C:\java\jaggregate\src\jaggregate\EquivalenceTester.java:49:
method def child at indentation level 12 not at correct
indentation, 8
C:\java\jaggregate\src\jaggregate\EquivalenceTester.java:50:
method def rcurly at indentation level 8 not at correct
indentation, 4

Would like to be able to configure checkstyle such that
the attached file's formatting is acceptable.

Discussion

  • Paul Holser
    Paul Holser
    2005-05-02

     
  • Logged In: YES
    user_id=746148

    Fix committed to CVS for 4.0