Skip to content

Commit

Permalink
Improve signature of Matchers.contains
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 352069993
  • Loading branch information
cushon authored and Error Prone Team committed Jan 15, 2021
1 parent 4f69766 commit 4cd70d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,7 @@ public static Matcher<Tree> contains(Matcher<Tree> treeMatcher) {
* @param treeMatcher The matcher to apply recursively to the tree.
*/
public static <T extends Tree, V extends Tree> Matcher<T> contains(
Class<V> clazz, Matcher<V> treeMatcher) {
Class<? extends V> clazz, Matcher<? super V> treeMatcher) {
final Matcher<Tree> contains = new Contains(toType(clazz, treeMatcher));
return contains::matches;
}
Expand Down

0 comments on commit 4cd70d1

Please sign in to comment.