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 | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/http/server/reactive/UndertowServerHttpResponse.java | @@ -42,6 +42,7 @@
/**
* Adapt {@link ServerHttpResponse} to the Undertow {@link HttpServerExchange}.
+ *
* @author Marek Hawrylczak
* @author Rossen Stoyanchev
* @author Arjen Poutsma | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/web/client/reactive/BodyExtractor.java | @@ -22,11 +22,11 @@
import org.springframework.http.converter.reactive.HttpMessageConverter;
/**
- * A {@code BodyExtractor} extracts the content of a raw {@link ClientHttpResponse},
- * decoding the response body and using a target composition API.
+ * Contract to extract the content of a raw {@link ClientHttpResp... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/web/client/reactive/ClientWebRequest.java | @@ -27,15 +27,18 @@
import org.springframework.util.MultiValueMap;
/**
- * Holds all the application information required to build an actual HTTP client request.
- * <p>The request body is materialized by a {@code Publisher} of Objects and their type
- * by a {@code ResolvableType} instance; it should be later conv... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/web/client/reactive/ClientWebRequestBuilder.java | @@ -17,7 +17,7 @@
package org.springframework.web.client.reactive;
/**
- * Build {@link ClientWebRequest}s
+ * Build {@link ClientWebRequest}s.
*
* @author Brian Clozel
* @since 5.0 | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/web/client/reactive/ClientWebRequestBuilders.java | @@ -20,7 +20,8 @@
import org.springframework.http.HttpMethod;
/**
- * Static factory methods for {@link DefaultClientWebRequestBuilder ClientWebRequestBuilders}
+ * Static factory methods for {@link DefaultClientWebRequestBuilder
+ * ClientWebRequestBuilders}.
*
* @author Brian Clozel
* @since 5.0
@@ -47,7 +4... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/web/client/reactive/ClientWebRequestPostProcessor.java | @@ -17,8 +17,9 @@
package org.springframework.web.client.reactive;
/**
- * Allow post processing and/or wrapping the {@link ClientWebRequest} before
- * it's sent to the origin server.
+ * Contract to post-process the {@link ClientWebRequest} after it is created
+ * an initialized in order to mofidy or even wrap it... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/web/client/reactive/DefaultClientWebRequestBuilder.java | @@ -41,7 +41,7 @@
* Builds a {@link ClientHttpRequest} using a {@link Publisher}
* as request body.
*
- * <p>See static factory methods in {@link ClientWebRequestBuilders}
+ * <p>See static factory methods in {@link ClientWebRequestBuilders}.
*
* @author Brian Clozel
* @since 5.0 | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/web/client/reactive/ResponseErrorHandler.java | @@ -22,8 +22,8 @@
import org.springframework.http.converter.reactive.HttpMessageConverter;
/**
- * Strategy interface used by the {@link WebClient} to handle
- * errors in {@link ClientHttpResponse}s if needed.
+ * Strategy interface used by the {@link WebClient} to handle errors in
+ * {@link ClientHttpResponse}s ... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/web/client/reactive/WebClient.java | @@ -55,21 +55,23 @@
* <p>Here is a simple example of a GET request:
*
* <pre class="code">
+ * static imports: ClientWebRequestBuilder.*, ResponseExtractors.*
+ *
* // should be shared between HTTP calls
* WebClient client = new WebClient(new ReactorHttpClient());
*
* Mono<String> result = client
- ... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/web/client/reactive/WebClientErrorException.java | @@ -18,7 +18,6 @@
import java.util.List;
-import org.springframework.http.HttpStatus;
import org.springframework.http.client.reactive.ClientHttpResponse;
import org.springframework.http.converter.reactive.HttpMessageConverter;
@@ -31,15 +30,21 @@
@SuppressWarnings("serial")
public class WebClientErrorExcepti... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/web/client/reactive/WebClientException.java | @@ -19,8 +19,7 @@
import org.springframework.core.NestedRuntimeException;
/**
- * Base class for exceptions thrown by {@link WebClient} whenever
- * it encounters errors.
+ * Base class for exceptions thrown by {@link WebClient}.
*
* @author Brian Clozel
* @since 5.0
@@ -35,4 +34,5 @@ public WebClientExceptio... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/web/client/reactive/WebClientResponseException.java | @@ -24,7 +24,8 @@
import org.springframework.http.converter.reactive.HttpMessageConverter;
/**
- * Base class for exceptions associated with specific HTTP client response status codes.
+ * Base class for exceptions associated with specific HTTP client response
+ * status codes.
*
* @author Brian Clozel
* @sin... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/web/client/reactive/WebResponseActions.java | @@ -47,4 +47,5 @@ public interface WebResponseActions {
* </pre>
*/
<T> T extract(ResponseExtractor<T> extractor);
+
} | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/web/client/reactive/WebServerErrorException.java | @@ -32,13 +32,18 @@
public class WebServerErrorException extends WebClientResponseException {
/**
- * Construct a new instance of {@code HttpServerErrorException} based on a {@link ClientHttpResponse}
- * and {@link HttpMessageConverter}s to optionally help decoding the response body
- * @param clientResponse t... | true |
Other | spring-projects | spring-framework | 3e096ce810d6d7c19529a975f1b68eb0e91e4d47.json | Improve javadoc on reactive classes
Ensure type-level Javadoc in every class, comply with guidelines for
80 char on Javadoc, and minor polish. | spring-web/src/main/java/org/springframework/web/server/session/DefaultWebSession.java | @@ -30,6 +30,8 @@
import org.springframework.util.Assert;
/**
+ * Default implementation of {@link org.springframework.web.server.WebSession}.
+ *
* @author Rossen Stoyanchev
* @since 5.0
*/ | true |
Other | spring-projects | spring-framework | fe79219607bc577391d332093df7e7628cb8ea2a.json | Reorganize spring-web-reactive .gitignore | .gitignore | @@ -17,6 +17,7 @@ argfile*
pom.xml
activemq-data/
+classes/
/build
buildSrc/build
/spring-*/build | true |
Other | spring-projects | spring-framework | fe79219607bc577391d332093df7e7628cb8ea2a.json | Reorganize spring-web-reactive .gitignore | spring-web-reactive/.gitignore | @@ -1,10 +0,0 @@
-target
-.project
-.classpath
-.settings
-*.iml
-/.idea/
-bin
-.gradle
-/tomcat.*/
-build | true |
Other | spring-projects | spring-framework | 7ad02490d9f5601f35f14f8d6921a9a8e0943483.json | Upgrade build to Gradle 2.14.1 | build.gradle | @@ -1306,7 +1306,7 @@ configure(rootProject) {
task wrapper(type: Wrapper) {
description = "Generates gradlew[.bat] scripts"
- gradleVersion = "2.14"
+ gradleVersion = "2.14.1"
doLast() {
def gradleOpts = "-XX:MaxMetaspaceSize=1024m -Xmx1024m" | true |
Other | spring-projects | spring-framework | 7ad02490d9f5601f35f14f8d6921a9a8e0943483.json | Upgrade build to Gradle 2.14.1 | gradle/wrapper/gradle-wrapper.properties | @@ -1,6 +1,6 @@
-#Mon Jul 04 15:22:52 CEST 2016
+#Mon Jul 18 10:29:04 CEST 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-2.14-bin.zip
+distributionUrl=https\://services... | true |
Other | spring-projects | spring-framework | c86d49f329d59cf20d17f092d84b5557d60f5226.json | Fix CLA section | CONTRIBUTING.md | @@ -33,24 +33,10 @@ do not find something similar, please create a new JIRA issue before submitting
a pull request unless the change is truly trivial -- for example: typo fixes,
removing compiler warnings, etc.
-### Sign the Individual Contributor License Agreement (ICLA)
+### Sign the Contributor License Agreement... | false |
Other | spring-projects | spring-framework | a76a6b5c29d6ecd2aef89a310842448d5abf6942.json | Fix broken hyperlink
Closes gh-1114 | src/asciidoc/web-mvc.adoc | @@ -25,7 +25,7 @@ For an explanation of this principle, refer to __Expert Spring Web MVC and Web F
Seth Ladd and others; specifically see the section "A Look At Design," on page 117 of
the first edition. Alternatively, see
-* http://www.objectmentor.com/resources/articles/ocp.pdf[Bob Martin, The Open-Closed
+* http... | false |
Other | spring-projects | spring-framework | d3b051a9330de8bdd00ccff69d75a613d16f2cf5.json | Fix javadoc reference
Method is called nextBackOff() and not nextBackOffMillis().
Closes gh-1115 | spring-core/src/main/java/org/springframework/util/backoff/BackOff.java | @@ -26,7 +26,7 @@
* BackOffExecution exec = backOff.start();
*
* // In the operation recovery/retry loop:
- * long waitInterval = exec.nextBackOffMillis();
+ * long waitInterval = exec.nextBackOff();
* if (waitInterval == BackOffExecution.STOP) {
* // do not retry operation
* } | false |
Other | spring-projects | spring-framework | 53dd88437e81f8ef3c95ed36671048c2a7d4738e.json | Delete dead code in AnnotationAttributes | spring-core/src/main/java/org/springframework/core/annotation/AnnotationAttributes.java | @@ -17,15 +17,12 @@
package org.springframework.core.annotation;
import java.lang.annotation.Annotation;
-import java.lang.reflect.AnnotatedElement;
import java.lang.reflect.Array;
import java.util.Iterator;
import java.util.LinkedHashMap;
-import java.util.List;
import java.util.Map;
import org.springframew... | false |
Other | spring-projects | spring-framework | 1022683d1c122de07816346c980b25e174564c5a.json | Fix compiler warnings | spring-web-reactive/src/main/java/org/springframework/core/codec/CodecException.java | @@ -23,6 +23,7 @@
*
* @author Sebastien Deleuze
*/
+@SuppressWarnings("serial")
public class CodecException extends NestedRuntimeException {
public CodecException(String msg, Throwable cause) { | true |
Other | spring-projects | spring-framework | 1022683d1c122de07816346c980b25e174564c5a.json | Fix compiler warnings | spring-web-reactive/src/main/java/org/springframework/core/convert/support/MonoToCompletableFutureConverter.java | @@ -32,8 +32,8 @@
public class MonoToCompletableFutureConverter implements GenericConverter {
@Override
- public Set<ConvertiblePair> getConvertibleTypes() {
- Set<GenericConverter.ConvertiblePair> pairs = new LinkedHashSet<>();
+ public Set<GenericConverter.ConvertiblePair> getConvertibleTypes() {
+ Set<Generic... | true |
Other | spring-projects | spring-framework | 1022683d1c122de07816346c980b25e174564c5a.json | Fix compiler warnings | spring-web-reactive/src/main/java/org/springframework/core/convert/support/ReactorToRxJava1Converter.java | @@ -40,7 +40,7 @@ public final class ReactorToRxJava1Converter implements GenericConverter {
@Override
public Set<GenericConverter.ConvertiblePair> getConvertibleTypes() {
- Set<GenericConverter.ConvertiblePair> pairs = new LinkedHashSet<>();
+ Set<GenericConverter.ConvertiblePair> pairs = new LinkedHashSet<>(6... | true |
Other | spring-projects | spring-framework | 1022683d1c122de07816346c980b25e174564c5a.json | Fix compiler warnings | spring-web-reactive/src/main/java/org/springframework/http/codec/SseEventEncoder.java | @@ -25,9 +25,9 @@
import reactor.core.publisher.Mono;
import org.springframework.core.ResolvableType;
+import org.springframework.core.codec.AbstractEncoder;
import org.springframework.core.codec.CodecException;
import org.springframework.core.codec.Encoder;
-import org.springframework.core.codec.AbstractEncoder;... | true |
Other | spring-projects | spring-framework | 1022683d1c122de07816346c980b25e174564c5a.json | Fix compiler warnings | spring-web-reactive/src/main/java/org/springframework/http/codec/xml/XmlEventDecoder.java | @@ -84,6 +84,7 @@ public XmlEventDecoder() {
}
@Override
+ @SuppressWarnings("unchecked")
public Flux<XMLEvent> decode(Publisher<DataBuffer> inputStream, ResolvableType elementType,
MimeType mimeType, Object... hints) {
Flux<DataBuffer> flux = Flux.from(inputStream);
@@ -96,10 +97,8 @@ public Flux<XMLEve... | true |
Other | spring-projects | spring-framework | 1022683d1c122de07816346c980b25e174564c5a.json | Fix compiler warnings | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/ServletHttpHandlerAdapter.java | @@ -38,6 +38,7 @@
* @author Rossen Stoyanchev
*/
@WebServlet(asyncSupported = true)
+@SuppressWarnings("serial")
public class ServletHttpHandlerAdapter extends HttpServlet {
private static final int DEFAULT_BUFFER_SIZE = 8192; | true |
Other | spring-projects | spring-framework | 1022683d1c122de07816346c980b25e174564c5a.json | Fix compiler warnings | spring-web-reactive/src/main/java/org/springframework/web/client/reactive/ClientWebRequest.java | @@ -34,7 +34,7 @@
*
* @author Brian Clozel
*/
-public class ClientWebRequest {
+public class ClientWebRequest {
protected final HttpMethod httpMethod;
@@ -44,7 +44,7 @@ public class ClientWebRequest {
private MultiValueMap<String, HttpCookie> cookies;
- protected Publisher body;
+ protected Publisher... | true |
Other | spring-projects | spring-framework | 1022683d1c122de07816346c980b25e174564c5a.json | Fix compiler warnings | spring-web-reactive/src/main/java/org/springframework/web/client/reactive/DefaultClientWebRequestBuilder.java | @@ -59,7 +59,7 @@ public class DefaultClientWebRequestBuilder implements ClientWebRequestBuilder {
private final MultiValueMap<String, HttpCookie> cookies = new LinkedMultiValueMap<>();
- private Publisher body;
+ private Publisher<?> body;
private ResolvableType elementType;
| true |
Other | spring-projects | spring-framework | 1022683d1c122de07816346c980b25e174564c5a.json | Fix compiler warnings | spring-web-reactive/src/main/java/org/springframework/web/client/reactive/ResponseExtractors.java | @@ -43,8 +43,8 @@ public class ResponseExtractors {
* Extract the response body and decode it, returning it as a {@code Mono<T>}
* @see ResolvableType#forClassWithGenerics(Class, Class[])
*/
+ @SuppressWarnings("unchecked")
public static <T> ResponseExtractor<Mono<T>> body(ResolvableType bodyType) {
- // no... | true |
Other | spring-projects | spring-framework | 1022683d1c122de07816346c980b25e174564c5a.json | Fix compiler warnings | spring-web-reactive/src/main/java/org/springframework/web/client/reactive/WebClient.java | @@ -204,6 +204,7 @@ public Mono<Void> apply(ClientHttpRequest clientHttpRequest) {
}
}
+ @SuppressWarnings("unchecked")
protected Mono<Void> writeRequestBody(Publisher<?> content,
ResolvableType requestType, ClientHttpRequest request,
List<HttpMessageConverter<?>> messageConverters) {
@@ -215,7 +... | true |
Other | spring-projects | spring-framework | 1022683d1c122de07816346c980b25e174564c5a.json | Fix compiler warnings | spring-web-reactive/src/main/java/org/springframework/web/client/reactive/WebClientException.java | @@ -24,6 +24,7 @@
*
* @author Brian Clozel
*/
+@SuppressWarnings("serial")
public class WebClientException extends NestedRuntimeException {
public WebClientException(String msg) { | true |
Other | spring-projects | spring-framework | 1022683d1c122de07816346c980b25e174564c5a.json | Fix compiler warnings | spring-web-reactive/src/main/java/org/springframework/web/client/reactive/support/RxJava1ResponseExtractors.java | @@ -40,15 +40,15 @@
*
* @author Brian Clozel
*/
-public class RxJava1ResponseExtractors {
+public class RxJava1ResponseExtractors {
/**
* Extract the response body and decode it, returning it as a {@code Single<T>}
*/
+ @SuppressWarnings("unchecked")
public static <T> ResponseExtractor<Single<T>> bod... | true |
Other | spring-projects | spring-framework | 1022683d1c122de07816346c980b25e174564c5a.json | Fix compiler warnings | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/ContentNegotiatingResultHandlerSupport.java | @@ -130,8 +130,9 @@ private List<MediaType> getAcceptableTypes(ServerWebExchange exchange) {
return (mediaTypes.isEmpty() ? Collections.singletonList(MediaType.ALL) : mediaTypes);
}
+ @SuppressWarnings("unchecked")
private List<MediaType> getProducibleTypes(ServerWebExchange exchange, List<MediaType> mediaType... | true |
Other | spring-projects | spring-framework | 1022683d1c122de07816346c980b25e174564c5a.json | Fix compiler warnings | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/RequestMappingInfoHandlerMapping.java | @@ -313,7 +313,7 @@ public boolean hasParamsMismatch() {
public Set<String> getAllowedMethods() {
return this.partialMatches.stream().
flatMap(m -> m.getInfo().getMethodsCondition().getMethods().stream()).
- map(Enum::name).
+ map(requestMethod -> requestMethod.name()).
collect(Collectors.toC... | true |
Other | spring-projects | spring-framework | 1022683d1c122de07816346c980b25e174564c5a.json | Fix compiler warnings | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/view/ViewResolutionResultHandler.java | @@ -249,12 +249,12 @@ protected String getDefaultViewName(HandlerResult result, ServerWebExchange exch
return StringUtils.stripFilenameExtension(path);
}
+ @SuppressWarnings("unchecked")
private Object updateModel(Object value, HandlerResult result) {
if (value instanceof Model) {
result.getModel().addA... | true |
Other | spring-projects | spring-framework | 1022683d1c122de07816346c980b25e174564c5a.json | Fix compiler warnings | spring-web-reactive/src/main/java/org/springframework/web/server/MediaTypeNotSupportedStatusException.java | @@ -26,6 +26,7 @@
*
* @author Rossen Stoyanchev
*/
+@SuppressWarnings("serial")
public class MediaTypeNotSupportedStatusException extends ResponseStatusException {
private final List<MediaType> supportedMediaTypes; | true |
Other | spring-projects | spring-framework | 1022683d1c122de07816346c980b25e174564c5a.json | Fix compiler warnings | spring-web-reactive/src/main/java/org/springframework/web/server/MethodNotAllowedException.java | @@ -28,6 +28,7 @@
*
* @author Rossen Stoyanchev
*/
+@SuppressWarnings("serial")
public class MethodNotAllowedException extends ResponseStatusException {
private String method; | true |
Other | spring-projects | spring-framework | 1022683d1c122de07816346c980b25e174564c5a.json | Fix compiler warnings | spring-web-reactive/src/main/java/org/springframework/web/server/NotAcceptableStatusException.java | @@ -26,6 +26,7 @@
*
* @author Rossen Stoyanchev
*/
+@SuppressWarnings("serial")
public class NotAcceptableStatusException extends ResponseStatusException {
private final List<MediaType> supportedMediaTypes; | true |
Other | spring-projects | spring-framework | 1022683d1c122de07816346c980b25e174564c5a.json | Fix compiler warnings | spring-web-reactive/src/main/java/org/springframework/web/server/ResponseStatusException.java | @@ -24,6 +24,7 @@
*
* @author Rossen Stoyanchev
*/
+@SuppressWarnings("serial")
public class ResponseStatusException extends NestedRuntimeException {
private final HttpStatus status; | true |
Other | spring-projects | spring-framework | 1022683d1c122de07816346c980b25e174564c5a.json | Fix compiler warnings | spring-web-reactive/src/main/java/org/springframework/web/server/ServerErrorException.java | @@ -27,6 +27,7 @@
*
* @author Rossen Stoyanchev
*/
+@SuppressWarnings("serial")
public class ServerErrorException extends ResponseStatusException {
private final MethodParameter parameter; | true |
Other | spring-projects | spring-framework | 1022683d1c122de07816346c980b25e174564c5a.json | Fix compiler warnings | spring-web-reactive/src/main/java/org/springframework/web/server/ServerWebInputException.java | @@ -27,6 +27,7 @@
*
* @author Rossen Stoyanchev
*/
+@SuppressWarnings("serial")
public class ServerWebInputException extends ResponseStatusException {
private final MethodParameter parameter; | true |
Other | spring-projects | spring-framework | 1022683d1c122de07816346c980b25e174564c5a.json | Fix compiler warnings | spring-web-reactive/src/main/java/org/springframework/web/server/UnsupportedMediaTypeStatusException.java | @@ -27,6 +27,7 @@
*
* @author Rossen Stoyanchev
*/
+@SuppressWarnings("serial")
public class UnsupportedMediaTypeStatusException extends ResponseStatusException {
private final MediaType contentType; | true |
Other | spring-projects | spring-framework | 1022683d1c122de07816346c980b25e174564c5a.json | Fix compiler warnings | spring-web-reactive/src/main/java/org/springframework/web/server/session/DefaultWebSession.java | @@ -34,6 +34,9 @@
*/
public class DefaultWebSession implements ConfigurableWebSession, Serializable {
+ private static final long serialVersionUID = -3567697426432961630L;
+
+
private final String id;
private final Map<String, Object> attributes; | true |
Other | spring-projects | spring-framework | 1022683d1c122de07816346c980b25e174564c5a.json | Fix compiler warnings | spring-web-reactive/src/test/java/org/springframework/http/codec/xml/Jaxb2DecoderTests.java | @@ -274,5 +274,11 @@ public boolean equals(Object o) {
return false;
}
+ @Override
+ public int hashCode() {
+ int result = this.foo.hashCode();
+ result = 31 * result + this.bar.hashCode();
+ return result;
+ }
}
} | true |
Other | spring-projects | spring-framework | 1022683d1c122de07816346c980b25e174564c5a.json | Fix compiler warnings | spring-web-reactive/src/test/java/org/springframework/http/server/reactive/ServerHttpRequestTests.java | @@ -23,7 +23,7 @@
import org.junit.Test;
import org.springframework.core.io.buffer.DefaultDataBufferFactory;
-import org.springframework.mock.web.MockHttpServletRequest;
+import org.springframework.mock.web.test.MockHttpServletRequest;
import org.springframework.util.MultiValueMap;
import static org.junit.Asser... | true |
Other | spring-projects | spring-framework | 3b96690e697f093b414da120785e1adab22ca901.json | Add missing RestOperations extensions
Issue: SPR-16229 | spring-web/src/main/kotlin/org/springframework/web/client/RestOperationsExtensions.kt | @@ -59,6 +59,17 @@ inline fun <reified T: Any> RestOperations.getForObject(url: String, uriVariable
inline fun <reified T: Any> RestOperations.getForObject(url: URI): T? =
getForObject(url, T::class.java)
+/**
+ * Extension for [RestOperations.getForEntity] avoiding requiring the type parameter
+ * thanks to Kotl... | true |
Other | spring-projects | spring-framework | 3b96690e697f093b414da120785e1adab22ca901.json | Add missing RestOperations extensions
Issue: SPR-16229 | spring-web/src/test/kotlin/org/springframework/web/client/RestOperationsExtensionsTests.kt | @@ -17,6 +17,7 @@
package org.springframework.web.client
import com.nhaarman.mockito_kotlin.mock
+import org.junit.Assert
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.Answers
@@ -27,7 +28,10 @@ import org.springframework.core.ParameterizedTypeReference
import org.springframework.http... | true |
Other | spring-projects | spring-framework | 01a82b529107f75ded838bebeb0045aac8903be6.json | Improve semantics writing currentData
Before this commit, the return value from write was interpreted as the
data being fully written and ready to be released via releaseData().
This is not true for WebSocketSession implementations where a true
return value simply means the message was sent with the full payload
but ... | spring-web/src/main/java/org/springframework/http/server/reactive/AbstractListenerWriteFlushProcessor.java | @@ -324,7 +324,7 @@ public <T> void onComplete(AbstractListenerWriteFlushProcessor<T> processor) {
}
public <T> void writeComplete(AbstractListenerWriteFlushProcessor<T> processor) {
- // ignore
+ throw new IllegalStateException(toString());
}
public <T> void onFlushPossible(AbstractListenerWriteFlu... | true |
Other | spring-projects | spring-framework | 01a82b529107f75ded838bebeb0045aac8903be6.json | Improve semantics writing currentData
Before this commit, the return value from write was interpreted as the
data being fully written and ready to be released via releaseData().
This is not true for WebSocketSession implementations where a true
return value simply means the message was sent with the full payload
but ... | spring-web/src/main/java/org/springframework/http/server/reactive/AbstractListenerWriteProcessor.java | @@ -51,7 +51,7 @@
private Subscription subscription;
@Nullable
- protected volatile T currentData;
+ private volatile T currentData;
private volatile boolean subscriberCompleted;
@@ -142,21 +142,19 @@ protected void dataReceived(T data) {
this.currentData = data;
}
- /**
- * Called when the current ... | true |
Other | spring-projects | spring-framework | 01a82b529107f75ded838bebeb0045aac8903be6.json | Improve semantics writing currentData
Before this commit, the return value from write was interpreted as the
data being fully written and ready to be released via releaseData().
This is not true for WebSocketSession implementations where a true
return value simply means the message was sent with the full payload
but ... | spring-web/src/main/java/org/springframework/http/server/reactive/ServletServerHttpResponse.java | @@ -35,7 +35,6 @@
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.core.io.buffer.DataBufferFactory;
import org.springframework.core.io.buffer.DataBufferUtils;
-import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.Res... | true |
Other | spring-projects | spring-framework | 01a82b529107f75ded838bebeb0045aac8903be6.json | Improve semantics writing currentData
Before this commit, the return value from write was interpreted as the
data being fully written and ready to be released via releaseData().
This is not true for WebSocketSession implementations where a true
return value simply means the message was sent with the full payload
but ... | spring-web/src/main/java/org/springframework/http/server/reactive/UndertowServerHttpResponse.java | @@ -193,7 +193,15 @@ protected boolean write(DataBuffer dataBuffer) throws IOException {
if (logger.isTraceEnabled()) {
logger.trace("written: " + written + " total: " + total);
}
- return written == total;
+ if (written != total) {
+ return false;
+ }
+ if (logger.isTraceEnabled()) {
+ logge... | true |
Other | spring-projects | spring-framework | 01a82b529107f75ded838bebeb0045aac8903be6.json | Improve semantics writing currentData
Before this commit, the return value from write was interpreted as the
data being fully written and ready to be released via releaseData().
This is not true for WebSocketSession implementations where a true
return value simply means the message was sent with the full payload
but ... | spring-webflux/src/main/java/org/springframework/web/reactive/socket/adapter/AbstractListenerWebSocketSession.java | @@ -153,6 +153,9 @@ public Mono<Void> send(Publisher<WebSocketMessage> messages) {
/**
* Send the given WebSocket message.
+ * <p><strong>Note:</strong> Sub-classes are responsible for releasing the
+ * payload data buffer, once fully written, if pooled buffers apply to the
+ * underlying container.
*/
p... | true |
Other | spring-projects | spring-framework | 01a82b529107f75ded838bebeb0045aac8903be6.json | Improve semantics writing currentData
Before this commit, the return value from write was interpreted as the
data being fully written and ready to be released via releaseData().
This is not true for WebSocketSession implementations where a true
return value simply means the message was sent with the full payload
but ... | spring-webflux/src/main/java/org/springframework/web/reactive/socket/adapter/UndertowWebSocketSession.java | @@ -27,7 +27,9 @@
import reactor.core.publisher.Mono;
import reactor.core.publisher.MonoProcessor;
+import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.core.io.buffer.DataBufferFactory;
+import org.springframework.core.io.buffer.DataBufferUtils;
import org.springframework.lang.Nullabl... | true |
Other | spring-projects | spring-framework | d8099adc9a94e13eb7b6e261e6300e33beaa8c95.json | AbstractListenerWebSocketSession: suspend the channel when there is no demand
Issues: SPR-16207 | spring-webflux/src/main/java/org/springframework/web/reactive/socket/adapter/AbstractListenerWebSocketSession.java | @@ -17,6 +17,7 @@
package org.springframework.web.reactive.socket.adapter;
import java.io.IOException;
+import java.util.Queue;
import java.util.concurrent.atomic.AtomicBoolean;
import org.reactivestreams.Publisher;
@@ -25,6 +26,7 @@
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
imp... | true |
Other | spring-projects | spring-framework | d8099adc9a94e13eb7b6e261e6300e33beaa8c95.json | AbstractListenerWebSocketSession: suspend the channel when there is no demand
Issues: SPR-16207 | spring-webflux/src/main/java/org/springframework/web/reactive/socket/adapter/JettyWebSocketSession.java | @@ -79,6 +79,11 @@ protected void resumeReceiving() {
this.suspendToken = null;
}
+ @Override
+ protected boolean isSuspended() {
+ return this.suspendToken != null;
+ }
+
@Override
protected boolean sendMessage(WebSocketMessage message) throws IOException {
ByteBuffer buffer = message.getPayload().asByt... | true |
Other | spring-projects | spring-framework | d8099adc9a94e13eb7b6e261e6300e33beaa8c95.json | AbstractListenerWebSocketSession: suspend the channel when there is no demand
Issues: SPR-16207 | spring-webflux/src/main/java/org/springframework/web/reactive/socket/adapter/StandardWebSocketSession.java | @@ -71,6 +71,11 @@ protected void resumeReceiving() {
// no-op
}
+ @Override
+ protected boolean isSuspended() {
+ return false;
+ }
+
@Override
protected boolean sendMessage(WebSocketMessage message) throws IOException {
ByteBuffer buffer = message.getPayload().asByteBuffer(); | true |
Other | spring-projects | spring-framework | d8099adc9a94e13eb7b6e261e6300e33beaa8c95.json | AbstractListenerWebSocketSession: suspend the channel when there is no demand
Issues: SPR-16207 | spring-webflux/src/main/java/org/springframework/web/reactive/socket/adapter/TomcatWebSocketSession.java | @@ -16,6 +16,8 @@
package org.springframework.web.reactive.socket.adapter;
+import java.util.concurrent.atomic.AtomicIntegerFieldUpdater;
+
import javax.websocket.Session;
import org.apache.tomcat.websocket.WsSession;
@@ -33,6 +35,9 @@
* @since 5.0
*/
public class TomcatWebSocketSession extends StandardWe... | true |
Other | spring-projects | spring-framework | d8099adc9a94e13eb7b6e261e6300e33beaa8c95.json | AbstractListenerWebSocketSession: suspend the channel when there is no demand
Issues: SPR-16207 | spring-webflux/src/main/java/org/springframework/web/reactive/socket/adapter/UndertowWebSocketSession.java | @@ -61,14 +61,21 @@ protected boolean canSuspendReceiving() {
return true;
}
+ @Override
protected void suspendReceiving() {
getDelegate().suspendReceives();
}
+ @Override
protected void resumeReceiving() {
getDelegate().resumeReceives();
}
+ @Override
+ protected boolean isSuspended() {
+ ret... | true |
Other | spring-projects | spring-framework | 06b2ab39088f128d3aa5ca355d0bc0f2c7b36ab3.json | Use volatile for subscriber in base publishers
Issue: SPR-16207 | spring-web/src/main/java/org/springframework/http/server/reactive/AbstractListenerReadPublisher.java | @@ -52,17 +52,17 @@
private volatile long demand;
- private volatile boolean completionBeforeDemand;
-
- @Nullable
- private volatile Throwable errorBeforeDemand;
-
@SuppressWarnings("rawtypes")
private static final AtomicLongFieldUpdater<AbstractListenerReadPublisher> DEMAND_FIELD_UPDATER =
AtomicLongFie... | true |
Other | spring-projects | spring-framework | 06b2ab39088f128d3aa5ca355d0bc0f2c7b36ab3.json | Use volatile for subscriber in base publishers
Issue: SPR-16207 | spring-web/src/main/java/org/springframework/http/server/reactive/WriteResultPublisher.java | @@ -43,7 +43,7 @@ class WriteResultPublisher implements Publisher<Void> {
private final AtomicReference<State> state = new AtomicReference<>(State.UNSUBSCRIBED);
@Nullable
- private Subscriber<? super Void> subscriber;
+ private volatile Subscriber<? super Void> subscriber;
private volatile boolean completedB... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-core/src/main/java/org/springframework/core/Conventions.java | @@ -59,7 +59,7 @@ public abstract class Conventions {
}
private static final ReactiveAdapterRegistry reactiveAdapterRegistry =
- new ReactiveAdapterRegistry();
+ ReactiveAdapterRegistry.getSharedInstance();
/** | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-core/src/main/java/org/springframework/core/ReactiveAdapterRegistry.java | @@ -33,7 +33,10 @@
import org.springframework.util.ClassUtils;
import org.springframework.util.ReflectionUtils;
-import static org.springframework.core.ReactiveTypeDescriptor.*;
+import static org.springframework.core.ReactiveTypeDescriptor.multiValue;
+import static org.springframework.core.ReactiveTypeDescriptor.... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-core/src/test/java/org/springframework/core/convert/support/ReactiveAdapterRegistryTests.java | @@ -50,7 +50,7 @@
@SuppressWarnings("unchecked")
public class ReactiveAdapterRegistryTests {
- private final ReactiveAdapterRegistry registry = new ReactiveAdapterRegistry();
+ private final ReactiveAdapterRegistry registry = ReactiveAdapterRegistry.getSharedInstance();
@Test | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/main/java/org/springframework/web/reactive/result/method/InvocableHandlerMethod.java | @@ -66,7 +66,7 @@ public class InvocableHandlerMethod extends HandlerMethod {
private ParameterNameDiscoverer parameterNameDiscoverer = new DefaultParameterNameDiscoverer();
- private ReactiveAdapterRegistry reactiveAdapterRegistry = new ReactiveAdapterRegistry();
+ private ReactiveAdapterRegistry reactiveAdapter... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/AbstractMessageReaderArgumentResolver.java | @@ -81,7 +81,7 @@ public abstract class AbstractMessageReaderArgumentResolver extends HandlerMetho
* @param readers readers to convert from the request body
*/
protected AbstractMessageReaderArgumentResolver(List<HttpMessageReader<?>> readers) {
- this(readers, new ReactiveAdapterRegistry());
+ this(readers, ... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/AbstractMessageWriterResultHandler.java | @@ -60,7 +60,7 @@ public abstract class AbstractMessageWriterResultHandler extends HandlerResultHa
protected AbstractMessageWriterResultHandler(List<HttpMessageWriter<?>> messageWriters,
RequestedContentTypeResolver contentTypeResolver) {
- this(messageWriters, contentTypeResolver, new ReactiveAdapterRegistry(... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/RequestMappingHandlerAdapter.java | @@ -163,7 +163,7 @@ public void afterPropertiesSet() throws Exception {
this.argumentResolverConfigurer = new ArgumentResolverConfigurer();
}
if (this.reactiveAdapterRegistry == null) {
- this.reactiveAdapterRegistry = new ReactiveAdapterRegistry();
+ this.reactiveAdapterRegistry = ReactiveAdapterRegistry... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/ResponseBodyResultHandler.java | @@ -56,7 +56,7 @@ public class ResponseBodyResultHandler extends AbstractMessageWriterResultHandle
public ResponseBodyResultHandler(List<HttpMessageWriter<?>> writers,
RequestedContentTypeResolver resolver) {
- this(writers, resolver, new ReactiveAdapterRegistry());
+ this(writers, resolver, ReactiveAdapterRe... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/ResponseEntityResultHandler.java | @@ -63,7 +63,7 @@ public class ResponseEntityResultHandler extends AbstractMessageWriterResultHand
public ResponseEntityResultHandler(List<HttpMessageWriter<?>> writers,
RequestedContentTypeResolver resolver) {
- this(writers, resolver, new ReactiveAdapterRegistry());
+ this(writers, resolver, ReactiveAdapter... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/main/java/org/springframework/web/reactive/result/view/AbstractView.java | @@ -70,7 +70,7 @@ public abstract class AbstractView implements View, ApplicationContextAware {
public AbstractView() {
- this(new ReactiveAdapterRegistry());
+ this(ReactiveAdapterRegistry.getSharedInstance());
}
public AbstractView(ReactiveAdapterRegistry registry) { | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/main/java/org/springframework/web/reactive/result/view/ViewResolutionResultHandler.java | @@ -101,7 +101,7 @@ public class ViewResolutionResultHandler extends HandlerResultHandlerSupport
public ViewResolutionResultHandler(List<ViewResolver> viewResolvers,
RequestedContentTypeResolver contentTypeResolver) {
- this(viewResolvers, contentTypeResolver, new ReactiveAdapterRegistry());
+ this(viewResolv... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/test/java/org/springframework/web/reactive/result/HandlerResultHandlerTests.java | @@ -110,7 +110,7 @@ protected TestResultHandler() {
}
public TestResultHandler(RequestedContentTypeResolver contentTypeResolver) {
- super(contentTypeResolver, new ReactiveAdapterRegistry());
+ super(contentTypeResolver, ReactiveAdapterRegistry.getSharedInstance());
}
}
| true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/ControllerMethodResolverTests.java | @@ -76,7 +76,7 @@ public void setUp() throws Exception {
applicationContext.refresh();
this.methodResolver = new ControllerMethodResolver(
- resolvers, codecs.getReaders(), new ReactiveAdapterRegistry(), applicationContext);
+ resolvers, codecs.getReaders(), ReactiveAdapterRegistry.getSharedInstance(), ap... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/CookieValueMethodArgumentResolverTests.java | @@ -62,7 +62,7 @@ public void setup() throws Exception {
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
context.refresh();
- ReactiveAdapterRegistry adapterRegistry = new ReactiveAdapterRegistry();
+ ReactiveAdapterRegistry adapterRegistry = ReactiveAdapterRegistry.getS... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/ErrorsMethodArgumentResolverTests.java | @@ -47,7 +47,7 @@
public class ErrorsMethodArgumentResolverTests {
private final ErrorsMethodArgumentResolver resolver =
- new ErrorsMethodArgumentResolver(new ReactiveAdapterRegistry());
+ new ErrorsMethodArgumentResolver(ReactiveAdapterRegistry.getSharedInstance());
private final BindingContext bindingCo... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/ExpressionValueMethodArgumentResolverTests.java | @@ -56,7 +56,7 @@ public class ExpressionValueMethodArgumentResolverTests {
public void setup() throws Exception {
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
context.refresh();
- ReactiveAdapterRegistry adapterRegistry = new ReactiveAdapterRegistry();
+ ReactiveAdap... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/HttpEntityArgumentResolverTests.java | @@ -75,7 +75,7 @@ public class HttpEntityArgumentResolverTests {
private HttpEntityArgumentResolver createResolver() {
List<HttpMessageReader<?>> readers = new ArrayList<>();
readers.add(new DecoderHttpMessageReader<>(StringDecoder.allMimeTypes(true)));
- return new HttpEntityArgumentResolver(readers, new Reac... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/InitBinderBindingContextTests.java | @@ -114,7 +114,7 @@ public void returnValueNotExpected() throws Exception {
public void createBinderTypeConversion() throws Exception {
MockServerHttpRequest request = MockServerHttpRequest.get("/path?requestParam=22").build();
MockServerWebExchange exchange = MockServerWebExchange.from(request);
- ReactiveAda... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/MatrixVariablesMapMethodArgumentResolverTests.java | @@ -48,7 +48,7 @@
public class MatrixVariablesMapMethodArgumentResolverTests {
private final MatrixVariableMapMethodArgumentResolver resolver =
- new MatrixVariableMapMethodArgumentResolver(new ReactiveAdapterRegistry());
+ new MatrixVariableMapMethodArgumentResolver(ReactiveAdapterRegistry.getSharedInstance()... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/MatrixVariablesMethodArgumentResolverTests.java | @@ -49,7 +49,7 @@
public class MatrixVariablesMethodArgumentResolverTests {
private MatrixVariableMethodArgumentResolver resolver =
- new MatrixVariableMethodArgumentResolver(null, new ReactiveAdapterRegistry());
+ new MatrixVariableMethodArgumentResolver(null, ReactiveAdapterRegistry.getSharedInstance());
... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/ModelArgumentResolverTests.java | @@ -40,7 +40,8 @@
*/
public class ModelArgumentResolverTests {
- private final ModelArgumentResolver resolver = new ModelArgumentResolver(new ReactiveAdapterRegistry());
+ private final ModelArgumentResolver resolver =
+ new ModelArgumentResolver(ReactiveAdapterRegistry.getSharedInstance());
private final Se... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/ModelAttributeMethodArgumentResolverTests.java | @@ -75,7 +75,7 @@ public void setup() throws Exception {
@Test
public void supports() throws Exception {
ModelAttributeMethodArgumentResolver resolver =
- new ModelAttributeMethodArgumentResolver(new ReactiveAdapterRegistry(), false);
+ new ModelAttributeMethodArgumentResolver(ReactiveAdapterRegistry.getSh... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/ModelInitializerTests.java | @@ -73,7 +73,7 @@ public class ModelInitializerTests {
@Before
public void setUp() throws Exception {
- ReactiveAdapterRegistry adapterRegistry = new ReactiveAdapterRegistry();
+ ReactiveAdapterRegistry adapterRegistry = ReactiveAdapterRegistry.getSharedInstance();
ArgumentResolverConfigurer resolverConfig... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/PathVariableMapMethodArgumentResolverTests.java | @@ -58,7 +58,7 @@ public class PathVariableMapMethodArgumentResolverTests {
@Before
public void setup() throws Exception {
- this.resolver = new PathVariableMapMethodArgumentResolver(new ReactiveAdapterRegistry());
+ this.resolver = new PathVariableMapMethodArgumentResolver(ReactiveAdapterRegistry.getSharedInst... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/PathVariableMethodArgumentResolverTests.java | @@ -65,7 +65,7 @@ public class PathVariableMethodArgumentResolverTests {
@Before
public void setup() throws Exception {
- this.resolver = new PathVariableMethodArgumentResolver(null, new ReactiveAdapterRegistry());
+ this.resolver = new PathVariableMethodArgumentResolver(null, ReactiveAdapterRegistry.getSharedI... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/PrincipalArgumentResolverTests.java | @@ -39,7 +39,7 @@
public class PrincipalArgumentResolverTests {
private final PrincipalArgumentResolver resolver =
- new PrincipalArgumentResolver(new ReactiveAdapterRegistry());
+ new PrincipalArgumentResolver(ReactiveAdapterRegistry.getSharedInstance());
private ResolvableMethod testMethod = ResolvableMe... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestAttributeMethodArgumentResolverTests.java | @@ -64,7 +64,7 @@ public class RequestAttributeMethodArgumentResolverTests {
public void setup() throws Exception {
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
context.refresh();
- ReactiveAdapterRegistry registry = new ReactiveAdapterRegistry();
+ ReactiveAdapterReg... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestBodyArgumentResolverTests.java | @@ -70,7 +70,7 @@ public class RequestBodyArgumentResolverTests {
public void setup() {
List<HttpMessageReader<?>> readers = new ArrayList<>();
readers.add(new DecoderHttpMessageReader<>(StringDecoder.allMimeTypes(true)));
- this.resolver = new RequestBodyArgumentResolver(readers, new ReactiveAdapterRegistry()... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestHeaderMapMethodArgumentResolverTests.java | @@ -58,7 +58,7 @@ public class RequestHeaderMapMethodArgumentResolverTests {
@Before
public void setup() throws Exception {
- resolver = new RequestHeaderMapMethodArgumentResolver(new ReactiveAdapterRegistry());
+ resolver = new RequestHeaderMapMethodArgumentResolver(ReactiveAdapterRegistry.getSharedInstance())... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestHeaderMethodArgumentResolverTests.java | @@ -73,7 +73,7 @@ public class RequestHeaderMethodArgumentResolverTests {
public void setup() throws Exception {
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
context.refresh();
- ReactiveAdapterRegistry adapterRegistry = new ReactiveAdapterRegistry();
+ ReactiveAdapte... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestParamMapMethodArgumentResolverTests.java | @@ -46,7 +46,7 @@
public class RequestParamMapMethodArgumentResolverTests {
private final RequestParamMapMethodArgumentResolver resolver =
- new RequestParamMapMethodArgumentResolver(new ReactiveAdapterRegistry());
+ new RequestParamMapMethodArgumentResolver(ReactiveAdapterRegistry.getSharedInstance());
pr... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestParamMethodArgumentResolverTests.java | @@ -63,7 +63,7 @@ public class RequestParamMethodArgumentResolverTests {
@Before
public void setup() throws Exception {
- ReactiveAdapterRegistry adapterRegistry = new ReactiveAdapterRegistry();
+ ReactiveAdapterRegistry adapterRegistry = ReactiveAdapterRegistry.getSharedInstance();
this.resolver = new Reque... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/ServerWebExchangeArgumentResolverTests.java | @@ -50,7 +50,7 @@
public class ServerWebExchangeArgumentResolverTests {
private final ServerWebExchangeArgumentResolver resolver =
- new ServerWebExchangeArgumentResolver(new ReactiveAdapterRegistry());
+ new ServerWebExchangeArgumentResolver(ReactiveAdapterRegistry.getSharedInstance());
private final Mock... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/SessionAttributeMethodArgumentResolverTests.java | @@ -75,7 +75,7 @@ public class SessionAttributeMethodArgumentResolverTests {
public void setup() throws Exception {
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
context.refresh();
- ReactiveAdapterRegistry adapterRegistry = new ReactiveAdapterRegistry();
+ ReactiveAda... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/WebSessionArgumentResolverTests.java | @@ -44,7 +44,7 @@
public class WebSessionArgumentResolverTests {
private final WebSessionArgumentResolver resolver =
- new WebSessionArgumentResolver(new ReactiveAdapterRegistry());
+ new WebSessionArgumentResolver(ReactiveAdapterRegistry.getSharedInstance());
private ResolvableMethod testMethod = Resolvab... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webflux/src/test/kotlin/org/springframework/web/reactive/result/method/annotation/RequestParamMethodArgumentResolverKotlinTests.kt | @@ -49,7 +49,7 @@ class RequestParamMethodArgumentResolverKotlinTests {
@Before
fun setup() {
- this.resolver = RequestParamMethodArgumentResolver(null, ReactiveAdapterRegistry(), true)
+ this.resolver = RequestParamMethodArgumentResolver(null, ReactiveAdapterRegistry.getSharedInstance(), true)
val initializ... | true |
Other | spring-projects | spring-framework | bc8e525e604c5d56a7ef522a06c82821b4393916.json | Add shared instance of ReactiveAdapterRegistry
Issue: SPR-16218 | spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ReactiveTypeHandler.java | @@ -83,7 +83,7 @@ class ReactiveTypeHandler {
public ReactiveTypeHandler() {
- this(new ReactiveAdapterRegistry(), new SyncTaskExecutor(), new ContentNegotiationManager());
+ this(ReactiveAdapterRegistry.getSharedInstance(), new SyncTaskExecutor(), new ContentNegotiationManager());
}
ReactiveTypeHandler(R... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.