[JAVA-797] Javadoc of ServerAddress constructor is wrong Created: 28/Mar/13  Updated: 31/Mar/15  Resolved: 06/Mar/14

Status: Closed
Project: Java Driver
Component/s: API, Documentation
Affects Version/s: None
Fix Version/s: 3.0.0

Type: Bug Priority: Trivial - P5
Reporter: Andreas Hubold Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related

 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.



 Comments   
Comment by Jeffrey Yemin [ 31/Mar/15 ]

Closing all resolved 3.0.0 issues, as 3.0.0 has been tagged and released.

Comment by Githook User [ 06/Mar/14 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@mongodb.com'}

Message: Merge pull request #176 from arthurnn/java_797_2

JAVA-797: Enhance doc on ServerAddress constructors
Branch: 3.0.x
https://github.com/mongodb/mongo-java-driver/commit/278c2ddaa5b3d8e66c174915d4da376c558359c0

Comment by Githook User [ 06/Mar/14 ]

Author:

{u'username': u'arthurnn', u'name': u'Arthur Neves', u'email': u'arthurnn@gmail.com'}

Message: JAVA-797: Enhance doc on ServerAddress constructors
Branch: 3.0.x
https://github.com/mongodb/mongo-java-driver/commit/d6aa8d840764077e8ac8cadb452508ba88882521

Generated at Thu Feb 08 08:53:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.