Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-16849

Confusing javadoc in YamlProcessor.setDocumentMatchers

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 4.3.17, 5.0.6
    • Fix Version/s: 4.3.18, 5.0.7, 5.1 RC1
    • Component/s: Core
    • Labels:
      None

      Description

      Currently the Javadoc of YamlProcessor.setDocumentMatchers states, that it can be used with something like:

       

      YamlProcessor.mapMatcher({"environment": "prod"})

       

       which is somewhat confusing since mapMatcher is not a method of YamlProcessor. 

      I propose that the javadoc shows a use case like the one that is used in the tests (see here

      I can of course create a PR for this if it's something that you deem is worth changing

       

      Thanks

        Attachments

          Activity

            People

            • Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              geoand Georgios Andrianakis
              Last updater:
              Stéphane Nicoll
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                17 weeks, 4 days ago