Skip to content

Commit e7c1d84

Browse files
authored
Add @nullable annotations to 2 methods of Constructor. (#75)
1 parent 72c372e commit e7c1d84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/java.base/share/classes/java/lang/reflect/Constructor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)