commit | c6297368f09953947ef1f8f8a9856ffd830c6e72 | [log] [tgz] |
---|---|---|
author | Fabrice Tiercelin <fabrice.tiercelin@yahoo.fr> | Sat Feb 27 09:30:20 2021 +0100 |
committer | Fabrice Tiercelin <fabrice.tiercelin@yahoo.fr> | Sat Mar 13 12:29:34 2021 +0100 |
tree | e818de5c7021a9cbf1a62a95b996a54435a0b7f5 | |
parent | 1f92cf62ede22f70fe3791213b3ea05f1093c582 [diff] |
Bug 571040 - [cleanup] Improve "Use String.replace() ..." cleanup Improve the "Use String.replace() instead of String.replaceAll() when possible" cleanup - to apply it also when there are escaped meta chars in the regex and/or the replacement, - to use chars when both arguments are Strings of length 1 and - to handle Pattern.quote() and Matcher.quoteReplacement() Examples: s.replaceAll("\\.", "<\e\\\ \\&>") => s.replace(".", "<\\ &>") s.replaceAll("\\.", "/") => s.replace('.', '/') s.replaceAll(Pattern.quote(a), Matcher.quoteReplacement(b)) => s.replace(a, b) The preview has been adapted to cover these improvements. More tests have been added and also the preview has been added to the tests. Property-based jqwik tests creating 20,100,000 random samples to back up the verification of the correctness of the toPlainString() method has been attached to the bug report (these tests are too slow to be run as regular tests): https://bugs.eclipse.org/bugs/attachment.cgi?id=285626 Change-Id: Ia9320494b77a972d19757bdfd6914b42b9911491 Signed-off-by: Holger Voormann <eclipse@voormann.de>
Thanks for your interest in this project.
The JDT UI implements the user interface for the Java IDE. This includes views like Package Explorer and JUnit, the Java and properties files editors, Java search, and refactorings. Website: http://www.eclipse.org/jdt/ui/
Contributions to JDT UI are most welcome. There are many ways to contribute, from entering high quality bug reports, to contributing code or documentation changes. For a complete guide, see the [How to Contribute] 1 page on the team wiki.
Information regarding source code management, builds, coding standards, and more.
Before your contribution can be accepted by the project, you need to create and electronically sign the Eclipse Foundation Contributor License Agreement (CLA).
Public forum for Eclipse JDT users.
This project uses Bugzilla to track ongoing development and issues.
Be sure to search for existing bugs before you create another one. Remember that contributions are always welcome!
Contact the project developers via the project's “dev” list.