Cleanup use of Guava library
[yangtools.git] / yang / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / schema / builder / impl / ImmutableLeafSetEntryNodeBuilder.java
index 63e4470878ce55d28a5931c27d134697103e6326..9d70f9a1d8e2654ccc7d1da4fc1e1360bcd7e57d 100644 (file)
@@ -7,7 +7,8 @@
  */
 package org.opendaylight.yangtools.yang.data.impl.schema.builder.impl;
 
-import com.google.common.base.Preconditions;
+import static com.google.common.base.Preconditions.checkArgument;
+
 import java.util.Map;
 import java.util.Objects;
 import org.opendaylight.yangtools.yang.common.QName;
@@ -33,7 +34,7 @@ public class ImmutableLeafSetEntryNodeBuilder<T>
         ImmutableLeafSetEntryNode(final NodeWithValue nodeIdentifier, final T value,
                 final Map<QName, String> attributes) {
             super(nodeIdentifier, value, attributes);
-            Preconditions.checkArgument(Objects.deepEquals(nodeIdentifier.getValue(), value),
+            checkArgument(Objects.deepEquals(nodeIdentifier.getValue(), value),
                     "Node identifier contains different value: %s than value itself: %s", nodeIdentifier, value);
         }
     }