src/java.desktop/unix/classes/sun/awt/X11/XDecoratedPeer.java
changeset 54871 c2e4aef5edf2
parent 47216 71c04702a3d5
--- a/src/java.desktop/unix/classes/sun/awt/X11/XDecoratedPeer.java	Tue May 07 11:52:28 2019 -0700
+++ b/src/java.desktop/unix/classes/sun/awt/X11/XDecoratedPeer.java	Tue May 07 18:18:54 2019 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -208,7 +208,7 @@
     }
 
     protected String getWMName() {
-        if (winAttr.title == null || winAttr.title.trim().equals("")) {
+        if (winAttr.title == null || winAttr.title.trim().isEmpty()) {
             return " ";
         } else {
             return winAttr.title;
@@ -220,7 +220,7 @@
         try {
             super.updateWMName();
             String name = getWMName();
-            if (name == null || name.trim().equals("")) {
+            if (name == null || name.trim().isEmpty()) {
                 name = "Java";
             }
             XAtom iconNameAtom = XAtom.get(XAtom.XA_WM_ICON_NAME);