Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust defaults in java formatter #906

Merged
merged 4 commits into from
Jul 10, 2024
Merged

Adjust defaults in java formatter #906

merged 4 commits into from
Jul 10, 2024

Conversation

hazendaz
Copy link
Member

@hazendaz hazendaz commented Jun 5, 2024

No immediate need here. Reviewing the settings these seem reasonable and with the try with resources it fixes what has long been questioned on formatting as it prevents putting multiple resources on same line.

hazendaz added 3 commits June 4, 2024 21:24
most do not appear to change anything or very little in eclipse examples.  These were defaults if creating new from java settings.  One adjustment done for try with resources to split lines which IMO has always looks wrong when it wraps.

16 values mean to wrap where necessary
81 means to wrap all except first if not necessary but to also force split (ie two resources in try will be split on separte lines)
80 means to wrap all except first if not necessary
@hazendaz hazendaz added this to the 2.25.0 milestone Jun 5, 2024
@hazendaz hazendaz self-assigned this Jun 5, 2024
@hazendaz hazendaz merged commit 40a042e into revelc:main Jul 10, 2024
12 checks passed
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.

1 participant