Skip to content

Commit

Permalink
spotgbugs
Browse files Browse the repository at this point in the history
  • Loading branch information
hussainkarafallah committed Aug 9, 2024
1 parent cc24eca commit f250c43
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
package com.transferwise.tasks.testapp;

import static com.transferwise.tasks.dao.JdbcTaskDao.NULL_BLOB;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.assertEquals;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.base.Strings;
import com.transferwise.tasks.BaseIntTest;
import com.transferwise.tasks.CompressionAlgorithm;
import com.transferwise.tasks.ITaskDataSerializer;
import com.transferwise.tasks.ITasksService.AddTaskRequest;
import com.transferwise.tasks.ITasksService.AddTaskRequest.CompressionRequest;
import com.transferwise.tasks.ITasksService.AddTaskResponse;
import com.transferwise.tasks.TaskDataSerializer;
import com.transferwise.tasks.TasksProperties;
import com.transferwise.tasks.dao.ITaskDao;
import com.transferwise.tasks.dao.ITaskDaoDataSerializer;
Expand All @@ -34,7 +31,6 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.CsvSource;
import org.junit.jupiter.params.provider.MethodSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public JdbcTaskDao(DataSource dataSource, ITaskSqlMapper sqlMapper) {
protected String getApproximateTaskDatasCountSql1;

protected final int[] questionBuckets = {1, 5, 25, 125, 625};
public static final byte[] NULL_BLOB = "®".getBytes(StandardCharsets.UTF_8);
static final byte[] NULL_BLOB = "./g".getBytes(StandardCharsets.UTF_8);
protected final TaskStatus[] stuckStatuses = new TaskStatus[]{TaskStatus.NEW, TaskStatus.SUBMITTED, TaskStatus.WAITING, TaskStatus.PROCESSING};

protected ITwTaskTables twTaskTables(TasksProperties tasksProperties) {
Expand Down

0 comments on commit f250c43

Please sign in to comment.