Fix Sonar Issue

Inconsistent synch.
This commit is contained in:
Gary Russell
2023-02-15 11:27:20 -05:00
parent 2f48c79acc
commit 3af693506b

View File

@@ -356,7 +356,7 @@ public abstract class AbstractConnectionFactory implements ConnectionFactory, Di
}
@Nullable
protected List<Address> getAddresses() throws IOException {
protected synchronized List<Address> getAddresses() throws IOException {
return this.addressResolver != null ? this.addressResolver.getAddresses() : this.addresses;
}