Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-797

Javadoc of ServerAddress constructor is wrong

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Trivial - P5 Trivial - P5
    • 3.0.0
    • None
    • API, Documentation
    • None

    Description

      The Javadoc of ServerAddress constructor with single String parameter says

      Creates a ServerAddress with default port

      In fact, if I pass a string such as "localhost:3333" it will create a ServerAddress with port 3333 (which is of course not the default port). That's nice. Can you please adapt the Javadoc to match the implementation?

      I'm asking this because I want to be sure that the constructor's implementation won't be changed in a future release and I don't need to parse a host:port string myself.

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            ahubold Andreas Hubold
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: