Skip to content

Commit 9406e7e

Browse files
committed
Add additional javadoc notes on 7.0
See gh-34709 See gh-34757
1 parent 56f16a8 commit 9406e7e

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

spring-beans/src/main/java/org/springframework/beans/factory/config/Scope.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ public interface Scope {
126126
/**
127127
* Resolve the contextual object for the given key, if any.
128128
* For example, the HttpServletRequest object for key "request".
129+
* <p>Since 7.0, this interface method returns {@code null} by default.
129130
* @param key the contextual key
130131
* @return the corresponding object, or {@code null} if none found
131132
* @throws IllegalStateException if the underlying scope is not currently active
@@ -145,6 +146,7 @@ public interface Scope {
145146
* <p><b>Note: This is an optional operation.</b> It is perfectly valid to
146147
* return {@code null} in an implementation of this method if the
147148
* underlying storage mechanism has no obvious candidate for such an ID.
149+
* <p>Since 7.0, this interface method returns {@code null} by default.
148150
* @return the conversation ID, or {@code null} if there is no
149151
* conversation ID for the current scope
150152
* @throws IllegalStateException if the underlying scope is not currently active

spring-jdbc/src/main/java/org/springframework/jdbc/core/JdbcTemplate.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ public boolean isIgnoreWarnings() {
246246
* row data that will never be read by the application.
247247
* <p>Default is -1, indicating to use the JDBC driver's default configuration
248248
* (i.e. to not pass a specific fetch size setting on to the driver).
249-
* <p>Note: As of 4.3, negative values other than -1 will get passed on to the
250-
* driver, since, for example, MySQL supports special behavior for {@code Integer.MIN_VALUE}.
249+
* <p>Note: As of 4.3, negative values other than -1 will get passed on to the driver,
250+
* since, for example, MySQL supports special behavior for {@code Integer.MIN_VALUE}.
251251
* @see java.sql.Statement#setFetchSize
252252
*/
253253
public void setFetchSize(int fetchSize) {

spring-jdbc/src/main/java/org/springframework/jdbc/core/RowMapperResultSetExtractor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ public RowMapperResultSetExtractor(RowMapper<T> rowMapper, int rowsExpected) {
9191
* @param rowMapper the RowMapper which creates an object for each row
9292
* @param rowsExpected the number of expected rows
9393
* (just used for optimized collection handling)
94-
* @param maxRows the number of max rows
94+
* @param maxRows the number of max rows (or -1 for the driver's default)
95+
* @since 7.0
9596
*/
9697
public RowMapperResultSetExtractor(RowMapper<T> rowMapper, int rowsExpected, int maxRows) {
9798
Assert.notNull(rowMapper, "RowMapper must not be null");

0 commit comments

Comments
 (0)