Enable RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE (#7972)

This commit is contained in:
Fokko Driesprong 2019-07-01 07:55:06 +02:00 committed by Nishant Bangarwa
parent e8dedb3de4
commit 4508d3ff55
2 changed files with 1 additions and 8 deletions

View File

@ -76,7 +76,6 @@
<Bug pattern="OBL_UNSATISFIED_OBLIGATION"/>
<Bug pattern="OS_OPEN_STREAM"/>
<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE"/>
<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE"/>
<Bug pattern="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/>
<Bug pattern="RC_REF_COMPARISON_BAD_PRACTICE_BOOLEAN"/>
<Bug pattern="REC_CATCH_EXCEPTION"/>

View File

@ -330,13 +330,7 @@ public class SingleTaskBackgroundRunner implements TaskRunner, QuerySegmentWalke
final QueryRunner<T> taskQueryRunner = task.getQueryRunner(query);
if (taskQueryRunner != null) {
if (queryRunner == null) {
queryRunner = taskQueryRunner;
} else {
log.makeAlert("Found too many query runners for datasource")
.addData("dataSource", queryDataSource)
.emit();
}
queryRunner = taskQueryRunner;
}
}
}