Fix some warnings.
--
MOS_MIGRATED_REVID=102332437
diff --git a/src/main/java/com/google/devtools/build/lib/query2/BlazeQueryEnvironment.java b/src/main/java/com/google/devtools/build/lib/query2/BlazeQueryEnvironment.java
index 208087f..da7c3d9 100644
--- a/src/main/java/com/google/devtools/build/lib/query2/BlazeQueryEnvironment.java
+++ b/src/main/java/com/google/devtools/build/lib/query2/BlazeQueryEnvironment.java
@@ -168,6 +168,7 @@
return result;
}
+ @Override
public Target getTarget(Label label) throws TargetNotFoundException, QueryException {
// Can't use strictScope here because we are expecting a target back.
validateScope(label, true);
@@ -355,6 +356,7 @@
}
};
+ @Override
protected Map<String, Set<Target>> preloadOrThrow(
QueryExpression caller, Collection<String> patterns) throws TargetParsingException {
try {
diff --git a/src/main/java/com/google/devtools/build/lib/query2/BlazeTargetAccessor.java b/src/main/java/com/google/devtools/build/lib/query2/BlazeTargetAccessor.java
index 7e59731..abba93c 100644
--- a/src/main/java/com/google/devtools/build/lib/query2/BlazeTargetAccessor.java
+++ b/src/main/java/com/google/devtools/build/lib/query2/BlazeTargetAccessor.java
@@ -43,7 +43,7 @@
import java.util.Set;
/**
- * Implementation of {@link TargetAccessor<Target>} that uses an
+ * Implementation of {@link TargetAccessor <Target>} that uses an
* {@link AbstractBlazeQueryEnvironment <Target>} internally to report issues and resolve
* targets.
*/
diff --git a/src/main/java/com/google/devtools/build/lib/query2/SkyQueryEnvironment.java b/src/main/java/com/google/devtools/build/lib/query2/SkyQueryEnvironment.java
index 9bb8fc6..fa4e6e2 100644
--- a/src/main/java/com/google/devtools/build/lib/query2/SkyQueryEnvironment.java
+++ b/src/main/java/com/google/devtools/build/lib/query2/SkyQueryEnvironment.java
@@ -525,7 +525,7 @@
}
/**
- * Get SkyKeys for the FileValues for the given {@param pathFragments}. To do this, we look for a
+ * Get SkyKeys for the FileValues for the given {@code pathFragments}. To do this, we look for a
* package lookup node for each path fragment, since package lookup nodes contain the "root" of a
* package. The returned SkyKeys correspond to FileValues that may not exist in the graph.
*/
diff --git a/src/main/java/com/google/devtools/build/lib/query2/engine/AllRdepsFunction.java b/src/main/java/com/google/devtools/build/lib/query2/engine/AllRdepsFunction.java
index ac23525..25cc6a03e 100644
--- a/src/main/java/com/google/devtools/build/lib/query2/engine/AllRdepsFunction.java
+++ b/src/main/java/com/google/devtools/build/lib/query2/engine/AllRdepsFunction.java
@@ -55,7 +55,7 @@
}
/**
- * Breadth-first search from the argument while sticking to nodes satisfying the {@param universe}
+ * Breadth-first search from the argument while sticking to nodes satisfying the {@code universe}
* predicate.
*/
protected <T> Set<T> eval(QueryEnvironment<T> env, List<Argument> args, Predicate<T> universe)
diff --git a/src/main/java/com/google/devtools/build/lib/query2/output/GraphOutputFormatter.java b/src/main/java/com/google/devtools/build/lib/query2/output/GraphOutputFormatter.java
index ba46ddd..a877f13 100644
--- a/src/main/java/com/google/devtools/build/lib/query2/output/GraphOutputFormatter.java
+++ b/src/main/java/com/google/devtools/build/lib/query2/output/GraphOutputFormatter.java
@@ -80,8 +80,8 @@
NODE_COMPARATOR.lexicographical();
/**
- * Given {@param collectionOfUnorderedSets}, a collection of sets of nodes, returns a collection
- * of sets with the same elements as {@param collectionOfUnorderedSets} but with a stable
+ * Given {@code collectionOfUnorderedSets}, a collection of sets of nodes, returns a collection
+ * of sets with the same elements as {@code collectionOfUnorderedSets} but with a stable
* iteration order within each set given by the target ordering, and the collection ordered by the
* same induced order.
*/