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.
------------- Commit messages: - [PATCH] Use String.equals instead of String.compareTo in java.desktop - [PATCH] Use String.equals instead of String.compareTo in java.desktop Changes: https://git.openjdk.java.net/jdk/pull/5751/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5751&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8274634 Stats: 15 lines in 3 files changed: 0 ins; 0 del; 15 mod Patch: https://git.openjdk.java.net/jdk/pull/5751.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/5751/head:pull/5751 PR: https://git.openjdk.java.net/jdk/pull/5751
