Skip to content

Conversation

@ptziegler
Copy link
Contributor

Use String.substring() using the length of the string to remove. Note that this requires an additional check to make sure the string actually starts with the given sequence.

@ptziegler ptziegler added this to the 1.22.0 milestone Sep 30, 2025
Use String.substring() using the length of the string to remove. Note
that this requires an additional check to make sure the string actually
starts with the given sequence.

Where appropriate, String.replaceFirst() is used to combine the prefix
check and removal into a single line.
@ptziegler ptziegler force-pushed the stringutils-replace-removeStart branch from 984a1c7 to 813fd5c Compare September 30, 2025 19:17
@github-actions
Copy link

Test Results

 2 720 files  ±0   2 720 suites  ±0   10h 7m 14s ⏱️ + 5m 57s
 6 992 tests ±0   6 933 ✅ ±0   59 💤 ±0  0 ❌ ±0 
27 968 runs  ±0  27 732 ✅ ±0  236 💤 ±0  0 ❌ ±0 

Results for commit 813fd5c. ± Comparison against base commit 9644966.

@ptziegler ptziegler merged commit 2c6af51 into eclipse-windowbuilder:master Sep 30, 2025
9 checks passed
@ptziegler ptziegler deleted the stringutils-replace-removeStart branch September 30, 2025 20:01
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