From 399b7a801607ba01a0bcefae5f041d5a61a51c0e Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Fri, 17 May 2024 14:47:02 +0300 Subject: [PATCH] Replace Buffer.toJson with Buffer.toJsonValue Fixes: #39712 --- .../redis/runtime/datasource/ReactiveJsonCommandsImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/ReactiveJsonCommandsImpl.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/ReactiveJsonCommandsImpl.java index 166cae16936e3..d171793b2bf26 100644 --- a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/ReactiveJsonCommandsImpl.java +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/ReactiveJsonCommandsImpl.java @@ -111,7 +111,7 @@ static JsonObject getJsonObject(Response r) { } // With Redis 7.2 the response is a BULK (String) but using a nested array. Buffer buffer = r.toBuffer(); - if (buffer.toJson() instanceof JsonArray) { + if (buffer.toJsonValue() instanceof JsonArray) { var array = buffer.toJsonArray(); if (array.size() == 0) { return null; @@ -127,7 +127,7 @@ static JsonArray getJsonArrayFromJsonGet(Response r) { } // With Redis 7.2 the response is a BULK (String) but using a nested array. Buffer buffer = r.toBuffer(); - if (buffer.toJson() instanceof JsonArray) { + if (buffer.toJsonValue() instanceof JsonArray) { var array = buffer.toJsonArray(); if (array.size() == 0) { return new JsonArray();