Fix a potentional bug String comparison using != 17/35017/1
authorMunir Ahmad <munir.ahmad@bell.ca>
Sat, 10 Mar 2018 00:38:02 +0000 (19:38 -0500)
committerMunir Ahmad <munir.ahmad@bell.ca>
Sat, 10 Mar 2018 00:38:02 +0000 (19:38 -0500)
Change-Id: If4e3199dfb0210085e97997133a3cec83d6d99e5
Issue-ID: SO-437
Signed-off-by: Munir Ahmad <munir.ahmad@bell.ca>
bpmn/MSOCoreBPMN/src/main/java/org/openecomp/mso/bpmn/core/PropertyConfigurationSetup.java

index a1719a9..98659d2 100644 (file)
@@ -217,7 +217,7 @@ public class PropertyConfigurationSetup {
                        String newTimestamp = PropertyConfiguration.getInstance().getProperties(type)
                                .get(PropertyConfiguration.TIMESTAMP_PROPERTY);
 
-                       if (newTimestamp != oldTimestamp) {
+                       if (!newTimestamp.equals(oldTimestamp)) {
                                return;
                        }