Filters.regex() Javadocs reference "options" even for overloads without them

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor - P4
    • 4.2.0
    • Affects Version/s: 4.1.0
    • Component/s: Documentation
    • None
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      There are three different overloads of com.mongodb.client.model.Filters.regex():

       All three of these overloads have the same Javadoc text:

      Creates a filter that matches all documents where the value of the field matches the given regular expression pattern with the given options applied.

       However, only one of these methods actually takes in options.  The (String, String) variation corresponds to no options, and the (String, Pattern) variation presumably uses the compiled Pattern's match flags.

      I would expect the two overloads that lack an "options" argument to either not mention it, or to specify how it actually affects the options rather than reference nonexistent "given options".

            Assignee:
            Brian DeLeonardis (Inactive)
            Reporter:
            Matthew Justin
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: