[BUILD-88] Allow annotations at package level in checkstyle rules Created: 24/Jan/12  Updated: 13/Apr/17  Resolved: 27/Feb/12

Status: Closed
Project: Build
Component/s: Build Tools, Poms
Affects Version/s: POMs 19
Fix Version/s: Build Tools 1.5.10, POMs 21

Type: Bug Priority: Neutral
Reporter: Eric Hechinger Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty

 Description   

When package-info.java contains annotations before the package declaration, the current rules fail, since we explicitly expect a package declaration after the license header.
Since Checkstyle doesn't seem to differentiate between actual java sources and package-info, we could relax the regexp for header checks, and let is pass with annotations as well.


Generated at Sun Feb 11 23:38:38 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.