Skip to content

StaticResourceRequest.at*() have incorrect javadoc #15050

@ykartsev

Description

@ykartsev

Looks like at*() methods of org.springframework.boot.autoconfigure.security.servlet.StaticResourceRequest are not static, although it's examples in javadoc are shown as if they are:

/**
 * Returns a matcher that includes all commonly used {@link StaticResourceLocation
 * Locations}. The
 * {@link StaticResourceRequestMatcher#excluding(StaticResourceLocation, StaticResourceLocation...)
 * excluding} method can be used to remove specific locations if required. For
 * example: <pre class="code">
 * StaticResourceRequest.atCommonLocations().excluding(StaticResourceLocation.CSS)
 * </pre>
 * @return the configured {@link RequestMatcher}
 */
public StaticResourceRequestMatcher atCommonLocations() {
    return at(EnumSet.allOf(StaticResourceLocation.class));
}

Having in mind the fact that its constructor is private, there is no way to use these methods.

I assume those at*() methods should be made static to follow the javadoc, unless, of course, I'm missing something...

Thank you in advance!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions