Cleanup use of Guava library
[yangtools.git] / common / object-cache-api / src / main / java / org / opendaylight / yangtools / objcache / ObjectCacheFactory.java
index ac9087a899ca17b92e4d8d7132454cb07655f875..fcd9ea6fc9c4a1f3f91be8264eb084addb6cd3d8 100644 (file)
@@ -7,7 +7,8 @@
  */
 package org.opendaylight.yangtools.objcache;
 
-import com.google.common.base.Preconditions;
+import static java.util.Objects.requireNonNull;
+
 import javax.annotation.Nonnull;
 import javax.annotation.concurrent.GuardedBy;
 import org.opendaylight.yangtools.objcache.impl.StaticObjectCacheBinder;
@@ -59,6 +60,6 @@ public final class ObjectCacheFactory {
             fa = initialize();
         }
 
-        return fa.getObjectCache(Preconditions.checkNotNull(objClass));
+        return fa.getObjectCache(requireNonNull(objClass));
     }
 }