CoverityFix-CID:1350971 Questionable use of reference 27/20227/3
Nimish Kapoor [Fri, 6 Jul 2018 16:54:25 +0000 (21:54 +0530)]
Change-Id: I1eb25a518752207369ae72afb9e69e45fdb6b9dc

scilab/modules/graphic_objects/src/java/org/scilab/modules/graphic_objects/xmlloader/XmlLoader.java

index ce5f018..9824e45 100644 (file)
@@ -366,15 +366,15 @@ public class XmlLoader extends DefaultHandler {
                     controller.setProperty(newGo, __GO_UI_FRAME_BORDER__, newChild);
                 } else { //__GO_UI_FRAME_BORDER__
                     Integer border = (Integer) controller.getProperty(root, __GO_UI_FRAME_BORDER_TITLE__);
-                    if (border == children[i]) {
+                    if (border.equals(children[i])) {
                         controller.setProperty(newGo, __GO_UI_FRAME_BORDER_TITLE__, newChild);
                     } else {
                         border = (Integer) controller.getProperty(root, __GO_UI_FRAME_BORDER_OUT_BORDER__);
-                        if (border == children[i]) {
+                        if (border.equals(children[i])) {
                             controller.setProperty(newGo, __GO_UI_FRAME_BORDER_OUT_BORDER__, newChild);
                         } else {
                             border = (Integer) controller.getProperty(root, __GO_UI_FRAME_BORDER_OUT_BORDER__);
-                            if (border == children[i]) {
+                            if (border.equals(children[i])) {
                                 controller.setProperty(newGo, __GO_UI_FRAME_BORDER_OUT_BORDER__, newChild);
                             }
                         }