Refine @SuppressWarnings("NullAway")
See gh-28797
This commit is contained in:
@@ -179,7 +179,7 @@ public class SingleConnectionDataSource extends DriverManagerDataSource
|
||||
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("NullAway") // Lazy initialization
|
||||
@SuppressWarnings("NullAway") // Dataflow analysis limitation
|
||||
public Connection getConnection() throws SQLException {
|
||||
this.connectionLock.lock();
|
||||
try {
|
||||
|
||||
@@ -159,7 +159,7 @@ public class EmbeddedDatabaseFactory {
|
||||
* Factory method that returns the {@linkplain EmbeddedDatabase embedded database}
|
||||
* instance, which is also a {@link DataSource}.
|
||||
*/
|
||||
@SuppressWarnings("NullAway") // Lazy initialization
|
||||
@SuppressWarnings("NullAway") // Dataflow analysis limitation
|
||||
public EmbeddedDatabase getDatabase() {
|
||||
if (this.dataSource == null) {
|
||||
initDatabase();
|
||||
|
||||
@@ -43,7 +43,7 @@ public abstract class AbstractColumnMaxValueIncrementer extends AbstractDataFiel
|
||||
* @see #setIncrementerName
|
||||
* @see #setColumnName
|
||||
*/
|
||||
@SuppressWarnings("NullAway")
|
||||
@SuppressWarnings("NullAway.Init")
|
||||
public AbstractColumnMaxValueIncrementer() {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user