Cleanup use of Guava library
[yangtools.git] / yang / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / leafref / LeafRefContextTreeBuilder.java
index 9fddc90c745e878f82bf1064be7bb564b3944f43..89a7d3149c532c40a6a87ac5b1d1ec08f31f2280 100644 (file)
@@ -7,7 +7,8 @@
  */
 package org.opendaylight.yangtools.yang.data.impl.leafref;
 
-import com.google.common.base.Preconditions;
+import static com.google.common.base.Preconditions.checkNotNull;
+
 import java.io.ByteArrayInputStream;
 import java.io.IOException;
 import java.nio.charset.StandardCharsets;
@@ -129,8 +130,7 @@ class LeafRefContextTreeBuilder {
                 currentLeafRefContextBuilder.setReferencing(true);
 
                 final LeafRefPathParserImpl leafRefPathParser = new LeafRefPathParserImpl(schemaContext,
-                        Preconditions.checkNotNull(getBaseTypeModule(leafrefType),
-                                "Unable to find base module for leafref %s", node),
+                        checkNotNull(getBaseTypeModule(leafrefType), "Unable to find base module for leafref %s", node),
                         node);
 
                 final LeafRefPath leafRefPath = leafRefPathParser.parseLeafRefPathSourceToSchemaPath(