-
Notifications
You must be signed in to change notification settings - Fork 117
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the feature you request
- Adding package-level null safety configuration - Add
package-info.javafiles with@NullMarkedannotation from JSpecify to establish non-null as the default for all elements in each package - Integrating NullAway static analysis - Add NullAway as a compile-time checker to automatically detect potential null pointer exceptions and enforce proper null handling throughout the codebase
ref:
- https://docs.spring.io/spring-framework/reference/7.0/core/null-safety.html
- Add JSpecify nullability annotations spring-projects/spring-boot#46587
(Optional): Suggest A Solution
Proposed implementation approach:
- Add
package-info.javafiles to all existing packages with@NullMarkedannotation - NullAway integration
Example package-info.java:
@NullMarked
package com.example.project.core;
import org.jspecify.annotations.NullMarked;If the feature request is approved, would you be willing to submit a PR?
Yes
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request