From 78cc5df748ba5227c6e262ebc3ff55b5bac498c0 Mon Sep 17 00:00:00 2001 From: Yanming Zhou Date: Thu, 27 Feb 2025 11:02:59 +0800 Subject: [PATCH] Deprecate unused "rowsExpected" property of SqlQuery for removal See gh-34526 Signed-off-by: Yanming Zhou --- .../main/java/org/springframework/jdbc/object/SqlQuery.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/object/SqlQuery.java b/spring-jdbc/src/main/java/org/springframework/jdbc/object/SqlQuery.java index 170771928ec..f30426ac76e 100644 --- a/spring-jdbc/src/main/java/org/springframework/jdbc/object/SqlQuery.java +++ b/spring-jdbc/src/main/java/org/springframework/jdbc/object/SqlQuery.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2025 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -84,14 +84,18 @@ public abstract class SqlQuery extends SqlOperation { * Set the number of rows expected. *

This can be used to ensure efficient storage of results. The * default behavior is not to expect any specific number of rows. + * @deprecated since 6.2.4 with no replacement; it's for internal use only */ + @Deprecated(since = "6.2.4", forRemoval = true) public void setRowsExpected(int rowsExpected) { this.rowsExpected = rowsExpected; } /** * Get the number of rows expected. + * @deprecated since 6.2.4 with no replacement; it's for internal use only */ + @Deprecated(since = "6.2.4", forRemoval = true) public int getRowsExpected() { return this.rowsExpected; }