Skip to content

Commit a751b7c

Browse files
authored
replace hardcoded GT and LT with CommandKeyword enum (#3079)
1 parent c6dab63 commit a751b7c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: src/main/java/io/lettuce/core/ZAddArgs.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,11 @@ public <K, V> void build(CommandArgs<K, V> args) {
182182
}
183183

184184
if (gt) {
185-
args.add("GT");
185+
args.add(GT);
186186
}
187187

188188
if (lt) {
189-
args.add("LT");
189+
args.add(LT);
190190
}
191191

192192
if (ch) {

Diff for: src/main/java/io/lettuce/core/protocol/CommandKeyword.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public enum CommandKeyword implements ProtocolKeyword {
4949

5050
MIGRATING, IMPORTING, SAVE, SKIPME, SLAVES, STREAM, STORE, SUM, SEGFAULT, SETUSER, TAKEOVER, TRACKING, TRACKINGINFO, TYPE, UNBLOCK, USERS, USAGE, WEIGHTS, WHOAMI,
5151

52-
WITHMATCHLEN, WITHSCORE, WITHSCORES, WITHVALUES, XOR, XX, YES, INDENT, NEWLINE, SPACE;
52+
WITHMATCHLEN, WITHSCORE, WITHSCORES, WITHVALUES, XOR, XX, YES, INDENT, NEWLINE, SPACE, GT, LT;
5353

5454
public final byte[] bytes;
5555

0 commit comments

Comments
 (0)