mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-06 01:09:02 +00:00
Add nullability annotations to module/spring-boot-netty
See gh-46587
This commit is contained in:
+5
-3
@@ -16,6 +16,8 @@
|
||||
|
||||
package org.springframework.boot.netty.autoconfigure;
|
||||
|
||||
import org.jspecify.annotations.Nullable;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
|
||||
/**
|
||||
@@ -34,13 +36,13 @@ public class NettyProperties {
|
||||
* 'ResourceLeakDetector.setLevel' or the 'io.netty.leakDetection.level' system
|
||||
* property, default to 'simple'.
|
||||
*/
|
||||
private LeakDetection leakDetection;
|
||||
private @Nullable LeakDetection leakDetection;
|
||||
|
||||
public LeakDetection getLeakDetection() {
|
||||
public @Nullable LeakDetection getLeakDetection() {
|
||||
return this.leakDetection;
|
||||
}
|
||||
|
||||
public void setLeakDetection(LeakDetection leakDetection) {
|
||||
public void setLeakDetection(@Nullable LeakDetection leakDetection) {
|
||||
this.leakDetection = leakDetection;
|
||||
}
|
||||
|
||||
|
||||
+3
@@ -17,4 +17,7 @@
|
||||
/**
|
||||
* Auto-configuration for the Netty library.
|
||||
*/
|
||||
@NullMarked
|
||||
package org.springframework.boot.netty.autoconfigure;
|
||||
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
|
||||
Reference in New Issue
Block a user