On Wed, 1 Jun 2022 07:52:50 GMT, Andrey Turbanov <aturba...@openjdk.org> wrote:

> `String.contains` was introduced in Java 5.
> Some code in jdk.hotspot.agent 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: 26048ea2
Author:    Andrey Turbanov <aturba...@openjdk.org>
URL:       
https://git.openjdk.java.net/jdk/commit/26048ea21e0da6505d8452bd33a4d37b1bd5ce74
Stats:     19 lines in 4 files changed: 0 ins; 7 del; 12 mod

8287695: Use String.contains() instead of String.indexOf() in jdk.hotspot.agent

Reviewed-by: cjplummer

-------------

PR: https://git.openjdk.java.net/jdk/pull/8966

Reply via email to