Skip to content

Commit eac3be3

Browse files
committed
Fix more false null check warnings
1 parent 0c677e6 commit eac3be3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ public void resetConnection() {
891891
this.connectionHighWaterMark.set(0);
892892
}
893893
if (this.defaultPublisherFactory) {
894-
((CachingConnectionFactory) getPublisherConnectionFactory()).resetConnection();
894+
((CachingConnectionFactory) getPublisherConnectionFactory()).resetConnection(); // NOSONAR
895895
}
896896
}
897897

@@ -985,7 +985,7 @@ public Properties getCacheProperties() {
985985
@ManagedAttribute
986986
public Properties getPublisherConnectionFactoryCacheProperties() {
987987
if (this.defaultPublisherFactory) {
988-
return ((CachingConnectionFactory) getPublisherConnectionFactory()).getCacheProperties();
988+
return ((CachingConnectionFactory) getPublisherConnectionFactory()).getCacheProperties(); // NOSONAR
989989
}
990990
return new Properties();
991991
}

0 commit comments

Comments
 (0)