Adjust to yangtools-2.0.0/odlparent-3.0.0 changes
[netconf.git] / netconf / messagebus-netconf / src / test / java / org / opendaylight / netconf / messagebus / eventsources / netconf / NetconfEventSourceMountTest.java
index d64e1a6415f539584f67ac409a5fda2325d0f424..04be595ed238bc6e8eab05ece4684a604090699d 100644 (file)
@@ -135,7 +135,7 @@ public class NetconfEventSourceMountTest {
         final List<String> streamNames = Lists.transform(availableStreams, new Function<Stream, String>() {
             @Nullable
             @Override
-            public String apply(@Nullable Stream input) {
+            public String apply(@Nullable final Stream input) {
                 return input.getName().getValue();
             }
         });
@@ -143,15 +143,15 @@ public class NetconfEventSourceMountTest {
         streamNames.contains(STREAM_2);
     }
 
-    private String getStreamName(ContainerNode value) {
+    private static String getStreamName(final ContainerNode value) {
         YangInstanceIdentifier.NodeIdentifier stream =
                 new YangInstanceIdentifier.NodeIdentifier(QName.create(CreateSubscriptionInput.QNAME, "stream"));
         return (String) value.getChild(stream).get().getValue();
     }
 
-    private Optional<?> getDate(ContainerNode value) {
+    private static Optional<?> getDate(final ContainerNode value) {
         YangInstanceIdentifier.NodeIdentifier startTime =
                 new YangInstanceIdentifier.NodeIdentifier(QName.create(CreateSubscriptionInput.QNAME, "startTime"));
-        return value.getChild(startTime);
+        return Optional.fromJavaUtil(value.getChild(startTime));
     }
 }
\ No newline at end of file