From bde0931e51ff93ef679e9d79f7798f681858f81c Mon Sep 17 00:00:00 2001 From: hsteinmueller Date: Tue, 24 May 2022 13:04:19 +0200 Subject: [PATCH] Fix Javadoc for DatabaseClient The documentation for DatabaseClient had misplaced double quotes in the example on how to map a select statement to a row. Closes gh-28520 --- .../java/org/springframework/r2dbc/core/DatabaseClient.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-r2dbc/src/main/java/org/springframework/r2dbc/core/DatabaseClient.java b/spring-r2dbc/src/main/java/org/springframework/r2dbc/core/DatabaseClient.java index 7b0c7ddd59..31dab958d0 100644 --- a/spring-r2dbc/src/main/java/org/springframework/r2dbc/core/DatabaseClient.java +++ b/spring-r2dbc/src/main/java/org/springframework/r2dbc/core/DatabaseClient.java @@ -45,8 +45,8 @@ import org.springframework.util.Assert; * * DatabaseClient client = DatabaseClient.create(factory); * Mono<Actor> actor = client.sql("select first_name, last_name from t_actor") - * .map(row -> new Actor(row.get("first_name, String.class"), - * row.get("last_name, String.class"))) + * .map(row -> new Actor(row.get("first_name", String.class), + * row.get("last_name", String.class))) * .first(); * *