language
stringclasses
1 value
owner
stringlengths
2
15
repo
stringlengths
2
21
sha
stringlengths
45
45
message
stringlengths
7
36.3k
path
stringlengths
1
199
patch
stringlengths
15
102k
is_multipart
bool
2 classes
Other
spring-projects
spring-framework
a42944d3644e7b3100445b463574b2a52e37aa1e.json
Consolidate TxMgr lookup tests in the TCF This commit consolidates TransactionManager lookup tests in the Spring TestContext Framework (TCF), migrates some to JUnit Jupiter, simplifies their implementations, and removes duplicated test cases.
spring-test/src/test/java/org/springframework/test/context/transaction/manager/LookUpTxMgrByTypeTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 the original author or authors. + * Copyright 2002-2020 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. @@ -14,17 +14,15 @@ * limitations under the L...
true
Other
spring-projects
spring-framework
a42944d3644e7b3100445b463574b2a52e37aa1e.json
Consolidate TxMgr lookup tests in the TCF This commit consolidates TransactionManager lookup tests in the Spring TestContext Framework (TCF), migrates some to JUnit Jupiter, simplifies their implementations, and removes duplicated test cases.
spring-test/src/test/java/org/springframework/test/context/transaction/manager/LookUpTxMgrNonTransactionalTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 the original author or authors. + * Copyright 2002-2020 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. @@ -14,15 +14,14 @@ * limitations under the L...
true
Other
spring-projects
spring-framework
a42944d3644e7b3100445b463574b2a52e37aa1e.json
Consolidate TxMgr lookup tests in the TCF This commit consolidates TransactionManager lookup tests in the Spring TestContext Framework (TCF), migrates some to JUnit Jupiter, simplifies their implementations, and removes duplicated test cases.
spring-test/src/test/java/org/springframework/test/context/transaction/manager/LookUpTxMgrViaTransactionManagementConfigurerTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 the original author or authors. + * Copyright 2002-2020 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. @@ -14,17 +14,15 @@ * limitations under the L...
true
Other
spring-projects
spring-framework
a42944d3644e7b3100445b463574b2a52e37aa1e.json
Consolidate TxMgr lookup tests in the TCF This commit consolidates TransactionManager lookup tests in the Spring TestContext Framework (TCF), migrates some to JUnit Jupiter, simplifies their implementations, and removes duplicated test cases.
spring-test/src/test/java/org/springframework/test/context/transaction/manager/PrimaryTransactionManagerTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 the original author or authors. + * Copyright 2002-2020 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. @@ -14,7 +14,7 @@ * limitations under the Lic...
true
Other
spring-projects
spring-framework
9f0ce09cf01e027fc65f085bade22545c3e5c70b.json
Update copyright date
spring-web/src/main/java/org/springframework/web/util/pattern/PathPattern.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 the original author or authors. + * Copyright 2002-2020 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.
false
Other
spring-projects
spring-framework
0636ba68d76727daba0e7a54ff06d447f33c5225.json
Fix Javadoc in PathPattern (#24841) * corrected javadoc * Revert change to PathPattern Javadoc Co-authored-by: Sam Brannen <sbrannen@pivotal.io>
spring-web/src/main/java/org/springframework/web/util/pattern/PathPattern.java
@@ -59,8 +59,8 @@ * <li><code>/resources/{&#42;path}</code> &mdash; matches all files * underneath the {@code /resources/} path and captures their relative path in * a variable named "path"; {@code /resources/image.png} will match with - * "spring" &rarr; "/image.png", and {@code /resources/css/spring.css} will m...
false
Other
spring-projects
spring-framework
897557fd1b14a169e017f262b5336b84da23369e.json
Fix faulty tests The tests were doing Callable async request processing in the main thread which was already bound (via HandlerInterceptor#preProcess). This leads to an ISE from TransactionSynchronizationManager#bindResource but it went unnoticed because there is no Servlet container and no async dispatch to continue ...
spring-orm/src/test/java/org/springframework/orm/jpa/support/OpenEntityManagerInViewTests.java
@@ -17,6 +17,8 @@ package org.springframework.orm.jpa.support; import java.util.concurrent.Callable; +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import javax.persistence.EntityManager; @@ -71,6 +73,8 @@ public class OpenEn...
false
Other
spring-projects
spring-framework
7d0f48289ba60938cdbf9bbaa1ceb58f44052c84.json
Improve error handling in WebAsyncManager See gh-24835
spring-web/src/main/java/org/springframework/web/context/request/async/WebAsyncManager.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 the original author or authors. + * Copyright 2002-2020 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. @@ -85,6 +85,13 @@ public final class WebAsyncM...
false
Other
spring-projects
spring-framework
65a395ef0e96c5e5ce28526d1fe975daaa566b0d.json
Fix syntax in Kotlin example
src/docs/asciidoc/testing.adoc
@@ -8183,8 +8183,8 @@ assertions use the https://joel-costigliola.github.io/assertj/[AssertJ] assertio [source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"] .Kotlin ---- - assertThat(viewMessagePage.message.isEqualTo(expectedMessage) - assertThat(viewMessagePage.success.isEqualTo("Successfully created a n...
false
Other
spring-projects
spring-framework
0cf5005a3d8bfe387ccc970c95953351fc83fbe5.json
Apply abortOnCancel in JettyClientHttpConnector This new option allows a cancel signal to abort the request, which is how we expect a connection to be aborted in a reactive chain that involves the WebClient. Closes gh-26287
spring-web/src/main/java/org/springframework/http/client/reactive/JettyClientHttpConnector.java
@@ -123,7 +123,7 @@ public Mono<ClientHttpResponse> connect(HttpMethod method, URI uri, Request request = this.httpClient.newRequest(uri).method(method.toString()); return requestCallback.apply(new JettyClientHttpRequest(request, this.bufferFactory)) - .then(Mono.fromDirect(ReactiveRequest.newBuilder(request...
false
Other
spring-projects
spring-framework
1292947f7837c2716d6e0335698af450d4f12732.json
Introduce computeAttribute() in AttributeAccessor This commit introduces computeAttribute() as an interface default method in the AttributeAccessor API. This serves as a convenience analogous to the computeIfAbsent() method in java.util.Map. Closes gh-26281
spring-core/src/main/java/org/springframework/core/AttributeAccessor.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2020 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. @@ -16,20 +16,24 @@ package org.springframew...
true
Other
spring-projects
spring-framework
1292947f7837c2716d6e0335698af450d4f12732.json
Introduce computeAttribute() in AttributeAccessor This commit introduces computeAttribute() as an interface default method in the AttributeAccessor API. This serves as a convenience analogous to the computeIfAbsent() method in java.util.Map. Closes gh-26281
spring-core/src/main/java/org/springframework/core/AttributeAccessorSupport.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2020 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. @@ -19,6 +19,7 @@ import java.io.Serializable;...
true
Other
spring-projects
spring-framework
1292947f7837c2716d6e0335698af450d4f12732.json
Introduce computeAttribute() in AttributeAccessor This commit introduces computeAttribute() as an interface default method in the AttributeAccessor API. This serves as a convenience analogous to the computeIfAbsent() method in java.util.Map. Closes gh-26281
spring-core/src/test/java/org/springframework/core/AttributeAccessorSupportTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 the original author or authors. + * Copyright 2002-2020 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. @@ -17,53 +17,75 @@ package org.springframewor...
true
Other
spring-projects
spring-framework
1292947f7837c2716d6e0335698af450d4f12732.json
Introduce computeAttribute() in AttributeAccessor This commit introduces computeAttribute() as an interface default method in the AttributeAccessor API. This serves as a convenience analogous to the computeIfAbsent() method in java.util.Map. Closes gh-26281
spring-test/src/main/java/org/springframework/test/context/support/DefaultTestContext.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 the original author or authors. + * Copyright 2002-2020 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. @@ -19,6 +19,7 @@ import java.lang.reflect.Met...
true
Other
spring-projects
spring-framework
a11d1c8510c34cdb0889a13af969c3cf424464f3.json
Enrich WebSocketHandler context Closes gh-26210
spring-webflux/src/main/java/org/springframework/web/reactive/socket/adapter/ContextWebSocketHandler.java
@@ -0,0 +1,64 @@ +/* + * Copyright 2002-2020 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
a11d1c8510c34cdb0889a13af969c3cf424464f3.json
Enrich WebSocketHandler context Closes gh-26210
spring-webflux/src/main/java/org/springframework/web/reactive/socket/client/JettyWebSocketClient.java
@@ -16,6 +16,7 @@ package org.springframework.web.reactive.socket.client; +import java.io.IOException; import java.net.URI; import org.apache.commons.logging.Log; @@ -33,6 +34,7 @@ import org.springframework.http.HttpHeaders; import org.springframework.web.reactive.socket.HandshakeInfo; import org.springfra...
true
Other
spring-projects
spring-framework
a11d1c8510c34cdb0889a13af969c3cf424464f3.json
Enrich WebSocketHandler context Closes gh-26210
spring-webflux/src/main/java/org/springframework/web/reactive/socket/client/StandardWebSocketClient.java
@@ -39,6 +39,7 @@ import org.springframework.http.HttpHeaders; import org.springframework.web.reactive.socket.HandshakeInfo; import org.springframework.web.reactive.socket.WebSocketHandler; +import org.springframework.web.reactive.socket.adapter.ContextWebSocketHandler; import org.springframework.web.reactive.socke...
true
Other
spring-projects
spring-framework
a11d1c8510c34cdb0889a13af969c3cf424464f3.json
Enrich WebSocketHandler context Closes gh-26210
spring-webflux/src/main/java/org/springframework/web/reactive/socket/client/UndertowWebSocketClient.java
@@ -42,6 +42,7 @@ import org.springframework.util.Assert; import org.springframework.web.reactive.socket.HandshakeInfo; import org.springframework.web.reactive.socket.WebSocketHandler; +import org.springframework.web.reactive.socket.adapter.ContextWebSocketHandler; import org.springframework.web.reactive.socket.ada...
true
Other
spring-projects
spring-framework
a11d1c8510c34cdb0889a13af969c3cf424464f3.json
Enrich WebSocketHandler context Closes gh-26210
spring-webflux/src/main/java/org/springframework/web/reactive/socket/server/upgrade/JettyRequestUpgradeStrategy.java
@@ -16,6 +16,7 @@ package org.springframework.web.reactive.socket.server.upgrade; +import java.io.IOException; import java.util.function.Supplier; import javax.servlet.ServletContext; @@ -39,6 +40,7 @@ import org.springframework.util.Assert; import org.springframework.web.reactive.socket.HandshakeInfo; impo...
true
Other
spring-projects
spring-framework
a11d1c8510c34cdb0889a13af969c3cf424464f3.json
Enrich WebSocketHandler context Closes gh-26210
spring-webflux/src/main/java/org/springframework/web/reactive/socket/server/upgrade/TomcatRequestUpgradeStrategy.java
@@ -38,6 +38,7 @@ import org.springframework.util.Assert; import org.springframework.web.reactive.socket.HandshakeInfo; import org.springframework.web.reactive.socket.WebSocketHandler; +import org.springframework.web.reactive.socket.adapter.ContextWebSocketHandler; import org.springframework.web.reactive.socket.ada...
true
Other
spring-projects
spring-framework
a11d1c8510c34cdb0889a13af969c3cf424464f3.json
Enrich WebSocketHandler context Closes gh-26210
spring-webflux/src/main/java/org/springframework/web/reactive/socket/server/upgrade/UndertowRequestUpgradeStrategy.java
@@ -37,6 +37,7 @@ import org.springframework.lang.Nullable; import org.springframework.web.reactive.socket.HandshakeInfo; import org.springframework.web.reactive.socket.WebSocketHandler; +import org.springframework.web.reactive.socket.adapter.ContextWebSocketHandler; import org.springframework.web.reactive.socket.a...
true
Other
spring-projects
spring-framework
a11d1c8510c34cdb0889a13af969c3cf424464f3.json
Enrich WebSocketHandler context Closes gh-26210
spring-webflux/src/test/java/org/springframework/web/reactive/socket/AbstractWebSocketIntegrationTests.java
@@ -43,6 +43,7 @@ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.http.server.reactive.HttpHandler; +import org.springframework.web.filter.reactive.ServerWebExchangeContextFilter; import org.springframework.web.reactive.Disp...
true
Other
spring-projects
spring-framework
a11d1c8510c34cdb0889a13af969c3cf424464f3.json
Enrich WebSocketHandler context Closes gh-26210
spring-webflux/src/test/java/org/springframework/web/reactive/socket/WebSocketIntegrationTests.java
@@ -33,6 +33,7 @@ import org.springframework.context.annotation.Configuration; import org.springframework.http.HttpHeaders; import org.springframework.http.ResponseCookie; +import org.springframework.web.filter.reactive.ServerWebExchangeContextFilter; import org.springframework.web.reactive.HandlerMapping; import ...
true
Other
spring-projects
spring-framework
721dacca5ae49afadf5f9801dbe673594bc99757.json
Upgrade JDK8, JDK11 and JDK15 versions in CI build
ci/images/get-jdk-url.sh
@@ -3,16 +3,16 @@ set -e case "$1" in java8) - echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u265-b01/OpenJDK8U-jdk_x64_linux_hotspot_8u265b01.tar.gz" + echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u275-b01/OpenJDK8U-jdk_x64_linux_hotspot_8u275b0...
false
Other
spring-projects
spring-framework
9d124fffcbe1a4167a251b267bf2cc763bb2d3ec.json
Fix typo in Javadoc for AbstractJdbcCall Closes gh-26254
spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/AbstractJdbcCall.java
@@ -433,7 +433,7 @@ protected List<SqlParameter> getCallParameters() { /** * Match the provided in parameter values with registered parameters and * parameters defined via meta-data processing. - * @param parameterSource the parameter vakues provided as a {@link SqlParameterSource} + * @param parameterSource ...
false
Other
spring-projects
spring-framework
ad420107852bafa141dcd68120be6d6a24153bf8.json
Correlate data buffers to request log messages HttpMessageWriter implementations now attach the request log prefix as a hint to created data buffers when the logger associated with the writer is at DEBUG level. Closes gh-26230
spring-core/src/main/java/org/springframework/core/codec/Hints.java
@@ -21,6 +21,8 @@ import org.apache.commons.logging.Log; +import org.springframework.core.io.buffer.DataBuffer; +import org.springframework.core.io.buffer.DataBufferUtils; import org.springframework.lang.Nullable; import org.springframework.util.CollectionUtils; @@ -148,4 +150,22 @@ public static Map<String, O...
true
Other
spring-projects
spring-framework
ad420107852bafa141dcd68120be6d6a24153bf8.json
Correlate data buffers to request log messages HttpMessageWriter implementations now attach the request log prefix as a hint to created data buffers when the logger associated with the writer is at DEBUG level. Closes gh-26230
spring-core/src/main/java/org/springframework/core/codec/ResourceRegionEncoder.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 the original author or authors. + * Copyright 2002-2020 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. @@ -130,6 +130,9 @@ private Flux<DataBuffer> wr...
true
Other
spring-projects
spring-framework
ad420107852bafa141dcd68120be6d6a24153bf8.json
Correlate data buffers to request log messages HttpMessageWriter implementations now attach the request log prefix as a hint to created data buffers when the logger associated with the writer is at DEBUG level. Closes gh-26230
spring-core/src/main/java/org/springframework/core/io/buffer/DataBufferUtils.java
@@ -487,6 +487,24 @@ public static <T extends DataBuffer> T retain(T dataBuffer) { } } + /** + * Associate the given hint with the data buffer if it is a pooled buffer + * and supports leak tracking. + * @param dataBuffer the data buffer to attach the hint to + * @param hint the hint to attach + * @return t...
true
Other
spring-projects
spring-framework
ad420107852bafa141dcd68120be6d6a24153bf8.json
Correlate data buffers to request log messages HttpMessageWriter implementations now attach the request log prefix as a hint to created data buffers when the logger associated with the writer is at DEBUG level. Closes gh-26230
spring-core/src/main/java/org/springframework/core/io/buffer/NettyDataBuffer.java
@@ -315,6 +315,12 @@ public PooledDataBuffer retain() { return new NettyDataBuffer(this.byteBuf.retain(), this.dataBufferFactory); } + @Override + public PooledDataBuffer touch(Object hint) { + this.byteBuf.touch(hint); + return this; + } + @Override public boolean release() { return this.byteBuf.releas...
true
Other
spring-projects
spring-framework
ad420107852bafa141dcd68120be6d6a24153bf8.json
Correlate data buffers to request log messages HttpMessageWriter implementations now attach the request log prefix as a hint to created data buffers when the logger associated with the writer is at DEBUG level. Closes gh-26230
spring-core/src/main/java/org/springframework/core/io/buffer/PooledDataBuffer.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2020 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. @@ -38,6 +38,13 @@ public interface PooledDataB...
true
Other
spring-projects
spring-framework
ad420107852bafa141dcd68120be6d6a24153bf8.json
Correlate data buffers to request log messages HttpMessageWriter implementations now attach the request log prefix as a hint to created data buffers when the logger associated with the writer is at DEBUG level. Closes gh-26230
spring-core/src/testFixtures/java/org/springframework/core/testfixture/io/buffer/LeakAwareDataBuffer.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 the original author or authors. + * Copyright 2002-2020 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. @@ -17,6 +17,7 @@ package org.springframework....
true
Other
spring-projects
spring-framework
ad420107852bafa141dcd68120be6d6a24153bf8.json
Correlate data buffers to request log messages HttpMessageWriter implementations now attach the request log prefix as a hint to created data buffers when the logger associated with the writer is at DEBUG level. Closes gh-26230
spring-web/src/main/java/org/springframework/http/codec/EncoderHttpMessageWriter.java
@@ -57,6 +57,9 @@ */ public class EncoderHttpMessageWriter<T> implements HttpMessageWriter<T> { + private static final Log logger = HttpLogging.forLogName(EncoderHttpMessageWriter.class); + + private final Encoder<T> encoder; private final List<MediaType> mediaTypes; @@ -125,17 +128,23 @@ public Mono<Void> w...
true
Other
spring-projects
spring-framework
ad420107852bafa141dcd68120be6d6a24153bf8.json
Correlate data buffers to request log messages HttpMessageWriter implementations now attach the request log prefix as a hint to created data buffers when the logger associated with the writer is at DEBUG level. Closes gh-26230
spring-web/src/main/java/org/springframework/http/codec/ResourceHttpMessageWriter.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 the original author or authors. + * Copyright 2002-2020 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. @@ -132,6 +132,9 @@ private Mono<Void> writeRes...
true
Other
spring-projects
spring-framework
ad420107852bafa141dcd68120be6d6a24153bf8.json
Correlate data buffers to request log messages HttpMessageWriter implementations now attach the request log prefix as a hint to created data buffers when the logger associated with the writer is at DEBUG level. Closes gh-26230
spring-web/src/main/java/org/springframework/http/codec/ServerSentEventHttpMessageWriter.java
@@ -23,6 +23,7 @@ import java.util.List; import java.util.Map; +import org.apache.commons.logging.Log; import org.reactivestreams.Publisher; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -35,6 +36,7 @@ import org.springframework.core.io.buffer.DataBufferFactory; import org.springfr...
true
Other
spring-projects
spring-framework
ad420107852bafa141dcd68120be6d6a24153bf8.json
Correlate data buffers to request log messages HttpMessageWriter implementations now attach the request log prefix as a hint to created data buffers when the logger associated with the writer is at DEBUG level. Closes gh-26230
spring-web/src/main/java/org/springframework/http/codec/multipart/MultipartHttpMessageWriter.java
@@ -199,6 +199,10 @@ private Mono<Void> writeMultipart(MultiValueMap<String, ?> map, .concatWith(generateLastLine(boundary, bufferFactory)) .doOnDiscard(PooledDataBuffer.class, DataBufferUtils::release); + if (logger.isDebugEnabled()) { + body = body.doOnNext(buffer -> Hints.touchDataBuffer(buffer, hints...
true
Other
spring-projects
spring-framework
ad420107852bafa141dcd68120be6d6a24153bf8.json
Correlate data buffers to request log messages HttpMessageWriter implementations now attach the request log prefix as a hint to created data buffers when the logger associated with the writer is at DEBUG level. Closes gh-26230
spring-web/src/main/java/org/springframework/http/codec/multipart/PartHttpMessageWriter.java
@@ -69,6 +69,10 @@ public Mono<Void> write(Publisher<? extends Part> parts, .concatWith(generateLastLine(boundary, outputMessage.bufferFactory())) .doOnDiscard(PooledDataBuffer.class, DataBufferUtils::release); + if (logger.isDebugEnabled()) { + body = body.doOnNext(buffer -> Hints.touchDataBuffer(buffer...
true
Other
spring-projects
spring-framework
5efa4ad4429f078c58789da8bdcd07ca139da4aa.json
Pull images with registry-image resource in build
ci/pipeline.yml
@@ -37,17 +37,17 @@ anchors: resource_types: - name: artifactory-resource - type: docker-image + type: registry-image source: repository: springio/artifactory-resource tag: 0.0.12 - name: github-status-resource - type: docker-image + type: registry-image source: repository: dpb587/github-s...
false
Other
spring-projects
spring-framework
e4b493456b6f2bae10748e02a5663b1bb46bd21d.json
Remove custom EnumerationIterator This commit removes our custom EnumerationIterator, in favor of Enumeration::asIterator (since JDK 9).
spring-core/src/main/java/org/springframework/util/CollectionUtils.java
@@ -233,15 +233,14 @@ public static boolean containsAny(Collection<?> source, Collection<?> candidates * @param candidates the candidates to search for * @return the first present object, or {@code null} if not found */ - @SuppressWarnings("unchecked") @Nullable public static <E> E findFirstMatch(Collectio...
false
Other
spring-projects
spring-framework
bad87be30630b9a3283e092ea70b5579a8c6a9ad.json
Fix checkstyle warning See gh-27569
spring-web/src/main/java/org/springframework/web/client/DefaultResponseErrorHandler.java
@@ -123,7 +123,7 @@ public void handleError(ClientHttpResponse response) throws IOException { } /** - * Return error message with details from the response body: + * Return error message with details from the response body. For example: * <pre> * 404 Not Found: [{'id': 123, 'message': 'my message'}] * ...
false
Other
spring-projects
spring-framework
346b75580267dc5d8d257be198d5841ce4e1add5.json
Fix assertion message in DefaultDataBuffer Closes gh-27567
spring-core/src/main/java/org/springframework/core/io/buffer/DefaultDataBuffer.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2020 the original author or authors. + * Copyright 2002-2021 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. @@ -462,9 +462,9 @@ public String toString() { ...
false
Other
spring-projects
spring-framework
4978eeff7fe399dff75a800679e50fee4afba130.json
Update Javadoc in DefaultResponseErrorHandler Closes gh-27569
spring-web/src/main/java/org/springframework/web/client/DefaultResponseErrorHandler.java
@@ -123,9 +123,9 @@ public void handleError(ClientHttpResponse response) throws IOException { } /** - * Return error message with details from the response body, possibly truncated: + * Return error message with details from the response body: * <pre> - * 404 Not Found: [{'id': 123, 'message': 'my very long...
false
Other
spring-projects
spring-framework
76c9306dda572ab1be9b888feeb7b56ceb989d85.json
Adjust logging of resource locations
spring-webflux/src/main/java/org/springframework/web/reactive/resource/ResourceWebHandler.java
@@ -304,11 +304,6 @@ public void setUseLastModified(boolean useLastModified) { public void afterPropertiesSet() throws Exception { resolveResourceLocations(); - if (logger.isWarnEnabled() && CollectionUtils.isEmpty(getLocations())) { - logger.warn("Locations list is empty. No resources will be served unless a...
true
Other
spring-projects
spring-framework
76c9306dda572ab1be9b888feeb7b56ceb989d85.json
Adjust logging of resource locations
spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java
@@ -392,11 +392,6 @@ public void setUseLastModified(boolean useLastModified) { public void afterPropertiesSet() throws Exception { resolveResourceLocations(); - if (logger.isWarnEnabled() && CollectionUtils.isEmpty(getLocations())) { - logger.warn("Locations list is empty. No resources will be served unless a...
true
Other
spring-projects
spring-framework
63c6a7e15efe741adc38a4bccaef389468bb808b.json
Update copyright date
spring-aop/src/main/java/org/springframework/aop/aspectj/AbstractAspectJAdvice.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2020 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
63c6a7e15efe741adc38a4bccaef389468bb808b.json
Update copyright date
spring-aop/src/main/java/org/springframework/aop/aspectj/AspectJAroundAdvice.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2020 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
63c6a7e15efe741adc38a4bccaef389468bb808b.json
Update copyright date
spring-aop/src/main/java/org/springframework/aop/aspectj/AspectJPointcutAdvisor.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
63c6a7e15efe741adc38a4bccaef389468bb808b.json
Update copyright date
spring-aop/src/main/java/org/springframework/aop/config/AspectJAutoProxyBeanDefinitionParser.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
63c6a7e15efe741adc38a4bccaef389468bb808b.json
Update copyright date
spring-aop/src/main/java/org/springframework/aop/config/ConfigBeanDefinitionParser.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
63c6a7e15efe741adc38a4bccaef389468bb808b.json
Update copyright date
spring-aop/src/main/java/org/springframework/aop/config/ScopedProxyBeanDefinitionDecorator.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
63c6a7e15efe741adc38a4bccaef389468bb808b.json
Update copyright date
spring-aop/src/main/java/org/springframework/aop/framework/AdvisedSupport.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2020 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
63c6a7e15efe741adc38a4bccaef389468bb808b.json
Update copyright date
spring-aop/src/main/java/org/springframework/aop/framework/ProxyFactoryBean.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2020 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
63c6a7e15efe741adc38a4bccaef389468bb808b.json
Update copyright date
spring-aop/src/main/java/org/springframework/aop/framework/adapter/DefaultAdvisorAdapterRegistry.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
63c6a7e15efe741adc38a4bccaef389468bb808b.json
Update copyright date
spring-aop/src/main/java/org/springframework/aop/interceptor/ExposeBeanNameAdvisors.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2020 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
63c6a7e15efe741adc38a4bccaef389468bb808b.json
Update copyright date
spring-aop/src/main/java/org/springframework/aop/scope/ScopedProxyFactoryBean.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
63c6a7e15efe741adc38a4bccaef389468bb808b.json
Update copyright date
spring-aop/src/main/java/org/springframework/aop/support/AbstractPointcutAdvisor.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2017 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
63c6a7e15efe741adc38a4bccaef389468bb808b.json
Update copyright date
spring-aop/src/main/java/org/springframework/aop/support/AbstractRegexpMethodPointcut.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
63c6a7e15efe741adc38a4bccaef389468bb808b.json
Update copyright date
spring-aop/src/main/java/org/springframework/aop/support/AopUtils.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
63c6a7e15efe741adc38a4bccaef389468bb808b.json
Update copyright date
spring-aop/src/main/java/org/springframework/aop/support/ComposablePointcut.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
63c6a7e15efe741adc38a4bccaef389468bb808b.json
Update copyright date
spring-aop/src/main/java/org/springframework/aop/support/DelegatePerTargetObjectIntroductionInterceptor.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2017 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
63c6a7e15efe741adc38a4bccaef389468bb808b.json
Update copyright date
spring-aop/src/main/java/org/springframework/aop/support/MethodMatchers.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
63c6a7e15efe741adc38a4bccaef389468bb808b.json
Update copyright date
spring-aop/src/main/java/org/springframework/aop/support/annotation/AnnotationClassFilter.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
63c6a7e15efe741adc38a4bccaef389468bb808b.json
Update copyright date
spring-aop/src/main/java/org/springframework/aop/support/annotation/AnnotationMatchingPointcut.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
63c6a7e15efe741adc38a4bccaef389468bb808b.json
Update copyright date
spring-aop/src/main/java/org/springframework/aop/support/annotation/AnnotationMethodMatcher.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
63c6a7e15efe741adc38a4bccaef389468bb808b.json
Update copyright date
spring-aop/src/main/java/org/springframework/aop/target/EmptyTargetSource.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
63c6a7e15efe741adc38a4bccaef389468bb808b.json
Update copyright date
spring-aop/src/main/java/org/springframework/aop/target/SingletonTargetSource.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
fba92c012042a48443a169cf3f42dabb542aa8c1.json
Update copyright date
spring-test/src/main/java/org/springframework/mock/env/MockEnvironment.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
fba92c012042a48443a169cf3f42dabb542aa8c1.json
Update copyright date
spring-test/src/main/java/org/springframework/test/context/cache/DefaultCacheAwareContextLoaderDelegate.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
fba92c012042a48443a169cf3f42dabb542aa8c1.json
Update copyright date
spring-test/src/main/java/org/springframework/test/context/support/AbstractTestContextBootstrapper.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2020 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
fba92c012042a48443a169cf3f42dabb542aa8c1.json
Update copyright date
spring-test/src/main/java/org/springframework/test/context/support/DefaultTestContext.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2020 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
fba92c012042a48443a169cf3f42dabb542aa8c1.json
Update copyright date
spring-test/src/main/java/org/springframework/test/context/transaction/TestContextTransactionUtils.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2020 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
fba92c012042a48443a169cf3f42dabb542aa8c1.json
Update copyright date
spring-test/src/main/java/org/springframework/test/context/web/ServletTestExecutionListener.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2017 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
fba92c012042a48443a169cf3f42dabb542aa8c1.json
Update copyright date
spring-test/src/main/java/org/springframework/test/context/web/socket/MockServerContainerContextCustomizer.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2017 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
fba92c012042a48443a169cf3f42dabb542aa8c1.json
Update copyright date
spring-test/src/main/java/org/springframework/test/web/client/response/DefaultResponseCreator.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2017 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
fba92c012042a48443a169cf3f42dabb542aa8c1.json
Update copyright date
spring-test/src/main/java/org/springframework/test/web/servlet/client/AbstractMockMvcServerSpec.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2020 the original author or authors. + * Copyright 2002-2021 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.
true
Other
spring-projects
spring-framework
0705454ce012b6390ba50744f59a98223c0464a6.json
Fix typo in Javadoc See gh-27484
spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/PathMatchConfigurer.java
@@ -120,7 +120,7 @@ public PathMatchConfigurer addPathPrefix(String prefix, Predicate<Class<?>> pred /** * Whether to use suffix pattern match (".*") when matching patterns to * requests. If enabled a method mapped to "/users" also matches to "/users.*". - * <p>By default this is set to {@code true}. + * <p>B...
false
Other
spring-projects
spring-framework
1e3996ea78f8540217037ebad8899ee9b6c9cab9.json
Upgrade SmallRye Mutiny to 1.1.1 Closes gh-27555
build.gradle
@@ -68,7 +68,7 @@ configure(allprojects) { project -> dependency "io.reactivex:rxjava-reactive-streams:1.2.1" dependency "io.reactivex.rxjava2:rxjava:2.2.21" dependency "io.reactivex.rxjava3:rxjava:3.1.1" - dependency "io.smallrye.reactive:mutiny:1.0.0" + dependency "io.smallrye.reactive:mutiny:1.1.1" ...
false
Other
spring-projects
spring-framework
070d087dbcc96360887fc6e97064c3cd2480881d.json
Reinstate -Werror for Groovy compilation This commit partially reverts cf2429b0f0ce2a5278bdc2556663caf6cf0b0cae in order to reinstate -Werror for Groovy compilation in spring-beans. The `decorating` field in GroovyDynamicElementReader has been changed from boolean to Boolean in order to avoid the JDK 17 deprecation w...
spring-beans/spring-beans.gradle
@@ -23,8 +23,7 @@ sourceSets { } compileGroovy { - // Groovy generates Java code with "new Boolean" usage which is deprecated on JDK 17 - // options.compilerArgs += "-Werror" + options.compilerArgs += "-Werror" } // This module also builds Kotlin code and the compileKotlin task naturally depends on
true
Other
spring-projects
spring-framework
070d087dbcc96360887fc6e97064c3cd2480881d.json
Reinstate -Werror for Groovy compilation This commit partially reverts cf2429b0f0ce2a5278bdc2556663caf6cf0b0cae in order to reinstate -Werror for Groovy compilation in spring-beans. The `decorating` field in GroovyDynamicElementReader has been changed from boolean to Boolean in order to avoid the JDK 17 deprecation w...
spring-beans/src/main/groovy/org/springframework/beans/factory/groovy/GroovyDynamicElementReader.groovy
@@ -40,7 +40,7 @@ class GroovyDynamicElementReader extends GroovyObjectSupport { private final GroovyBeanDefinitionWrapper beanDefinition - protected final boolean decorating; + protected final Boolean decorating; private boolean callAfterInvocation = true
true
Other
spring-projects
spring-framework
40c51efee806fbb36de4f3337d76c36cb31aac65.json
Introduce @Suite for TestNG tests In order to allow developers to execute TestNG tests in Eclipse IDE without installing the TestNG plugin for Eclipse, this commit introduces a JUnit Platform @Suite class that can be executed within the IDE. See gh-27407
spring-test/src/test/java/org/springframework/test/context/testng/TestNGTestSuite.java
@@ -0,0 +1,46 @@ +/* + * Copyright 2002-2021 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 +...
false
Other
spring-projects
spring-framework
3beb07427817069d405f22729c4f0c35b67f7948.json
Remove support for RxJava 1.x Also removes unnecessary flowPublisherPresent check on JDK 9+, depending on Reactor presence for its JDK Flow adapter instead. Closes gh-27443
build.gradle
@@ -64,8 +64,6 @@ configure(allprojects) { project -> entry 'groovy-xml' } - dependency "io.reactivex:rxjava:1.3.8" - dependency "io.reactivex:rxjava-reactive-streams:1.2.1" dependency "io.reactivex.rxjava2:rxjava:2.2.21" dependency "io.reactivex.rxjava3:rxjava:3.1.1" dependency "io.smallrye....
true
Other
spring-projects
spring-framework
3beb07427817069d405f22729c4f0c35b67f7948.json
Remove support for RxJava 1.x Also removes unnecessary flowPublisherPresent check on JDK 9+, depending on Reactor presence for its JDK Flow adapter instead. Closes gh-27443
spring-core/spring-core.gradle
@@ -44,8 +44,6 @@ dependencies { optional("org.jetbrains.kotlinx:kotlinx-coroutines-core") optional("org.jetbrains.kotlinx:kotlinx-coroutines-reactor") optional("io.projectreactor:reactor-core") - optional("io.reactivex:rxjava") - optional("io.reactivex:rxjava-reactive-streams") optional("io.reactivex.rxjava2:r...
true
Other
spring-projects
spring-framework
3beb07427817069d405f22729c4f0c35b67f7948.json
Remove support for RxJava 1.x Also removes unnecessary flowPublisherPresent check on JDK 9+, depending on Reactor presence for its JDK Flow adapter instead. Closes gh-27443
spring-core/src/main/java/org/springframework/core/ReactiveAdapterRegistry.java
@@ -32,7 +32,6 @@ import reactor.blockhound.integration.BlockHoundIntegration; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -import rx.RxReactiveStreams; import org.springframework.lang.Nullable; import org.springframework.util.ClassUtils; @@ -44,15 +43,12 @@ * {@code Observable}, an...
true
Other
spring-projects
spring-framework
3beb07427817069d405f22729c4f0c35b67f7948.json
Remove support for RxJava 1.x Also removes unnecessary flowPublisherPresent check on JDK 9+, depending on Reactor presence for its JDK Flow adapter instead. Closes gh-27443
spring-core/src/test/java/org/springframework/core/ReactiveAdapterRegistryTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2020 the original author or authors. + * Copyright 2002-2021 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. @@ -35,6 +35,7 @@ /** * Unit tests for {@l...
true
Other
spring-projects
spring-framework
e29867b96e835a53d0222ad666273b5e93c800a6.json
Exclude TestCase classes in spring-test build When not excluded, TestNG will pick up nested TestCase classes and run them. This commit therefore filters out `*TestCase` test classes from the build since these are not intended to be executed with the build. See gh-27406
spring-test/spring-test.gradle
@@ -93,6 +93,7 @@ test { // the latter results in some tests being executed/reported // multiple times. include(["**/*Tests.class", "**/*Test.class"]) + filter.excludeTestsMatching("*TestCase") systemProperty("testGroups", project.properties.get("testGroups")) // Java Util Logging for the JUnit Platform. //...
false
Other
spring-projects
spring-framework
01426481ea0287a7f2cf889493919031dcd41b14.json
Enforce timeout in WebFlux multipart tests
spring-webflux/src/test/java/org/springframework/web/reactive/function/MultipartIntegrationTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 the original author or authors. + * Copyright 2002-2021 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. @@ -20,6 +20,7 @@ import java.nio.file.Files; ...
false
Other
spring-projects
spring-framework
8b5f5d9f653d0656787e285065f5bdd66fc9427e.json
Fix multipart request test with Jetty server See gh-27424
spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/RequestPartIntegrationTests.java
@@ -139,17 +139,16 @@ public void standardMultipartResolver() throws Exception { @Test // SPR-13319 public void standardMultipartResolverWithEncodedFileName() throws Exception { - byte[] boundary = MimeTypeUtils.generateMultipartBoundary(); - String boundaryText = new String(boundary, "US-ASCII"); + String bo...
false
Other
spring-projects
spring-framework
513cc1576e5860b5bd953351850cabd1a0d6e385.json
Fix Jetty WebSocket test failures for WebFlux See gh-27424
spring-web/spring-web.gradle
@@ -82,4 +82,5 @@ dependencies { testFixturesImplementation("org.bouncycastle:bcpkix-jdk15on") { because("needed by Netty's SelfSignedCertificate on JDK 15+") } + testFixturesImplementation("org.eclipse.jetty.websocket:websocket-jetty-server") }
true
Other
spring-projects
spring-framework
513cc1576e5860b5bd953351850cabd1a0d6e385.json
Fix Jetty WebSocket test failures for WebFlux See gh-27424
spring-web/src/testFixtures/java/org/springframework/web/testfixture/http/server/reactive/bootstrap/JettyHttpServer.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * Copyright 2002-2021 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. @@ -20,6 +20,7 @@ import org.eclipse.jetty.ser...
true
Other
spring-projects
spring-framework
513cc1576e5860b5bd953351850cabd1a0d6e385.json
Fix Jetty WebSocket test failures for WebFlux See gh-27424
spring-webflux/src/main/java/org/springframework/web/reactive/socket/client/JettyWebSocketClient.java
@@ -142,6 +142,7 @@ private Mono<Void> executeInternal(URI url, HttpHeaders headers, WebSocketHandle Object jettyHandler = createHandler( url, ContextWebSocketHandler.decorate(handler, contextView), completionSink); ClientUpgradeRequest request = new ClientUpgradeRequest(); + request.setHeaders(headers)...
true
Other
spring-projects
spring-framework
513cc1576e5860b5bd953351850cabd1a0d6e385.json
Fix Jetty WebSocket test failures for WebFlux See gh-27424
spring-webflux/src/main/java/org/springframework/web/reactive/socket/server/upgrade/JettyRequestUpgradeStrategy.java
@@ -16,27 +16,21 @@ package org.springframework.web.reactive.socket.server.upgrade; -import java.lang.reflect.Method; import java.util.function.Supplier; import jakarta.servlet.ServletContext; import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletResponse; -import org.aopalli...
true
Other
spring-projects
spring-framework
48875dc44fc019350a3b02bd9d04ade583021523.json
Fix Jetty WebSocket test failures See gh-27424
spring-websocket/src/main/java/org/springframework/web/socket/server/jetty/JettyRequestUpgradeStrategy.java
@@ -16,7 +16,6 @@ package org.springframework.web.socket.server.jetty; -import java.lang.reflect.Method; import java.lang.reflect.UndeclaredThrowableException; import java.security.Principal; import java.util.Collections; @@ -26,19 +25,15 @@ import jakarta.servlet.ServletContext; import jakarta.servlet.http.H...
true
Other
spring-projects
spring-framework
48875dc44fc019350a3b02bd9d04ade583021523.json
Fix Jetty WebSocket test failures See gh-27424
spring-websocket/src/test/java/org/springframework/web/socket/JettyWebSocketTestServer.java
@@ -27,6 +27,7 @@ import org.eclipse.jetty.servlet.FilterHolder; import org.eclipse.jetty.servlet.ServletContextHandler; import org.eclipse.jetty.servlet.ServletHolder; +import org.eclipse.jetty.websocket.server.config.JettyWebSocketServletContainerInitializer; import org.springframework.web.context.WebApplicatio...
true
Other
spring-projects
spring-framework
b732ff349509d2b174978c71fe522ee6aa6b57a8.json
Ensure mutable headers for Jetty WebFlux request In Jetty 10, request headers are immutable, see https://github.com/eclipse/jetty.project/pull/4777, but we need to remove/hide forwarded headers when they have been used. See gh-27424
spring-web/src/main/java/org/springframework/http/server/reactive/JettyHeadersAdapter.java
@@ -44,10 +44,10 @@ */ class JettyHeadersAdapter implements MultiValueMap<String, String> { - private final HttpFields headers; + private final HttpFields.Mutable headers; - JettyHeadersAdapter(HttpFields headers) { + JettyHeadersAdapter(HttpFields.Mutable headers) { this.headers = headers; } @@ -59,10 ...
true
Other
spring-projects
spring-framework
b732ff349509d2b174978c71fe522ee6aa6b57a8.json
Ensure mutable headers for Jetty WebFlux request In Jetty 10, request headers are immutable, see https://github.com/eclipse/jetty.project/pull/4777, but we need to remove/hide forwarded headers when they have been used. See gh-27424
spring-web/src/main/java/org/springframework/http/server/reactive/JettyHttpHandlerAdapter.java
@@ -84,7 +84,7 @@ private static final class JettyServerHttpRequest extends ServletServerHttpReque private static MultiValueMap<String, String> createHeaders(HttpServletRequest servletRequest) { Request request = getRequest(servletRequest); - HttpFields fields = request.getMetaData().getFields(); + HttpFie...
true
Other
spring-projects
spring-framework
3c8724ba3d0375e4a50354c15383972fee788e9c.json
Remove JiBX support Closes gh-27425
spring-oxm/src/main/java/org/springframework/oxm/config/JibxMarshallerBeanDefinitionParser.java
@@ -1,38 +0,0 @@ -/* - * Copyright 2002-2019 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. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 -...
true
Other
spring-projects
spring-framework
3c8724ba3d0375e4a50354c15383972fee788e9c.json
Remove JiBX support Closes gh-27425
spring-oxm/src/main/java/org/springframework/oxm/config/OxmNamespaceHandler.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 the original author or authors. + * Copyright 2002-2021 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. @@ -28,10 +28,8 @@ public class OxmNamespaceHa...
true
Other
spring-projects
spring-framework
3c8724ba3d0375e4a50354c15383972fee788e9c.json
Remove JiBX support Closes gh-27425
spring-oxm/src/main/java/org/springframework/oxm/jibx/JibxMarshaller.java
@@ -1,502 +0,0 @@ -/* - * Copyright 2002-2019 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. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 ...
true
Other
spring-projects
spring-framework
3c8724ba3d0375e4a50354c15383972fee788e9c.json
Remove JiBX support Closes gh-27425
spring-oxm/src/main/java/org/springframework/oxm/jibx/package-info.java
@@ -1,10 +0,0 @@ -/** - * Package providing integration of <a href="http://jibx.sourceforge.net/">JiBX</a> - * with Spring's O/X Mapping support. - */ -@NonNullApi -@NonNullFields -package org.springframework.oxm.jibx; - -import org.springframework.lang.NonNullApi; -import org.springframework.lang.NonNullFields;
true
Other
spring-projects
spring-framework
3c8724ba3d0375e4a50354c15383972fee788e9c.json
Remove JiBX support Closes gh-27425
spring-oxm/src/test/java/org/springframework/oxm/jibx/FlightType.java
@@ -1,40 +0,0 @@ -/* - * Copyright 2006-2012 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. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 -...
true
Other
spring-projects
spring-framework
3c8724ba3d0375e4a50354c15383972fee788e9c.json
Remove JiBX support Closes gh-27425
spring-oxm/src/test/java/org/springframework/oxm/jibx/Flights.java
@@ -1,36 +0,0 @@ -/* - * Copyright 2002-2016 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. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 -...
true