raymond-jgler / java-class-jacksonizer

A tool to bulk annotate existing constructor with given annotations, or to add a default constructor to Java classes if without.
MIT License
3 stars 0 forks source link

[WHEN-USE-EXISTING-CONSTRUCTOR-CODE] - Remove Redundant White Spaces Between Param's Type And Name #31

Closed raymond-jgler closed 10 months ago

raymond-jgler commented 10 months ago

This issue is a follow-up to Issue #29 .

Issue

When the class has good and existing constructor code, but spacing is redundant. For example:

image

or even edgier : image

Then when execute, array index out of bound error occurred and it didn't reformat the spaces:

image
raymond-jgler commented 10 months ago

remote tracking branch is at : 31-when-use-existing-constructor-code-remove-redundant-white-spaces-between-params-type-and-name,

the tip of this branch has the initial commit to reproduce the issue.

git command : git fetch origin && git checkout 31-when-use-existing-constructor-code-remove-redundant-white-spaces-between-params-type-and-name