Skip to content

Commit fa2cd40

Browse files
committed
Upgrade to nullability plugin 0.0.7
Closes gh-47941
1 parent 9ef7307 commit fa2cd40

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

gradle.properties

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ snakeYamlVersion=2.5
2323
springFrameworkVersion=7.0.0-RC3
2424
springFramework60xVersion=6.0.23
2525
tomcatVersion=11.0.13
26-
nullabilityPluginVersion=0.0.5
26+
nullabilityPluginVersion=0.0.7
2727

2828
kotlin.stdlib.default.dependency=false
29-
nullAwayVersion=0.12.10
30-
errorProneVersion=2.42.0

module/spring-boot-health/src/test/java/org/springframework/boot/health/autoconfigure/actuate/endpoint/NoSuchHealthContributorFailureAnalyzerTests.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ private Throwable createFailure() throws Throwable {
5252
AtomicReference<Throwable> failure = new AtomicReference<>();
5353
this.runner.withPropertyValues("management.endpoint.health.group.readiness.include=dummy").run((context) -> {
5454
assertThat(context).hasFailed();
55-
failure.set(context.getStartupFailure());
55+
Throwable startupFailure = context.getStartupFailure();
56+
assertThat(startupFailure).isNotNull();
57+
failure.set(startupFailure);
5658
});
5759
Throwable throwable = failure.get();
5860
if (throwable instanceof NoSuchHealthContributorException) {

module/spring-boot-websocket/src/test/java/org/springframework/boot/websocket/autoconfigure/servlet/WebSocketMessagingAutoConfigurationTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ public void afterConnected(StompSession session, StompHeaders connectedHeaders)
254254

255255
@Override
256256
public void handleFrame(StompHeaders headers, @Nullable Object payload) {
257+
assertThat(payload).isNotNull();
257258
result.set(payload);
258259
latch.countDown();
259260
}

0 commit comments

Comments
 (0)