Skip to content

Commit e1d6375

Browse files
committed
Remove unnecessary SuppressWarnings annotation
1 parent 4519c9f commit e1d6375

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

integration-tests/src/test/java/com/datastax/oss/driver/core/retry/DefaultRetryPolicyIT.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ public class DefaultRetryPolicyIT {
103103
private Level oldLevel;
104104
private String logPrefix;
105105

106-
@SuppressWarnings("deprecation")
107106
private final QueryCounter counter =
108107
QueryCounter.builder(SIMULACRON_RULE.cluster())
109108
.withFilter((l) -> l.getQuery().equals(queryStr))

integration-tests/src/test/java/com/datastax/oss/driver/core/retry/PerProfileRetryPolicyIT.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ public class PerProfileRetryPolicyIT {
8282
private static String QUERY_STRING = "select * from foo";
8383
private static final SimpleStatement QUERY = SimpleStatement.newInstance(QUERY_STRING);
8484

85-
@SuppressWarnings("deprecation")
8685
private final QueryCounter counter =
8786
QueryCounter.builder(SIMULACRON_RULE.cluster())
8887
.withFilter((l) -> l.getQuery().equals(QUERY_STRING))

integration-tests/src/test/java/com/datastax/oss/driver/core/specex/SpeculativeExecutionIT.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,14 @@ public class SpeculativeExecutionIT {
5252
// Note: it looks like shorter delays cause precision issues with Netty timers
5353
private static final long SPECULATIVE_DELAY = 1000;
5454

55-
private static String QUERY_STRING = "select * from foo";
55+
private static final String QUERY_STRING = "select * from foo";
5656
private static final SimpleStatement QUERY = SimpleStatement.newInstance(QUERY_STRING);
5757

5858
// Shared across all tests methods.
5959
@ClassRule
6060
public static final SimulacronRule SIMULACRON_RULE =
6161
new SimulacronRule(ClusterSpec.builder().withNodes(3));
6262

63-
@SuppressWarnings("deprecation")
6463
private final QueryCounter counter =
6564
QueryCounter.builder(SIMULACRON_RULE.cluster())
6665
.withFilter((l) -> l.getQuery().equals(QUERY_STRING))

test-infra/src/main/java/com/datastax/oss/driver/api/testinfra/simulacron/QueryCounter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ public void assertNodeCounts(int... counts) {
112112

113113
public static class QueryCounterBuilder {
114114

115-
@SuppressWarnings("deprecation")
116-
private static Predicate<QueryLog> DEFAULT_FILTER = (q) -> !q.getQuery().isEmpty();
115+
private static final Predicate<QueryLog> DEFAULT_FILTER = (q) -> !q.getQuery().isEmpty();
116+
117+
private final BoundTopic<?, ?> topic;
117118

118119
private Predicate<QueryLog> queryLogFilter = DEFAULT_FILTER;
119-
private BoundTopic<?, ?> topic;
120120
private NotificationMode notificationMode = NotificationMode.BEFORE_PROCESSING;
121121
private long beforeTimeout = 1;
122122
private TimeUnit beforeUnit = TimeUnit.SECONDS;

0 commit comments

Comments
 (0)