Skip to content

Commit 78cc5df

Browse files
quaffsbrannen
authored andcommitted
Deprecate unused "rowsExpected" property of SqlQuery for removal
See gh-34526 Signed-off-by: Yanming Zhou <[email protected]>
1 parent 5ffaea7 commit 78cc5df

File tree

1 file changed

+5
-1
lines changed
  • spring-jdbc/src/main/java/org/springframework/jdbc/object

1 file changed

+5
-1
lines changed

spring-jdbc/src/main/java/org/springframework/jdbc/object/SqlQuery.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -84,14 +84,18 @@ public SqlQuery(DataSource ds, String sql) {
8484
* Set the number of rows expected.
8585
* <p>This can be used to ensure efficient storage of results. The
8686
* default behavior is not to expect any specific number of rows.
87+
* @deprecated since 6.2.4 with no replacement; it's for internal use only
8788
*/
89+
@Deprecated(since = "6.2.4", forRemoval = true)
8890
public void setRowsExpected(int rowsExpected) {
8991
this.rowsExpected = rowsExpected;
9092
}
9193

9294
/**
9395
* Get the number of rows expected.
96+
* @deprecated since 6.2.4 with no replacement; it's for internal use only
9497
*/
98+
@Deprecated(since = "6.2.4", forRemoval = true)
9599
public int getRowsExpected() {
96100
return this.rowsExpected;
97101
}

0 commit comments

Comments
 (0)