Skip to content

fix: prevent wrapping of annotated catch parameters#897

Merged
jtkiesel merged 1 commit into
jhipster:mainfrom
jtkiesel:fix/catch-parameter-annotations
May 20, 2026
Merged

fix: prevent wrapping of annotated catch parameters#897
jtkiesel merged 1 commit into
jhipster:mainfrom
jtkiesel:fix/catch-parameter-annotations

Conversation

@jtkiesel
Copy link
Copy Markdown
Contributor

@jtkiesel jtkiesel commented May 19, 2026

What changed with this PR:

Annotations on catch clause parameters no longer wrap.

Example

Input

try {
} catch (
  @What
  Exception e
) {
}

Output

try {
} catch (@What Exception e) {}

Relative issues or prs:

Closes #885

@jtkiesel jtkiesel merged commit aae1a35 into jhipster:main May 20, 2026
6 checks passed
@jtkiesel jtkiesel deleted the fix/catch-parameter-annotations branch May 20, 2026 00:07
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.

[2.9.2] Regression with annotation placement

1 participant