Skip to content

Commit 57f961e

Browse files
committed
No nullability declarations in AOP Alliance sources
Issue: SPR-15720
1 parent 9d04c04 commit 57f961e

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

spring-aop/src/main/java/org/aopalliance/aop/AspectException.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
package org.aopalliance.aop;
1818

19-
import org.springframework.lang.Nullable;
20-
2119
/**
2220
* Superclass for all AOP infrastructure exceptions.
2321
* Unchecked, as such exceptions are fatal and end user
@@ -43,7 +41,7 @@ public AspectException(String message) {
4341
* @param message the exception message
4442
* @param cause the root cause, if any
4543
*/
46-
public AspectException(String message, @Nullable Throwable cause) {
44+
public AspectException(String message, Throwable cause) {
4745
super(message, cause);
4846
}
4947

spring-aop/src/main/java/org/aopalliance/intercept/MethodInterceptor.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
package org.aopalliance.intercept;
1818

19-
import org.springframework.lang.Nullable;
20-
2119
/**
2220
* Intercepts calls on an interface on its way to the target. These
2321
* are nested "on top" of the target.
@@ -54,7 +52,6 @@ public interface MethodInterceptor extends Interceptor {
5452
* @throws Throwable if the interceptors or the target object
5553
* throws an exception
5654
*/
57-
@Nullable
5855
Object invoke(MethodInvocation invocation) throws Throwable;
5956

6057
}

0 commit comments

Comments
 (0)