Skip to content

Consistently declare nullability @Contract for core utilities #34934

Open
@sbrannen

Description

@sbrannen

Overview

Although we have @Contract declarations for various methods in some of our core utilities (such as Assert and StringUtils), we have not yet consistently declared nullability contracts via @Contract for all applicable utility methods.

To provide better nullability support, we should therefore consistently declare method-level nullability contracts for the following core utilities.

  • SupplierUtils
  • ClassUtils
  • CollectionUtils
  • FileSystemUtils
  • ObjectUtils
  • PatternMatchUtils
  • ReflectionUtils
  • ResourceUtils
  • SerializationUtils
  • StringUtils
  • TypeUtils

Related Issues

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions