Skip to content

Commit 3af6935

Browse files
committed
Fix Sonar Issue
Inconsistent synch.
1 parent 2f48c79 commit 3af6935

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/AbstractConnectionFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ public synchronized void setAddresses(String addresses) {
356356
}
357357

358358
@Nullable
359-
protected List<Address> getAddresses() throws IOException {
359+
protected synchronized List<Address> getAddresses() throws IOException {
360360
return this.addressResolver != null ? this.addressResolver.getAddresses() : this.addresses;
361361
}
362362

0 commit comments

Comments
 (0)