Skip to content

Commit 0e1a97a

Browse files
authored
Fix string comparison in TypeUtils.
Original Pull Request #3177 Closes #3176 Signed-off-by: Peter-Josef Meisch <pj.meisch@sothawo.com>
1 parent df79368 commit 0e1a97a

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/org/springframework/data/elasticsearch/client/elc

1 file changed

+1
-1
lines changed

src/main/java/org/springframework/data/elasticsearch/client/elc/TypeUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ static Integer waitForActiveShardsCount(@Nullable String value) {
435435
// values taken from the RHLC implementation
436436
if (value == null) {
437437
return -2;
438-
} else if ("all".equals(value.toUpperCase())) {
438+
} else if ("all".equals(value.toLowerCase())) {
439439
return -1;
440440
} else {
441441
try {

0 commit comments

Comments
 (0)