CoverityFix-CID:1350905 Checking String equality using == or != 37/20237/3
Nimish Kapoor [Sun, 8 Jul 2018 18:06:44 +0000 (23:06 +0530)]
Change-Id: Id24d5a27f6ac20d64640ba751210eb7ff9cc29c2

scilab/modules/preferences/src/java/org/scilab/modules/preferences/Component/Checkbox.java

index 3d347bd..2ec81c5 100644 (file)
@@ -106,7 +106,7 @@ public class Checkbox extends SwingScilabCheckBox implements XComponent, XChoose
      * @param text : the attribute value.
      */
     public final void text(final String text) {
-        if (text != XConfigManager.NAV) {
+        if (!text.equals(XConfigManager.NAV)) {
             setText(text);
         } else {
             setText(null);