Skip to content

java formatter default indention was 2 spaces and is 4 spaces with the new version. #1498

@leratc

Description

@leratc

Hello,

On the generated java objects, the default indentation was containing 2 spaces, and since 2.0 we get 4 spaces.
Do we have a way to control the java formatting to comply with the rest of the project?

This is a small detail, i do not see any reason for not keeping 2 spaces indentation.

Another more complex approach would be to add a step to launch through maven the current eclipse formatter on the generated code in order to automate the CTRL+F on each generated java file.
We could add also an option like useFormatterPlugin=true and apply this plugin formatter-maven-plugin on the generated java class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions