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

Enhance StringBuffer/StringBuilder to text block cleanup/quickfix #1842

Merged
merged 1 commit into from
Dec 7, 2024

Conversation

jjohnstn
Copy link
Contributor

@jjohnstn jjohnstn commented Dec 6, 2024

What it does

See issue. Allows conversion of more tests to use text block.

How to test

Run clean up on file mentioned in issue or see new tests.

Author checklist

- modify StringConcatToTextBlockFixCore to support the case where the
  StringBuilder/StringBuffer is passed as an argument and in that
  case do not replace the StringBuilder/StringBuffer but change it
  to initialize with a text block
- add new tests to AssistQuickFixTest15 and CleanUpTest15
- fixes eclipse-jdt#1841
@jjohnstn jjohnstn added the enhancement New feature or request label Dec 6, 2024
@jjohnstn jjohnstn added this to the 4.35 M1 milestone Dec 6, 2024
@jjohnstn jjohnstn self-assigned this Dec 6, 2024
@jjohnstn
Copy link
Contributor Author

jjohnstn commented Dec 7, 2024

Test failure has nothing to do with changes made and works locally.

@jjohnstn jjohnstn merged commit 77f5098 into eclipse-jdt:master Dec 7, 2024
7 of 10 checks passed
@jjohnstn jjohnstn deleted the newtextblock branch December 7, 2024 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant