Skip to content

RegexRequestMatcher factory methods and their documentation are not consistent #18069

@edudar-chwy

Description

@edudar-chwy

RegexRequestMatcher.regexMatcher(HttpMethod method, String pattern) says in the Javadoc that method "May be null to match all methods." which makes sense as RegexRequestMatcher constructor takes null, but then we have Assert.notNull(method, "method cannot be null") as the first line in the method, which is completely the opposite of what is expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: docsAn issue in Documentation or samplesstatus: duplicateA duplicate of another issuetype: bugA general bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions