From b25190362868697aa40b20cd870cb7025a7f9d67 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Fri, 3 Sep 2021 15:00:37 +0200 Subject: [PATCH] Polishing #1833 --- .../lettuce/core/dynamic/DefaultCommandMethodVerifier.java | 7 ++++++- .../dynamic/DefaultCommandMethodVerifierUnitTests.java | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/lettuce/core/dynamic/DefaultCommandMethodVerifier.java b/src/main/java/io/lettuce/core/dynamic/DefaultCommandMethodVerifier.java index 331ae9aca7..3e8fc2db0c 100644 --- a/src/main/java/io/lettuce/core/dynamic/DefaultCommandMethodVerifier.java +++ b/src/main/java/io/lettuce/core/dynamic/DefaultCommandMethodVerifier.java @@ -20,7 +20,11 @@ import java.util.Optional; import java.util.stream.Collectors; -import io.lettuce.core.*; +import io.lettuce.core.GeoCoordinates; +import io.lettuce.core.KeyValue; +import io.lettuce.core.Limit; +import io.lettuce.core.Range; +import io.lettuce.core.ScoredValue; import io.lettuce.core.dynamic.parameter.Parameter; import io.lettuce.core.dynamic.segment.CommandSegment; import io.lettuce.core.dynamic.segment.CommandSegments; @@ -63,6 +67,7 @@ public DefaultCommandMethodVerifier(List commandDetails) { * @param commandSegments * @param commandMethod */ + @Override public void validate(CommandSegments commandSegments, CommandMethod commandMethod) throws CommandMethodSyntaxException { LettuceAssert.notEmpty(commandSegments.getCommandType().name(), "Command name must not be empty"); diff --git a/src/test/java/io/lettuce/core/dynamic/DefaultCommandMethodVerifierUnitTests.java b/src/test/java/io/lettuce/core/dynamic/DefaultCommandMethodVerifierUnitTests.java index 61a9d6ef7b..343c82af0d 100644 --- a/src/test/java/io/lettuce/core/dynamic/DefaultCommandMethodVerifierUnitTests.java +++ b/src/test/java/io/lettuce/core/dynamic/DefaultCommandMethodVerifierUnitTests.java @@ -15,7 +15,7 @@ */ package io.lettuce.core.dynamic; -import static org.assertj.core.api.Assertions.assertThat; +import static org.assertj.core.api.Assertions.*; import static org.assertj.core.api.Fail.fail; import java.lang.reflect.Method; @@ -35,6 +35,8 @@ import io.lettuce.core.models.command.CommandDetail; /** + * Unit tests for {@link DefaultCommandMethodVerifier}. + * * @author Mark Paluch */ class DefaultCommandMethodVerifierUnitTests {