Skip to content

Commit 0e6bf09

Browse files
committed
Merge branch '6.0.x'
# Conflicts: # build.gradle # framework-platform/framework-platform.gradle # spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/NamedParameterJdbcTemplate.java
2 parents 01fc1ee + c373f49 commit 0e6bf09

File tree

3 files changed

+25
-27
lines changed

3 files changed

+25
-27
lines changed

framework-platform/framework-platform.gradle

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ javaPlatform {
99
dependencies {
1010
api(platform("com.fasterxml.jackson:jackson-bom:2.15.2"))
1111
api(platform("io.micrometer:micrometer-bom:1.12.0"))
12-
api(platform("io.netty:netty-bom:4.1.100.Final"))
12+
api(platform("io.netty:netty-bom:4.1.101.Final"))
1313
api(platform("io.netty:netty5-bom:5.0.0.Alpha5"))
1414
api(platform("io.projectreactor:reactor-bom:2023.0.0-RC1"))
1515
api(platform("io.rsocket:rsocket-bom:1.1.3"))
@@ -26,12 +26,12 @@ dependencies {
2626
api("com.fasterxml:aalto-xml:1.3.2")
2727
api("com.fasterxml.woodstox:woodstox-core:6.5.1")
2828
api("com.github.ben-manes.caffeine:caffeine:3.1.8")
29-
api("com.github.librepdf:openpdf:1.3.30")
29+
api("com.github.librepdf:openpdf:1.3.33")
3030
api("com.google.code.findbugs:findbugs:3.0.1")
3131
api("com.google.code.findbugs:jsr305:3.0.2")
3232
api("com.google.code.gson:gson:2.10.1")
3333
api("com.google.protobuf:protobuf-java-util:3.24.4")
34-
api("com.h2database:h2:2.2.220")
34+
api("com.h2database:h2:2.2.224")
3535
api("com.jayway.jsonpath:json-path:2.8.0")
3636
api("com.rometools:rome:1.19.0")
3737
api("com.squareup.okhttp3:mockwebserver:3.14.9")
@@ -43,7 +43,7 @@ dependencies {
4343
api("com.sun.xml.bind:jaxb-xjc:3.0.2")
4444
api("com.thoughtworks.qdox:qdox:2.0.3")
4545
api("com.thoughtworks.xstream:xstream:1.4.20")
46-
api("commons-io:commons-io:2.11.0")
46+
api("commons-io:commons-io:2.15.0")
4747
api("de.bechte.junit:junit-hierarchicalcontextrunner:4.12.2")
4848
api("io.micrometer:context-propagation:1.1.0")
4949
api("io.mockk:mockk:1.13.4")
@@ -52,7 +52,7 @@ dependencies {
5252
api("io.r2dbc:r2dbc-h2:1.0.0.RELEASE")
5353
api("io.r2dbc:r2dbc-spi-test:1.0.0.RELEASE")
5454
api("io.r2dbc:r2dbc-spi:1.0.0.RELEASE")
55-
api("io.reactivex.rxjava3:rxjava:3.1.6")
55+
api("io.reactivex.rxjava3:rxjava:3.1.8")
5656
api("io.smallrye.reactive:mutiny:1.9.0")
5757
api("io.undertow:undertow-core:2.3.10.Final")
5858
api("io.undertow:undertow-servlet:2.3.10.Final")
@@ -90,18 +90,18 @@ dependencies {
9090
api("net.sf.jopt-simple:jopt-simple:5.0.4")
9191
api("net.sourceforge.htmlunit:htmlunit:2.70.0")
9292
api("org.apache-extras.beanshell:bsh:2.0b6")
93-
api("org.apache.activemq:activemq-broker:5.17.4")
94-
api("org.apache.activemq:activemq-kahadb-store:5.17.4")
95-
api("org.apache.activemq:activemq-stomp:5.17.4")
93+
api("org.apache.activemq:activemq-broker:5.17.6")
94+
api("org.apache.activemq:activemq-kahadb-store:5.17.6")
95+
api("org.apache.activemq:activemq-stomp:5.17.6")
9696
api("org.apache.activemq:artemis-junit-5:2.29.0")
9797
api("org.apache.activemq:artemis-jakarta-client:2.29.0")
9898
api("org.apache.commons:commons-pool2:2.9.0")
9999
api("org.apache.derby:derby:10.16.1.1")
100100
api("org.apache.derby:derbyclient:10.16.1.1")
101101
api("org.apache.derby:derbytools:10.16.1.1")
102102
api("org.apache.httpcomponents.client5:httpclient5:5.2.1")
103-
api("org.apache.httpcomponents.core5:httpcore5-reactive:5.2.2")
104-
api("org.apache.poi:poi-ooxml:5.2.3")
103+
api("org.apache.httpcomponents.core5:httpcore5-reactive:5.2.3")
104+
api("org.apache.poi:poi-ooxml:5.2.4")
105105
api("org.apache.tomcat.embed:tomcat-embed-core:10.1.15")
106106
api("org.apache.tomcat.embed:tomcat-embed-websocket:10.1.15")
107107
api("org.apache.tomcat:tomcat-util:10.1.15")
@@ -121,18 +121,16 @@ dependencies {
121121
api("org.ehcache:ehcache:3.10.8")
122122
api("org.ehcache:jcache:1.0.1")
123123
api("org.freemarker:freemarker:2.3.32")
124-
// Substitute for "javax.management:jmxremote_optional:1.0.1_04" which
125-
// is not available on Maven Central
126124
api("org.glassfish.external:opendmk_jmxremote_optional_jar:1.0-b01-ea")
127-
api("org.glassfish.tyrus:tyrus-container-servlet:2.1.3")
128125
api("org.glassfish:jakarta.el:4.0.2")
126+
api("org.glassfish.tyrus:tyrus-container-servlet:2.1.3")
129127
api("org.graalvm.sdk:graal-sdk:22.3.1")
130128
api("org.hamcrest:hamcrest:2.2")
131129
api("org.hibernate:hibernate-core-jakarta:5.6.15.Final")
132130
api("org.hibernate:hibernate-validator:7.0.5.Final")
133131
api("org.hsqldb:hsqldb:2.7.2")
134132
api("org.javamoney:moneta:1.4.2")
135-
api("org.jruby:jruby:9.4.3.0")
133+
api("org.jruby:jruby:9.4.5.0")
136134
api("org.junit.support:testng-engine:1.0.4")
137135
api("org.mozilla:rhino:1.7.14")
138136
api("org.ogce:xpp3:1.1.6")
@@ -144,7 +142,7 @@ dependencies {
144142
api("org.slf4j:slf4j-api:2.0.9")
145143
api("org.testng:testng:7.8.0")
146144
api("org.webjars:underscorejs:1.8.3")
147-
api("org.webjars:webjars-locator-core:0.53")
145+
api("org.webjars:webjars-locator-core:0.55")
148146
api("org.xmlunit:xmlunit-assertj:2.9.1")
149147
api("org.xmlunit:xmlunit-matchers:2.9.1")
150148
api("org.yaml:snakeyaml:2.2")

spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/NamedParameterJdbcOperations.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -533,27 +533,27 @@ int update(String sql, SqlParameterSource paramSource, KeyHolder generatedKeyHol
533533
throws DataAccessException;
534534

535535
/**
536-
* Executes a batch using the supplied SQL statement with the batch of supplied arguments.
536+
* Execute a batch using the supplied SQL statement with the batch of supplied arguments.
537537
* @param sql the SQL statement to execute
538-
* @param batchValues the array of Maps containing the batch of arguments for the query
538+
* @param batchArgs the array of {@link SqlParameterSource} containing the batch of
539+
* arguments for the query
539540
* @return an array containing the numbers of rows affected by each update in the batch
540541
* (may also contain special JDBC-defined negative values for affected rows such as
541542
* {@link java.sql.Statement#SUCCESS_NO_INFO}/{@link java.sql.Statement#EXECUTE_FAILED})
542543
* @throws DataAccessException if there is any problem issuing the update
543544
*/
544-
int[] batchUpdate(String sql, Map<String, ?>[] batchValues);
545+
int[] batchUpdate(String sql, SqlParameterSource[] batchArgs);
545546

546547
/**
547-
* Execute a batch using the supplied SQL statement with the batch of supplied arguments.
548+
* Executes a batch using the supplied SQL statement with the batch of supplied arguments.
548549
* @param sql the SQL statement to execute
549-
* @param batchArgs the array of {@link SqlParameterSource} containing the batch of
550-
* arguments for the query
550+
* @param batchValues the array of Maps containing the batch of arguments for the query
551551
* @return an array containing the numbers of rows affected by each update in the batch
552552
* (may also contain special JDBC-defined negative values for affected rows such as
553553
* {@link java.sql.Statement#SUCCESS_NO_INFO}/{@link java.sql.Statement#EXECUTE_FAILED})
554554
* @throws DataAccessException if there is any problem issuing the update
555555
*/
556-
int[] batchUpdate(String sql, SqlParameterSource[] batchArgs);
556+
int[] batchUpdate(String sql, Map<String, ?>[] batchValues);
557557

558558
/**
559559
* Execute a batch using the supplied SQL statement with the batch of supplied

spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/NamedParameterJdbcTemplate.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -365,11 +365,6 @@ public int update(
365365
return getJdbcOperations().update(psc, generatedKeyHolder);
366366
}
367367

368-
@Override
369-
public int[] batchUpdate(String sql, Map<String, ?>[] batchValues) {
370-
return batchUpdate(sql, SqlParameterSourceUtils.createBatch(batchValues));
371-
}
372-
373368
@Override
374369
public int[] batchUpdate(String sql, SqlParameterSource[] batchArgs) {
375370
if (batchArgs.length == 0) {
@@ -394,6 +389,11 @@ public int getBatchSize() {
394389
});
395390
}
396391

392+
@Override
393+
public int[] batchUpdate(String sql, Map<String, ?>[] batchValues) {
394+
return batchUpdate(sql, SqlParameterSourceUtils.createBatch(batchValues));
395+
}
396+
397397
@Override
398398
public int[] batchUpdate(String sql, SqlParameterSource[] batchArgs, KeyHolder generatedKeyHolder) {
399399
return batchUpdate(sql, batchArgs, generatedKeyHolder, null);

0 commit comments

Comments
 (0)