mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-05 06:29:03 +00:00
Perform NullAway build-time checks in more modules
This commit enables null-safety build-time checks in all remaining modules except spring-test. See gh-32475
This commit is contained in:
+6
-2
@@ -409,7 +409,9 @@ public abstract class TransactionAspectSupport implements BeanFactoryAware, Init
|
||||
future.get();
|
||||
}
|
||||
catch (ExecutionException ex) {
|
||||
if (txAttr.rollbackOn(ex.getCause())) {
|
||||
Throwable cause = ex.getCause();
|
||||
Assert.state(cause != null, "Cause must not be null");
|
||||
if (txAttr.rollbackOn(cause)) {
|
||||
status.setRollbackOnly();
|
||||
}
|
||||
}
|
||||
@@ -901,7 +903,9 @@ public abstract class TransactionAspectSupport implements BeanFactoryAware, Init
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getCause().toString();
|
||||
Throwable cause = getCause();
|
||||
Assert.state(cause != null, "Cause must not be null");
|
||||
return cause.toString();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user