Cleanup use of Guava library
[yangtools.git] / yang / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / schema / xpath / XPathExpression.java
index 17df59614655294d871aa4c8b9d9a38f352ed575..c372367779f1c8817e4b94aa9ca133f8191fddb7 100644 (file)
@@ -8,7 +8,7 @@
 package org.opendaylight.yangtools.yang.data.api.schema.xpath;
 
 import com.google.common.annotations.Beta;
-import com.google.common.base.Optional;
+import java.util.Optional;
 import javax.annotation.Nonnull;
 import javax.xml.xpath.XPathExpressionException;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
@@ -22,7 +22,7 @@ import org.opendaylight.yangtools.yang.model.api.SchemaPath;
 public interface XPathExpression {
     /**
      * Evaluate this expression at the specified path in a document. If evaluation succeeds, it will return an
-     * {@link XPathResult}. If it fails to match anything, it will return {@link Optional#absent()}. Implementations
+     * {@link XPathResult}. If it fails to match anything, it will return {@link Optional#empty()}. Implementations
      * of this method are expected to perform complete evaluation such that accessing data via the resulting
      * {@link XPathResult} will not incur large overhead.
      *