Skip to content

Commit 9523e95

Browse files
committed
findMethodAnnotation marked with @nullable
1 parent 80a771d commit 9523e95

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spring-graphql/src/main/java/org/springframework/graphql/data/method/annotation/support/AuthenticationPrincipalArgumentResolver.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ private boolean isInvalidType(MethodParameter parameter, @Nullable Object princi
131131
* @param parameter the {@link MethodParameter} to search for an {@link Annotation}
132132
* @return the {@link Annotation} that was found or null.
133133
*/
134+
@Nullable
134135
private <T extends Annotation> T findMethodAnnotation(Class<T> annotationClass, MethodParameter parameter) {
135136
T annotation = parameter.getParameterAnnotation(annotationClass);
136137
if (annotation != null) {

0 commit comments

Comments
 (0)