Skip to content

fix: restore space between array type and dimension annotations#881

Merged
jtkiesel merged 1 commit into
jhipster:mainfrom
jtkiesel:fix/dimension-annotation-spacing
May 17, 2026
Merged

fix: restore space between array type and dimension annotations#881
jtkiesel merged 1 commit into
jhipster:mainfrom
jtkiesel:fix/dimension-annotation-spacing

Conversation

@jtkiesel
Copy link
Copy Markdown
Contributor

What changed with this PR:

The space between an array's type and its first dimension annotation is restored. This regression seems to have been introduced by the migration to tree-sitter, which introduced a lot of rearranging of formatting decisions, particularly with annotations.

Example

Input

int@Nullable [] array;

Output

int @Nullable [] array;

Relative issues or prs:

Closes #880

@jtkiesel jtkiesel merged commit 5a28d9b into jhipster:main May 17, 2026
6 checks passed
@jtkiesel jtkiesel deleted the fix/dimension-annotation-spacing branch May 17, 2026 16:38
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.

When formatting an annotated array type, the space before the annotation gets removed

1 participant