File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/java.base/share/classes/java/lang/reflect Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -590,7 +590,7 @@ byte[] getRawParameterAnnotations() {
590590 * @throws NullPointerException {@inheritDoc}
591591 * @since 1.5
592592 */
593- public <T extends Annotation > T getAnnotation (Class <T > annotationClass ) {
593+ public <T extends Annotation > @ Nullable T getAnnotation (Class <T > annotationClass ) {
594594 return super .getAnnotation (annotationClass );
595595 }
596596
@@ -644,7 +644,7 @@ public AnnotatedType getAnnotatedReturnType() {
644644 * @since 1.8
645645 */
646646 @ Override
647- public AnnotatedType getAnnotatedReceiverType () {
647+ public @ Nullable AnnotatedType getAnnotatedReceiverType () {
648648 Class <?> thisDeclClass = getDeclaringClass ();
649649 Class <?> enclosingClass = thisDeclClass .getEnclosingClass ();
650650
You can’t perform that action at this time.
0 commit comments