Skip to content

Missing Nullable on body parameter in HttpClientErrorException.create methods. #35482

@edwardsre

Description

@edwardsre

The create methods on org.springframework.web.client.HttpClientErrorException seems to be missing a Nullable annotation on the byte[] body parameter which is causing NullAway to generate an error when passing a null value.

The body parameter on HttpClientErrorException's constructor is Nullable which is why I believe the create methods should have a byte @Nullable [] body parameter also.

I am using 7.0.0-M8. The current code on the main branch is the same an in M8.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions