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 StringBuffer to text block clean-up when constructed with String #1268

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

jjohnstn
Copy link
Contributor

  • fix StringConcatToTextBlockFixCore.StringBufferFinder() to fail if a StringBuffer/StringBuilder constructor is used and isn't passed a StringLiteral or a NumberLiteral or an InfixExpression of StringLiterals concatenated
  • add new tests to CleanUpTest15

What it does

Fixes StringBuffer to text block when a non-String-literal is passed to constructor.

How to test

See original issue or new tests.

Author checklist

- fix StringConcatToTextBlockFixCore.StringBufferFinder() to fail
  if a StringBuffer/StringBuilder constructor is used and isn't
  passed a StringLiteral or a NumberLiteral or an InfixExpression
  of StringLiterals concatenated
- add new tests to CleanUpTest15
@jjohnstn jjohnstn self-assigned this Mar 18, 2024
@jjohnstn jjohnstn added the bug Something isn't working label Mar 18, 2024
@jjohnstn jjohnstn added this to the 4.32 M1 milestone Mar 18, 2024
@jjohnstn jjohnstn merged commit 26487e2 into eclipse-jdt:master Mar 18, 2024
9 checks passed
@jjohnstn jjohnstn deleted the textblockbug8 branch March 18, 2024 20:56
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.

1 participant