Refactor code after Chlorine Bump
[transportpce.git] / tapi / src / main / java / org / opendaylight / transportpce / tapi / connectivity / ConnectivityUtils.java
index cbfbbf4b10aea67a04684df0bc175fcecb9487cc..54df3b71954e93df3db31982b02536e08cf1db16 100644 (file)
@@ -1648,8 +1648,7 @@ public final class ConnectivityUtils {
                 .build()));
         if (serviceFormat.equals(ServiceFormat.ODU)) {
             serviceAEndBuilder.setOduServiceRate(ODU4.VALUE);
-        }
-        if (serviceFormat.equals(ServiceFormat.OTU)) {
+        } else if (serviceFormat.equals(ServiceFormat.OTU)) {
             serviceAEndBuilder.setOtuServiceRate(OTU4.VALUE);
         }
         if (!serviceLayer.equals(LayerProtocolName.ETH)) {
@@ -1773,4 +1772,4 @@ public final class ConnectivityUtils {
         }
         return openroadmNodeTypeList.get(0);
     }
-}
\ No newline at end of file
+}