From af481bfe658aef9a12a4092e6da844e59e9ed484 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89amonn=20McManus?= Date: Fri, 23 Aug 2024 18:13:57 -0700 Subject: [PATCH] Fix a couple of missing parentheses in doc comments. RELNOTES=n/a PiperOrigin-RevId: 666983259 --- common/src/main/java/com/google/auto/common/MoreElements.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/com/google/auto/common/MoreElements.java b/common/src/main/java/com/google/auto/common/MoreElements.java index dfbbaeef14..861bace284 100644 --- a/common/src/main/java/com/google/auto/common/MoreElements.java +++ b/common/src/main/java/com/google/auto/common/MoreElements.java @@ -301,7 +301,7 @@ public static Optional getAnnotationMirror( *

Here is an example how one could get a List of static methods of a class: *

{@code
    * FluentIterable.from(ElementFilter.methodsIn(clazzElement.getEnclosedElements()))
-   *     .filter(MoreElements.hasModifiers(Modifier.STATIC).toList();
+   *     .filter(MoreElements.hasModifiers(Modifier.STATIC)).toList();
    * }
*/ public static Predicate hasModifiers(Modifier... modifiers) { @@ -317,7 +317,7 @@ public static Predicate hasModifiers(Modifier... modifier *
{@code
    * Set modifiers = ...;
    * FluentIterable.from(ElementFilter.methodsIn(clazzElement.getEnclosedElements()))
-   *     .filter(MoreElements.hasModifiers(modifiers).toList();}
+   *     .filter(MoreElements.hasModifiers(modifiers)).toList();}
    * 
*/ public static Predicate hasModifiers(final Set modifiers) {