Skip to content

Commit

Permalink
feat: 添加SuppressWarnings
Browse files Browse the repository at this point in the history
  • Loading branch information
livk-cloud committed Dec 13, 2024
1 parent f3f8834 commit c99ca10
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private static <S extends RediSearchConnectionFactory> Class<? extends S> create

private static class ConnectInterceptor {

@SuppressWarnings("unchecked")
@SuppressWarnings({ "unchecked", "unused" })
@RuntimeType
public static StatefulRedisModulesConnection<String, String> connect(@FieldValue("client") Object client)
throws Exception {
Expand All @@ -93,7 +93,7 @@ public static StatefulRedisModulesConnection<String, String> connect(@FieldValue

private static class ConnectWithCodecInterceptor {

@SuppressWarnings("unchecked")
@SuppressWarnings({ "unchecked", "unused" })
@RuntimeType
public static <K, V> StatefulRedisModulesConnection<K, V> connect(@FieldValue("client") Object client,
@Argument(0) RedisCodec<K, V> codec) throws Exception {
Expand All @@ -106,6 +106,7 @@ public static <K, V> StatefulRedisModulesConnection<K, V> connect(@FieldValue("c

private static class CloseInterceptor {

@SuppressWarnings("unused")
@RuntimeType
public static void close(@FieldValue("client") AbstractRedisClient client) {
client.close();
Expand Down

0 comments on commit c99ca10

Please sign in to comment.