On Wed, 29 Sep 2021 13:27:32 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: 6726c592
Author:    Andrey Turbanov <[email protected]>
Committer: Pankaj Bansal <[email protected]>
URL:       
https://git.openjdk.java.net/jdk/commit/6726c592ed01b112f5eb85d8f1e4406b25c8df2b
Stats:     15 lines in 3 files changed: 0 ins; 0 del; 15 mod

8274634: Use String.equals instead of String.compareTo in java.desktop

Reviewed-by: serb, pbansal

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

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

Reply via email to