-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Closed
Description
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: documentationA documentation updateA documentation update