Replace Preconditions.CheckNotNull per RequireNonNull
[bgpcep.git] / pcep / impl / src / main / java / org / opendaylight / protocol / pcep / impl / tls / SslContextFactory.java
index 13b01a97af775482e6379520f65413354596e8cd..2e98533305928111d397b43f270e48832ef135f8 100644 (file)
@@ -7,7 +7,8 @@
  */
 package org.opendaylight.protocol.pcep.impl.tls;
 
-import com.google.common.base.Preconditions;
+import static java.util.Objects.requireNonNull;
+
 import java.io.IOException;
 import java.security.KeyStore;
 import java.security.NoSuchAlgorithmException;
@@ -36,7 +37,7 @@ public class SslContextFactory {
      *            keystore types
      */
     public SslContextFactory(final Tls tlsConfig) {
-        this.tlsConfig = Preconditions.checkNotNull(tlsConfig);
+        this.tlsConfig = requireNonNull(tlsConfig);
     }
 
     public SSLContext getServerContext() {