Refine @SuppressWarnings("NullAway")

See gh-28797
This commit is contained in:
Sébastien Deleuze
2025-01-08 15:47:43 +01:00
parent 82941caa00
commit a73a819c82
6 changed files with 6 additions and 6 deletions

View File

@@ -323,7 +323,7 @@ public class SingleConnectionFactory implements ConnectionFactory, QueueConnecti
* @throws jakarta.jms.JMSException if thrown by JMS API methods
* @see #initConnection()
*/
@SuppressWarnings("NullAway") // Lazy initialization
@SuppressWarnings("NullAway") // Dataflow analysis limitation
protected Connection getConnection() throws JMSException {
this.connectionLock.lock();
try {

View File

@@ -1434,7 +1434,7 @@ public class DefaultMessageListenerContainer extends AbstractPollingMessageListe
}
}
@SuppressWarnings("NullAway") // Lazy initialization
@SuppressWarnings("NullAway") // Dataflow analysis limitation
private void initResourcesIfNecessary() throws JMSException {
if (getCacheLevel() <= CACHE_CONNECTION) {
updateRecoveryMarker();