Bump odlparent to 10.0.0
[yangtools.git] / model / yang-model-spi / src / main / java / org / opendaylight / yangtools / yang / model / spi / AbstractSchemaContext.java
index 5c2b570e62b231a22593ee0aad948b7d32a6c07e..05c1eb6687e25345b8d377d5ea9e3175a9d34408 100644 (file)
@@ -7,7 +7,6 @@
  */
 package org.opendaylight.yangtools.yang.model.spi;
 
-import static com.google.common.base.Preconditions.checkArgument;
 import static java.util.Objects.requireNonNull;
 
 import com.google.common.collect.ImmutableMap;
@@ -228,7 +227,9 @@ public abstract class AbstractSchemaContext implements SchemaContext {
             local = loadDerivedIdentities();
         }
         final ImmutableSet<IdentitySchemaNode> result = local.get(requireNonNull(identity));
-        checkArgument(result != null, "Identity %s not found", identity);
+        if (result == null) {
+            throw new IllegalArgumentException("Identity " + identity + " not found");
+        }
         return result;
     }