fix ServiceHandler Bug 50/83750/2
authorguillaume.lambert <guillaume.lambert@orange.com>
Mon, 19 Aug 2019 09:42:20 +0000 (11:42 +0200)
committerguillaume.lambert <guillaume.lambert@orange.com>
Mon, 19 Aug 2019 12:24:16 +0000 (14:24 +0200)
introduced in previous commit

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Iea9773d9ce223de29f0f677cd833efe735918be5

servicehandler/src/main/java/org/opendaylight/transportpce/servicehandler/listeners/PceListenerImpl.java
servicehandler/src/main/java/org/opendaylight/transportpce/servicehandler/listeners/RendererListenerImpl.java

index 2a4b5a43ccb0c54ea592ef7e59212ccaa345c684..5f96340cf0fc7cafcb13972edb4dc7a4de7756db 100644 (file)
@@ -168,13 +168,13 @@ public class PceListenerImpl implements TransportpcePceListener {
             if (servicePathRpcResult.getNotificationType() != notification.getNotificationType()) {
                 result = false;
             }
-            if (!servicePathRpcResult.getServiceName().equals(notification.getServiceName())) {
+            if (servicePathRpcResult.getServiceName() != notification.getServiceName()) {
                 result = false;
             }
             if (servicePathRpcResult.getStatus() != notification.getStatus()) {
                 result = false;
             }
-            if (!servicePathRpcResult.getStatusMessage().equals(notification.getStatusMessage())) {
+            if (servicePathRpcResult.getStatusMessage() != notification.getStatusMessage()) {
                 result = false;
             }
         }
index 601d5402f499da46c305fbab17cfce9e4711b972..6a4a199358d520059afab10b4bef3f1792ca36eb 100644 (file)
@@ -126,13 +126,13 @@ public class RendererListenerImpl implements TransportpceRendererListener {
             if (serviceRpcResultSp.getNotificationType() != notification.getNotificationType()) {
                 result = false;
             }
-            if (!serviceRpcResultSp.getServiceName().equals(notification.getServiceName())) {
+            if (serviceRpcResultSp.getServiceName() != notification.getServiceName()) {
                 result = false;
             }
             if (serviceRpcResultSp.getStatus() != notification.getStatus()) {
                 result = false;
             }
-            if (!serviceRpcResultSp.getStatusMessage().equals(notification.getStatusMessage())) {
+            if (serviceRpcResultSp.getStatusMessage() != notification.getStatusMessage()) {
                 result = false;
             }
         }