mirror of https://github.com/apache/druid.git
Enable RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE (#7972)
This commit is contained in:
parent
e8dedb3de4
commit
4508d3ff55
|
@ -76,7 +76,6 @@
|
||||||
<Bug pattern="OBL_UNSATISFIED_OBLIGATION"/>
|
<Bug pattern="OBL_UNSATISFIED_OBLIGATION"/>
|
||||||
<Bug pattern="OS_OPEN_STREAM"/>
|
<Bug pattern="OS_OPEN_STREAM"/>
|
||||||
<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE"/>
|
<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="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/>
|
||||||
<Bug pattern="RC_REF_COMPARISON_BAD_PRACTICE_BOOLEAN"/>
|
<Bug pattern="RC_REF_COMPARISON_BAD_PRACTICE_BOOLEAN"/>
|
||||||
<Bug pattern="REC_CATCH_EXCEPTION"/>
|
<Bug pattern="REC_CATCH_EXCEPTION"/>
|
||||||
|
|
|
@ -330,13 +330,7 @@ public class SingleTaskBackgroundRunner implements TaskRunner, QuerySegmentWalke
|
||||||
final QueryRunner<T> taskQueryRunner = task.getQueryRunner(query);
|
final QueryRunner<T> taskQueryRunner = task.getQueryRunner(query);
|
||||||
|
|
||||||
if (taskQueryRunner != null) {
|
if (taskQueryRunner != null) {
|
||||||
if (queryRunner == null) {
|
|
||||||
queryRunner = taskQueryRunner;
|
queryRunner = taskQueryRunner;
|
||||||
} else {
|
|
||||||
log.makeAlert("Found too many query runners for datasource")
|
|
||||||
.addData("dataSource", queryDataSource)
|
|
||||||
.emit();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue