Skip to content

Commit

Permalink
Polishing #1833
Browse files Browse the repository at this point in the history
  • Loading branch information
mp911de committed Sep 3, 2021
1 parent 9800fb5 commit b251903
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -63,6 +67,7 @@ public DefaultCommandMethodVerifier(List<CommandDetail> 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");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -35,6 +35,8 @@
import io.lettuce.core.models.command.CommandDetail;

/**
* Unit tests for {@link DefaultCommandMethodVerifier}.
*
* @author Mark Paluch
*/
class DefaultCommandMethodVerifierUnitTests {
Expand Down

0 comments on commit b251903

Please sign in to comment.