Sho SHIMIZU
Committed by Gerrit Code Review

Simplify non-equality comparison

Change-Id: Ida65c27d199ccf392fd3775b693885e5f68331cb
...@@ -155,7 +155,7 @@ public class OpticalPathProvisioner { ...@@ -155,7 +155,7 @@ public class OpticalPathProvisioner {
155 // TODO change the coordination approach between packet intents and optical intents 155 // TODO change the coordination approach between packet intents and optical intents
156 // Low speed LLDP may cause multiple calls which are not expected 156 // Low speed LLDP may cause multiple calls which are not expected
157 157
158 - if (!IntentState.FAILED.equals(intentService.getIntentState(intent.key()))) { 158 + if (intentService.getIntentState(intent.key()) != IntentState.FAILED) {
159 return; 159 return;
160 } 160 }
161 161
......