Skip to content

fix: break annotations on module declarations - #1146

Merged
jtkiesel merged 1 commit into
jhipster:mainfrom
jtkiesel:fix/break-annotations-on-modules
Nov 15, 2026
Merged

jtkiesel merged 1 commit into
jhipster:mainfrom
jtkiesel:fix/break-annotations-on-modules

Conversation

@jtkiesel

Copy link
Copy Markdown
Contributor

What changed with this PR:

Annotations on module declarations are broken onto their own lines, similar to those on classes.

Example

Input

@Annotation module m {
  requires a;
}

@SuppressWarnings("x") // note
module m {
  requires a;
}

Output

@Annotation
module m {
  requires a;
}

@SuppressWarnings("x") // note
module m {
  requires a;
}

Relative issues or prs:

Closes #1145

@jtkiesel
jtkiesel force-pushed the fix/break-annotations-on-modules branch from a86455f to 7fd83ba Compare November 15, 2026 21:33
@jtkiesel
jtkiesel merged commit 61f060c into jhipster:main Nov 15, 2026
6 checks passed
@jtkiesel
jtkiesel deleted the fix/break-annotations-on-modules branch November 15, 2026 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Line comment after module annotation moves into module body and formatting is not idempotent

1 participant