Skip to content

Javadoc and @Nullable annotation for servletContext parameter of ConfigurableWebEnvironment.initPropertySources are contradictory #34845

Closed
@wilkinsona

Description

@wilkinsona

The javadoc states that servletContext may not be null:

* @param servletContext the {@link ServletContext} (may not be {@code null})

But the parameter is annotated with @Nullable:

void initPropertySources(@Nullable ServletContext servletContext, @Nullable ServletConfig servletConfig);

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: documentationA documentation task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions