Add JournalSegmentFile.map()
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / messages / UpdateSchemaContext.java
index 47f9ea8c4fadcae48d6d2ffeb5527e2b2da51ffd..16e59cc2338f5f98c7714c1aca325a9c3711070c 100644 (file)
@@ -5,19 +5,16 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.controller.cluster.datastore.messages;
 
-import org.opendaylight.yangtools.yang.model.api.SchemaContext;
-
-public class UpdateSchemaContext {
-  private final SchemaContext schemaContext;
+import static java.util.Objects.requireNonNull;
 
-  public UpdateSchemaContext(SchemaContext schemaContext) {
-    this.schemaContext = schemaContext;
-  }
+import org.eclipse.jdt.annotation.NonNullByDefault;
+import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
 
-  public SchemaContext getSchemaContext() {
-    return schemaContext;
-  }
+@NonNullByDefault
+public record UpdateSchemaContext(EffectiveModelContext modelContext) {
+    public UpdateSchemaContext {
+        requireNonNull(modelContext);
+    }
 }