summaryrefslogtreecommitdiffstats
path: root/sangria-core/src
diff options
context:
space:
mode:
Diffstat (limited to 'sangria-core/src')
-rw-r--r--sangria-core/src/main/java/com/tavianator/sangria/core/PotentialAnnotation.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/sangria-core/src/main/java/com/tavianator/sangria/core/PotentialAnnotation.java b/sangria-core/src/main/java/com/tavianator/sangria/core/PotentialAnnotation.java
index 7c3680f..760cd17 100644
--- a/sangria-core/src/main/java/com/tavianator/sangria/core/PotentialAnnotation.java
+++ b/sangria-core/src/main/java/com/tavianator/sangria/core/PotentialAnnotation.java
@@ -76,7 +76,10 @@ public abstract class PotentialAnnotation {
}
/**
- * @return A {@link PotentialAnnotation} with the annotation from a {@link Key}.
+ * Extract the annotation from a {@link Key}.
+ *
+ * @param key The {@link Key} whose annotation to use, if any.
+ * @return A {@link PotentialAnnotation} with the annotation from {@code key}.
* @since 1.2
*/
public static PotentialAnnotation from(Key<?> key) {