Corrects code to remove bug reports from Sonar Report

Resolves #478
This commit is contained in:
Glenn Renfro
2018-11-12 14:54:47 -05:00
parent 9d38c9a86d
commit f083d7a7ff
6 changed files with 8 additions and 6 deletions

View File

@@ -325,8 +325,9 @@ public class JdbcTaskExecutionDao implements TaskExecutionDao {
public long getRunningTaskExecutionCount() {
try {
final MapSqlParameterSource queryParameters = new MapSqlParameterSource();
return jdbcTemplate.queryForObject(
getQuery(RUNNING_TASK_EXECUTION_COUNT), (SqlParameterSource)null, Long.class);
getQuery(RUNNING_TASK_EXECUTION_COUNT), queryParameters, Long.class);
}
catch (EmptyResultDataAccessException e) {
return 0;

View File

@@ -322,7 +322,7 @@ public class MapTaskExecutionDao implements TaskExecutionDao {
}
}
private class TaskExecutionComparator implements Comparator<TaskExecution> {
private static class TaskExecutionComparator implements Comparator<TaskExecution> {
@Override
public int compare(TaskExecution firstTaskExecution, TaskExecution secondTaskExecution) {
if (firstTaskExecution.getStartTime().equals(secondTaskExecution.getStartTime())) {