[JAVA-4937] Remove deprecated ServerAddress methods Created: 14/Apr/23  Updated: 05/Dec/23  Resolved: 21/Oct/23

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: None
Fix Version/s: 5.0.0

Type: Improvement Priority: Minor - P4
Reporter: Valentin Kavalenka Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
Gantt Dependency
has to be done after JAVA-4940 Deprecate SocketAddress-related methods Closed
Epic Link: Remove deprecated APIs for 5.0 release
Quarter: FY24Q4
Backwards Compatibility: Major Change
Documentation Changes: Needed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

            com.mongodb
                ServerAddress
                    getSocketAddress()  
                    getSocketAddresses() 
                UnixServerAddress
                    getSocketAddress()
                    getUnixSocketAddress()



 Comments   
Comment by Githook User [ 05/Dec/23 ]

Author:

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

Message: Remove deprecated ServerAddress methods (#1224)

  • ServerAddress#getSocketAddress
  • ServerAddress#getSocketAddresses
  • UnixServerAddress#getSocketAddress
  • UnixServerAddress#getUnixSocketAddress

JAVA-4937
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/0f98a73b2f7eda63d9b5d0710adbeda17fedb7cf

Comment by Githook User [ 20/Nov/23 ]

Author:

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

Message: Remove deprecated ServerAddress methods (#1224)

  • ServerAddress#getSocketAddress
  • ServerAddress#getSocketAddresses
  • UnixServerAddress#getSocketAddress
  • UnixServerAddress#getUnixSocketAddress

JAVA-4937
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/e436cd17e70d9a681a1d8c288ac17c3287008ad0

Comment by Jeffrey Yemin [ 03/Aug/23 ]

One usage in OpenTracing that we should consider before removing this: https://github.com/opentracing-contrib/java-mongo-driver/blob/0a9c51bbac105437c13c2b2b609ef6b3610ddeb2/opentracing-mongo-common/src/main/java/io/opentracing/contrib/mongo/common/SpanDecorator.java#L53-L54

Generated at Thu Feb 08 09:03:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.