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

dogfooding - Convert String concatenation to Text Block #1536

Conversation

carstenartur
Copy link
Contributor

This is a run of the "Convert String concatenation to Text Block" cleanup without the option for "Stringbuffer" on jdt.ui (only runtime modules, no test code). With the "Stringbuffer" option we run into some errors unfortunately, there is a bug.
Since the JDT UI modules now are higher than Java 15 we can make use of it.

What it does

By using text blocks the code gets more readable and the formating characters like return get translated.

How to test

Nothing should be changed because of this. Tests should run through as before and everywhere you should see Strings in the same way as before. Just check an arbitrary text block where it appears in the resulting ice.

Author checklist

@carstenartur carstenartur marked this pull request as ready for review July 25, 2024 12:14
@carstenartur carstenartur force-pushed the Convert_String_concatenation_to_Text_Block branch 2 times, most recently from e6bfe92 to d799b8c Compare July 31, 2024 04:51
@carstenartur carstenartur force-pushed the Convert_String_concatenation_to_Text_Block branch 2 times, most recently from 7977acf to c5589fb Compare August 9, 2024 06:05
@carstenartur carstenartur force-pushed the Convert_String_concatenation_to_Text_Block branch from c5589fb to a44b9be Compare August 14, 2024 08:02
@carstenartur carstenartur force-pushed the Convert_String_concatenation_to_Text_Block branch from a44b9be to fa677a2 Compare September 4, 2024 16:47
@carstenartur carstenartur force-pushed the Convert_String_concatenation_to_Text_Block branch from fa677a2 to dae414f Compare September 5, 2024 02:34
@jjohnstn
Copy link
Contributor

jjohnstn commented Sep 6, 2024

Looks good.

@jjohnstn jjohnstn merged commit 6ed1c9f into eclipse-jdt:master Sep 6, 2024
9 checks passed
@jjohnstn jjohnstn self-assigned this Sep 6, 2024
@jjohnstn jjohnstn added the enhancement New feature or request label Sep 6, 2024
@jjohnstn jjohnstn added this to the 4.34 M1 milestone Sep 6, 2024
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
Development

Successfully merging this pull request may close these issues.

2 participants