Skip to content

ConditionEvaluationResult APIs should accept @Nullable reasons #4698

@sbrannen

Description

@sbrannen

Overview

In #4550 we added support for JSpecify nullability annotations; however, the reason and customReason parameters in various ConditionEvaluationResult APIs do not signal that those values are permitted to be null.

For example, when migrating to JUnit 6.0 M1 I had to add the following suppression in Spring Framework's DisabledInAotModeCondition.

@SuppressWarnings("NullAway") // ConditionEvaluationResult.disabled(): customReason should be @Nullable

Related Issues

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions