Refine @SuppressWarnings("NullAway")
See gh-28797
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user