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

Fix concat to MessageFormat and String.format #1423

Merged
merged 2 commits into from
Jun 7, 2024

Conversation

jjohnstn
Copy link
Contributor

  • fix ConvertToMessageFormatFixCore and ConvertToStringFormatFixCore to refine the logic for determining when to use a text block vs a single line - logic now only uses text block if there are 3 or more lines used in the concatenation AND the number of string literal characters is greater than 80
  • modify existing tests and add new tests to AssistQuickFixTest15
  • fixes Quickfix: Text block used for single line string if split into multiple arguments #1406

What it does

See commit message.

How to test

See issue or new tests.

Author checklist

@jjohnstn jjohnstn self-assigned this May 23, 2024
@jjohnstn jjohnstn added the bug Something isn't working label May 23, 2024
@jjohnstn jjohnstn added this to the 4.33 M1 milestone May 23, 2024
- fix ConvertToMessageFormatFixCore and ConvertToStringFormatFixCore
  to refine the logic for determining when to use a text block vs
  a single line - logic now only uses text block if there are 3 or
  more lines used in the concatenation AND the number of string literal
  characters is greater than 80
- modify existing tests and add new tests to AssistQuickFixTest15
- fixes eclipse-jdt#1406
@jjohnstn jjohnstn merged commit 048557e into eclipse-jdt:master Jun 7, 2024
9 checks passed
@jjohnstn jjohnstn deleted the formatfixes branch June 7, 2024 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Quickfix: Text block used for single line string if split into multiple arguments
1 participant