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:
Sébastien Deleuze
2024-03-26 15:53:01 +01:00
parent 2fea3d7921
commit 8b51b36729
53 changed files with 93 additions and 31 deletions
@@ -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();
}
}