On Wed, 29 Sep 2021 13:34:40 GMT, Andrey Turbanov 
<[email protected]> wrote:

> In several places, String.compareTo was _compared_ with 0 ( via `== 0`).
> Instead of this, we can use String.equals calls. `String.equals` is faster 
> and shorter.

This pull request has now been integrated.

Changeset: 53d7e95b
Author:    Andrey Turbanov <[email protected]>
Committer: Sergey Bylokhov <[email protected]>
URL:       
https://git.openjdk.java.net/jdk/commit/53d7e95bc637c8b629efc4587b2ae7961d719b00
Stats:     14 lines in 2 files changed: 0 ins; 2 del; 12 mod

8274635: Use String.equals instead of String.compareTo in jdk.accessibility

Reviewed-by: serb

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

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

Reply via email to