Use Objects.requireNonNull instead of Preconditions.checkNotNull
[yangtools.git] / third-party / triemap / src / main / java / org / opendaylight / yangtools / triemap / SerializationProxy.java
index 700deacc3d2361a21aec132049354c59983295b7..3e00d85a76c722d71f4f2e44620ea3f157b4e0c3 100644 (file)
@@ -16,7 +16,7 @@
 package org.opendaylight.yangtools.triemap;
 
 import static com.google.common.base.Preconditions.checkArgument;
-import static com.google.common.base.Preconditions.checkNotNull;
+import static java.util.Objects.requireNonNull;
 
 import com.google.common.base.Verify;
 import java.io.Externalizable;
@@ -38,14 +38,14 @@ final class SerializationProxy implements Externalizable {
     private TrieMap<Object, Object> map;
     private boolean readOnly;
 
-    @SuppressWarnings("checkStyle:redundantModifier")
+    @SuppressWarnings("checkstyle:redundantModifier")
     public SerializationProxy() {
         // For Externalizable
     }
 
     @SuppressWarnings({ "unchecked", "rawtypes" })
     SerializationProxy(final ImmutableTrieMap<?, ?> map, final boolean readOnly) {
-        this.map = (TrieMap) checkNotNull(map);
+        this.map = (TrieMap) requireNonNull(map);
         this.readOnly = readOnly;
     }