Fix a nullness warning
[yangtools.git] / data / yang-data-tree-ri / src / main / java / org / opendaylight / yangtools / yang / data / tree / impl / DataTreeState.java
index 6600134751ca26b7db927d7732d2a104c5f5659d..1b7481a9ef267de8769050264c7bc1e9b4b693cb 100644 (file)
@@ -47,7 +47,7 @@ final class DataTreeState {
         return root;
     }
 
-    InMemoryDataTreeSnapshot newSnapshot() {
+    @NonNull InMemoryDataTreeSnapshot newSnapshot() {
         return new InMemoryDataTreeSnapshot(schemaContext, root, holder.newSnapshot());
     }