Skip to content

Improve nullability for getSession(*) in MockHttpServletRequest #36926

Description

@OrangeDog

MockHttpServletRequest.getSession() will always create a new session if there isn't one, and so can never return null.

Similarly, getSession(boolean) should have a @Contract("true -> !null").

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: testIssues in the test modulein: 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