From f250c43a2912fa81f2b8a579cbeccbb1deca530e Mon Sep 17 00:00:00 2001 From: Hussain Kara Fallah Date: Fri, 9 Aug 2024 11:34:32 +0300 Subject: [PATCH] spotgbugs --- .../java/com/transferwise/tasks/testapp/TaskDataIntTest.java | 4 ---- .../src/main/java/com/transferwise/tasks/dao/JdbcTaskDao.java | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/integration-tests/src/test/java/com/transferwise/tasks/testapp/TaskDataIntTest.java b/integration-tests/src/test/java/com/transferwise/tasks/testapp/TaskDataIntTest.java index 45a6e194..c3b8539b 100644 --- a/integration-tests/src/test/java/com/transferwise/tasks/testapp/TaskDataIntTest.java +++ b/integration-tests/src/test/java/com/transferwise/tasks/testapp/TaskDataIntTest.java @@ -1,6 +1,5 @@ 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; @@ -8,11 +7,9 @@ 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; @@ -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; diff --git a/tw-tasks-core/src/main/java/com/transferwise/tasks/dao/JdbcTaskDao.java b/tw-tasks-core/src/main/java/com/transferwise/tasks/dao/JdbcTaskDao.java index 3ab66017..bdf8d3fe 100644 --- a/tw-tasks-core/src/main/java/com/transferwise/tasks/dao/JdbcTaskDao.java +++ b/tw-tasks-core/src/main/java/com/transferwise/tasks/dao/JdbcTaskDao.java @@ -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) {