Migrate Optional.get() callers
[transportpce.git] / olm / src / main / java / org / opendaylight / transportpce / olm / util / OlmUtils710.java
index f7ab5c7fceff0628fe7ed8e70801b8b77deb99e6..cc842c8616177c1969dfa782ae37bd6ebe39b5e0 100644 (file)
@@ -95,7 +95,7 @@ final class OlmUtils710 {
                 LogicalDatastoreType.OPERATIONAL, iidCurrentPmList, Timeouts.DEVICE_READ_TIMEOUT,
                 Timeouts.DEVICE_READ_TIMEOUT_UNIT);
         if (currentPmListOpt.isPresent()) {
-            CurrentPmList  currentPmList = currentPmListOpt.get();
+            CurrentPmList  currentPmList = currentPmListOpt.orElseThrow();
             @NonNull
             Map<CurrentPmEntryKey, CurrentPmEntry> currentPmEntryList = currentPmList.nonnullCurrentPmEntry();
             LOG.info("Current PM list exists for node {} and contains {} entries.", input.getNodeId(),