On Fri, 17 Sep 2021 15:46:51 GMT, Andrey Turbanov <[email protected]> wrote:
> String.contains was introduced in Java 5. > Some code in java.desktop still uses old approach with String.indexOf to > check if String contains specified substring. > I propose to migrate such usages. Makes code shorter and easier to read. This pull request has now been integrated. Changeset: 9759fcb1 Author: Andrey Turbanov <[email protected]> Committer: Pankaj Bansal <[email protected]> URL: https://git.openjdk.java.net/jdk/commit/9759fcb17b62d76d75b893481bbd4ef45e7ad366 Stats: 58 lines in 10 files changed: 0 ins; 6 del; 52 mod 8274496: Use String.contains() instead of String.indexOf() in java.desktop Reviewed-by: pbansal, serb ------------- PR: https://git.openjdk.java.net/jdk/pull/5565
