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
2b0bf9f04a62fafd9ce28da37dbeb227b82cf462.json
Add Qualified element on RootBeanDefinition Improve RootBeanDefinition to specify an AnnotatedElement that holds qualifier information. When such element is present, any qualifier that it defines will be used to find a matching candidate. Issue: SPR-14725
spring-beans/src/test/java/org/springframework/beans/factory/support/BeanDefinitionTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2015 the original author or authors. + * 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. @@ -126,6 +126,7 @@ public void beanDefinitionM...
true
Other
spring-projects
spring-framework
3bc1121b9d6f73f601776a20e6ec5b0e1ea0f4b2.json
Check both connection and connected flag Issue: SPR-14703
spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandler.java
@@ -768,7 +768,7 @@ public void afterConnectionClosed() { public ListenableFuture<Void> forward(final Message<?> message, final StompHeaderAccessor accessor) { TcpConnection<byte[]> conn = this.tcpConnection; - if (!this.isStompConnected) { + if (!this.isStompConnected || conn == null) { if (this.isRe...
false
Other
spring-projects
spring-framework
eef41fd8abb9234bb857a55142bb20265e84a0a2.json
Fix doc style Closes gh-1172
src/asciidoc/core-beans.adoc
@@ -7597,6 +7597,7 @@ but rather completely overridden by a preceding entry. For a common `StandardServletEnvironment`, the full hierarchy looks as follows, with the highest-precedence entries at the top: + * ServletConfig parameters (if applicable, e.g. in case of a `DispatcherServlet` context) * ServletContext ...
false
Other
spring-projects
spring-framework
81057a2cee2990de1a69a191a3cb5e379822a82b.json
Require EhCache 2.10+ Issue: SPR-13794
spring-context-support/src/main/java/org/springframework/cache/ehcache/EhCacheFactoryBean.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * 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. @@ -16,7 +16,6 @@ package org.springframewor...
true
Other
spring-projects
spring-framework
81057a2cee2990de1a69a191a3cb5e379822a82b.json
Require EhCache 2.10+ Issue: SPR-13794
spring-context-support/src/main/java/org/springframework/cache/ehcache/EhCacheManagerFactoryBean.java
@@ -41,7 +41,7 @@ * and cares for proper shutdown of the CacheManager. EhCacheManagerFactoryBean is * also necessary for loading EhCache configuration from a non-default config location. * - * <p>Note: As of Spring 4.1, Spring's EhCache support requires EhCache 2.5 or higher. + * <p>Note: As of Spring 5.0, Spring...
true
Other
spring-projects
spring-framework
8690464a9b07b6e00c5d469ba0fde356b6d14e7f.json
Remove @Ignore on streamResult() test This test was fixed by previous commit that allows to JSON encode correctly streams with more than 2 elements.
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestMappingIntegrationTests.java
@@ -25,7 +25,6 @@ import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; -import org.junit.Ignore; import org.junit.Test; import org.reactivestreams.Publisher; import reactor.core.publisher.Flux; @@ -150,7 +149,6 @@ public void handleWithErrorSignal() throws Exception { }...
false
Other
spring-projects
spring-framework
fb1eb00b4a09e7922015780cf38d15b42bf7d229.json
Update @since tag in Eclipse template to 5.0
src/eclipse/org.eclipse.jdt.ui.prefs
@@ -59,4 +59,4 @@ org.eclipse.jdt.ui.importorder=java;javax;org;com;\#; org.eclipse.jdt.ui.javadoc=true org.eclipse.jdt.ui.ondemandthreshold=9999 org.eclipse.jdt.ui.staticondemandthreshold=1 -org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template a...
false
Other
spring-projects
spring-framework
f254680f291334ced941d539ceab7c90f5954371.json
Remove unused imports
spring-web-reactive/src/main/java/org/springframework/core/codec/AbstractEncoder.java
@@ -21,7 +21,6 @@ import java.util.List; import org.springframework.core.ResolvableType; -import org.springframework.core.codec.Encoder; import org.springframework.util.MimeType; /**
true
Other
spring-projects
spring-framework
f254680f291334ced941d539ceab7c90f5954371.json
Remove unused imports
spring-web-reactive/src/main/java/org/springframework/core/codec/ResourceDecoder.java
@@ -23,7 +23,6 @@ import reactor.core.publisher.Mono; import org.springframework.core.ResolvableType; -import org.springframework.core.codec.AbstractDecoder; import org.springframework.core.io.ByteArrayResource; import org.springframework.core.io.InputStreamResource; import org.springframework.core.io.Resource;
true
Other
spring-projects
spring-framework
f254680f291334ced941d539ceab7c90f5954371.json
Remove unused imports
spring-web-reactive/src/main/java/org/springframework/core/codec/ResourceEncoder.java
@@ -22,7 +22,6 @@ import reactor.core.publisher.Flux; import org.springframework.core.ResolvableType; -import org.springframework.core.codec.AbstractSingleValueEncoder; import org.springframework.core.io.Resource; import org.springframework.core.io.buffer.DataBuffer; import org.springframework.core.io.buffer.Dat...
true
Other
spring-projects
spring-framework
f254680f291334ced941d539ceab7c90f5954371.json
Remove unused imports
spring-web-reactive/src/main/java/org/springframework/http/server/reactive/AbstractResponseBodySubscriber.java
@@ -26,7 +26,6 @@ import org.apache.commons.logging.LogFactory; import org.reactivestreams.Subscriber; import org.reactivestreams.Subscription; -import reactor.core.util.BackpressureUtils; import org.springframework.core.io.buffer.DataBuffer; import org.springframework.core.io.buffer.FlushingDataBuffer;
true
Other
spring-projects
spring-framework
f254680f291334ced941d539ceab7c90f5954371.json
Remove unused imports
spring-web-reactive/src/main/java/org/springframework/http/server/reactive/boot/HttpServerSupport.java
@@ -16,8 +16,6 @@ package org.springframework.http.server.reactive.boot; - -import org.springframework.beans.factory.InitializingBean; import org.springframework.http.server.reactive.HttpHandler; import org.springframework.util.SocketUtils;
true
Other
spring-projects
spring-framework
f254680f291334ced941d539ceab7c90f5954371.json
Remove unused imports
spring-web-reactive/src/main/java/org/springframework/web/reactive/result/condition/MediaTypeExpression.java
@@ -17,7 +17,6 @@ package org.springframework.web.reactive.result.condition; import org.springframework.http.MediaType; -import org.springframework.web.bind.annotation.RequestMapping; /** * A contract for media type expressions (e.g. "text/plain", "!text/plain") as
true
Other
spring-projects
spring-framework
f254680f291334ced941d539ceab7c90f5954371.json
Remove unused imports
spring-web-reactive/src/main/java/org/springframework/web/reactive/result/condition/NameValueExpression.java
@@ -16,8 +16,6 @@ package org.springframework.web.reactive.result.condition; -import org.springframework.web.bind.annotation.RequestMapping; - /** * A contract for {@code "name!=value"} style expression used to specify request * parameters and request header conditions in {@code @RequestMapping}.
true
Other
spring-projects
spring-framework
f254680f291334ced941d539ceab7c90f5954371.json
Remove unused imports
spring-web-reactive/src/main/java/org/springframework/web/reactive/result/condition/RequestCondition.java
@@ -16,8 +16,6 @@ package org.springframework.web.reactive.result.condition; -import javax.servlet.http.HttpServletRequest; - import org.springframework.web.server.ServerWebExchange; /**
true
Other
spring-projects
spring-framework
f254680f291334ced941d539ceab7c90f5954371.json
Remove unused imports
spring-web-reactive/src/main/java/org/springframework/web/reactive/result/view/View.java
@@ -16,12 +16,9 @@ package org.springframework.web.reactive.result.view; import java.util.List; -import java.util.Optional; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -import org.springframework.core.io.buffer.DataBuffer; import org.springframework.http.MediaType; import org.spr...
true
Other
spring-projects
spring-framework
f254680f291334ced941d539ceab7c90f5954371.json
Remove unused imports
spring-web-reactive/src/test/java/org/springframework/core/codec/ByteBufferDecoderTests.java
@@ -24,7 +24,6 @@ import reactor.core.test.TestSubscriber; import org.springframework.core.ResolvableType; -import org.springframework.core.codec.ByteBufferDecoder; import org.springframework.core.io.buffer.AbstractDataBufferAllocatingTestCase; import org.springframework.core.io.buffer.DataBuffer; import org.spr...
true
Other
spring-projects
spring-framework
f254680f291334ced941d539ceab7c90f5954371.json
Remove unused imports
spring-web-reactive/src/test/java/org/springframework/core/codec/ByteBufferEncoderTests.java
@@ -26,7 +26,6 @@ import reactor.core.test.TestSubscriber; import org.springframework.core.ResolvableType; -import org.springframework.core.codec.ByteBufferEncoder; import org.springframework.core.io.buffer.AbstractDataBufferAllocatingTestCase; import org.springframework.core.io.buffer.DataBuffer; import org.spr...
true
Other
spring-projects
spring-framework
f254680f291334ced941d539ceab7c90f5954371.json
Remove unused imports
spring-web-reactive/src/test/java/org/springframework/core/codec/ResourceDecoderTests.java
@@ -23,7 +23,6 @@ import reactor.core.test.TestSubscriber; import org.springframework.core.ResolvableType; -import org.springframework.core.codec.ResourceDecoder; import org.springframework.core.io.ByteArrayResource; import org.springframework.core.io.InputStreamResource; import org.springframework.core.io.Resou...
true
Other
spring-projects
spring-framework
f254680f291334ced941d539ceab7c90f5954371.json
Remove unused imports
spring-web-reactive/src/test/java/org/springframework/core/codec/ResourceEncoderTests.java
@@ -24,7 +24,6 @@ import reactor.core.test.TestSubscriber; import org.springframework.core.ResolvableType; -import org.springframework.core.codec.ResourceEncoder; import org.springframework.core.io.ByteArrayResource; import org.springframework.core.io.InputStreamResource; import org.springframework.core.io.Resou...
true
Other
spring-projects
spring-framework
f254680f291334ced941d539ceab7c90f5954371.json
Remove unused imports
spring-web-reactive/src/test/java/org/springframework/core/codec/StringDecoderTests.java
@@ -23,7 +23,6 @@ import reactor.core.test.TestSubscriber; import org.springframework.core.ResolvableType; -import org.springframework.core.codec.StringDecoder; import org.springframework.core.io.buffer.AbstractDataBufferAllocatingTestCase; import org.springframework.core.io.buffer.DataBuffer; import org.springf...
true
Other
spring-projects
spring-framework
f254680f291334ced941d539ceab7c90f5954371.json
Remove unused imports
spring-web-reactive/src/test/java/org/springframework/core/codec/StringEncoderTests.java
@@ -26,7 +26,6 @@ import reactor.core.test.TestSubscriber; import org.springframework.core.ResolvableType; -import org.springframework.core.codec.StringEncoder; import org.springframework.core.io.buffer.AbstractDataBufferAllocatingTestCase; import org.springframework.core.io.buffer.support.DataBufferUtils; impor...
true
Other
spring-projects
spring-framework
f254680f291334ced941d539ceab7c90f5954371.json
Remove unused imports
spring-web-reactive/src/test/java/org/springframework/core/convert/support/MonoToCompletableFutureConverterTests.java
@@ -22,8 +22,6 @@ import org.reactivestreams.Publisher; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -import rx.Observable; -import rx.Single; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue;
true
Other
spring-projects
spring-framework
f254680f291334ced941d539ceab7c90f5954371.json
Remove unused imports
spring-web-reactive/src/test/java/org/springframework/http/codec/json/JacksonJsonEncoderTests.java
@@ -28,7 +28,6 @@ import org.springframework.core.io.buffer.DataBuffer; import org.springframework.http.MediaType; import org.springframework.http.codec.Pojo; -import org.springframework.http.codec.json.JacksonJsonEncoder; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue;
true
Other
spring-projects
spring-framework
f254680f291334ced941d539ceab7c90f5954371.json
Remove unused imports
spring-web-reactive/src/test/java/org/springframework/http/codec/xml/XmlEventDecoderTests.java
@@ -23,7 +23,6 @@ import reactor.core.test.TestSubscriber; import org.springframework.core.io.buffer.AbstractDataBufferAllocatingTestCase; -import org.springframework.http.codec.xml.XmlEventDecoder; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue;
true
Other
spring-projects
spring-framework
f254680f291334ced941d539ceab7c90f5954371.json
Remove unused imports
spring-web-reactive/src/test/java/org/springframework/http/server/reactive/ChannelSendOperatorTests.java
@@ -20,7 +20,6 @@ import java.util.List; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; -import java.util.concurrent.atomic.AtomicInteger; import org.junit.Before; import org.junit.Test;
true
Other
spring-projects
spring-framework
f254680f291334ced941d539ceab7c90f5954371.json
Remove unused imports
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/WebHandlerIntegrationTests.java
@@ -26,11 +26,9 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -import org.springframework.beans.MutablePropertyValues; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.annotation.Bean; import org.springframework.cont...
true
Other
spring-projects
spring-framework
f254680f291334ced941d539ceab7c90f5954371.json
Remove unused imports
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/view/freemarker/FreeMarkerViewTests.java
@@ -36,7 +36,6 @@ import org.springframework.http.server.reactive.MockServerHttpResponse; import org.springframework.ui.ExtendedModelMap; import org.springframework.ui.ModelMap; -import org.springframework.web.method.HandlerMethod; import org.springframework.web.reactive.HandlerResult; import org.springframework.w...
true
Other
spring-projects
spring-framework
8c7658144284f2f47124c6ac8131f53320091551.json
Provide rich type information to ConversionService When using the ConversionService to check and bridge to and from reactive types we now generallly provide the full type information available from method signatures. However that full type information is not always necessary such as when we perform additional checks o...
spring-web-reactive/src/main/java/org/springframework/core/convert/support/PublisherToFluxConverter.java
@@ -1,51 +0,0 @@ -/* - * Copyright 2002-2015 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 - * - * http://www.apache.org/licenses/LICENSE-2.0 - ...
true
Other
spring-projects
spring-framework
8c7658144284f2f47124c6ac8131f53320091551.json
Provide rich type information to ConversionService When using the ConversionService to check and bridge to and from reactive types we now generallly provide the full type information available from method signatures. However that full type information is not always necessary such as when we perform additional checks o...
spring-web-reactive/src/main/java/org/springframework/web/reactive/config/WebReactiveConfiguration.java
@@ -28,25 +28,25 @@ import org.springframework.context.ApplicationContextAware; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; -import org.springframework.core.codec.Decoder; -import org.springframework.core.codec.Encoder; import org.springframework....
true
Other
spring-projects
spring-framework
8c7658144284f2f47124c6ac8131f53320091551.json
Provide rich type information to ConversionService When using the ConversionService to check and bridge to and from reactive types we now generallly provide the full type information available from method signatures. However that full type information is not always necessary such as when we perform additional checks o...
spring-web-reactive/src/main/java/org/springframework/web/reactive/result/SimpleResultHandler.java
@@ -18,12 +18,14 @@ import java.util.Optional; +import org.reactivestreams.Publisher; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; import org.springframework.core.Ordered; import org.springframework.core.ResolvableType; import org.springframework.core.convert.ConversionService; +i...
true
Other
spring-projects
spring-framework
8c7658144284f2f47124c6ac8131f53320091551.json
Provide rich type information to ConversionService When using the ConversionService to check and bridge to and from reactive types we now generallly provide the full type information available from method signatures. However that full type information is not always necessary such as when we perform additional checks o...
spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/AbstractMessageConverterResultHandler.java
@@ -22,8 +22,10 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import org.springframework.core.MethodParameter; import org.springframework.core.ResolvableType; import org.springframework.core.convert.ConversionService; +import org.springframework.core.convert.TypeDescriptor; import o...
true
Other
spring-projects
spring-framework
8c7658144284f2f47124c6ac8131f53320091551.json
Provide rich type information to ConversionService When using the ConversionService to check and bridge to and from reactive types we now generallly provide the full type information available from method signatures. However that full type information is not always necessary such as when we perform additional checks o...
spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/RequestBodyArgumentResolver.java
@@ -29,6 +29,7 @@ import org.springframework.core.ResolvableType; import org.springframework.core.annotation.AnnotationUtils; import org.springframework.core.convert.ConversionService; +import org.springframework.core.convert.TypeDescriptor; import org.springframework.http.MediaType; import org.springframework.htt...
true
Other
spring-projects
spring-framework
8c7658144284f2f47124c6ac8131f53320091551.json
Provide rich type information to ConversionService When using the ConversionService to check and bridge to and from reactive types we now generallly provide the full type information available from method signatures. However that full type information is not always necessary such as when we perform additional checks o...
spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/ResponseBodyResultHandler.java
@@ -114,7 +114,8 @@ else if (getConversionService().canConvert(returnType.getRawClass(), Mono.class) public Mono<Void> handleResult(ServerWebExchange exchange, HandlerResult result) { Object body = result.getReturnValue().orElse(null); ResolvableType bodyType = result.getReturnType(); - return writeBody(exchan...
true
Other
spring-projects
spring-framework
8c7658144284f2f47124c6ac8131f53320091551.json
Provide rich type information to ConversionService When using the ConversionService to check and bridge to and from reactive types we now generallly provide the full type information available from method signatures. However that full type information is not always necessary such as when we perform additional checks o...
spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/ResponseEntityResultHandler.java
@@ -20,6 +20,7 @@ import reactor.core.publisher.Mono; +import org.springframework.core.MethodParameter; import org.springframework.core.ResolvableType; import org.springframework.core.convert.ConversionService; import org.springframework.http.HttpEntity; @@ -85,7 +86,6 @@ public boolean supports(HandlerResult r...
true
Other
spring-projects
spring-framework
8c7658144284f2f47124c6ac8131f53320091551.json
Provide rich type information to ConversionService When using the ConversionService to check and bridge to and from reactive types we now generallly provide the full type information available from method signatures. However that full type information is not always necessary such as when we perform additional checks o...
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/SimpleResultHandlerTests.java
@@ -16,6 +16,7 @@ package org.springframework.web.reactive.result; +import java.util.List; import java.util.concurrent.CompletableFuture; import org.junit.Before; @@ -26,10 +27,10 @@ import org.springframework.core.MethodParameter; import org.springframework.core.ResolvableType; -import org.springframework...
true
Other
spring-projects
spring-framework
8c7658144284f2f47124c6ac8131f53320091551.json
Provide rich type information to ConversionService When using the ConversionService to check and bridge to and from reactive types we now generallly provide the full type information available from method signatures. However that full type information is not always necessary such as when we perform additional checks o...
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/MessageConverterResultHandlerTests.java
@@ -36,12 +36,12 @@ import reactor.core.test.TestSubscriber; import rx.Observable; +import org.springframework.core.MethodParameter; import org.springframework.core.ResolvableType; import org.springframework.core.codec.ByteBufferEncoder; import org.springframework.core.codec.StringEncoder; import org.springfram...
true
Other
spring-projects
spring-framework
8c7658144284f2f47124c6ac8131f53320091551.json
Provide rich type information to ConversionService When using the ConversionService to check and bridge to and from reactive types we now generallly provide the full type information available from method signatures. However that full type information is not always necessary such as when we perform additional checks o...
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestBodyArgumentResolverTests.java
@@ -42,16 +42,16 @@ import org.springframework.core.ParameterNameDiscoverer; import org.springframework.core.annotation.SynthesizingMethodParameter; import org.springframework.core.codec.Decoder; -import org.springframework.core.convert.support.PublisherToFluxConverter; -import org.springframework.http.codec.json.Ja...
true
Other
spring-projects
spring-framework
8c7658144284f2f47124c6ac8131f53320091551.json
Provide rich type information to ConversionService When using the ConversionService to check and bridge to and from reactive types we now generallly provide the full type information available from method signatures. However that full type information is not always necessary such as when we perform additional checks o...
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/ResponseBodyResultHandlerTests.java
@@ -28,10 +28,10 @@ import org.springframework.core.codec.ByteBufferEncoder; import org.springframework.core.codec.StringEncoder; import org.springframework.core.convert.support.DefaultConversionService; -import org.springframework.core.convert.support.GenericConversionService; import org.springframework.core.conve...
true
Other
spring-projects
spring-framework
8c7658144284f2f47124c6ac8131f53320091551.json
Provide rich type information to ConversionService When using the ConversionService to check and bridge to and from reactive types we now generallly provide the full type information available from method signatures. However that full type information is not always necessary such as when we perform additional checks o...
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/ResponseEntityResultHandlerTests.java
@@ -33,11 +33,11 @@ import org.springframework.core.ResolvableType; import org.springframework.core.codec.ByteBufferEncoder; import org.springframework.core.codec.StringEncoder; -import org.springframework.core.convert.support.GenericConversionService; import org.springframework.core.convert.support.MonoToCompletab...
true
Other
spring-projects
spring-framework
8c7658144284f2f47124c6ac8131f53320091551.json
Provide rich type information to ConversionService When using the ConversionService to check and bridge to and from reactive types we now generallly provide the full type information available from method signatures. However that full type information is not always necessary such as when we perform additional checks o...
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/view/ViewResolutionResultHandlerTests.java
@@ -38,13 +38,13 @@ import org.springframework.core.MethodParameter; import org.springframework.core.Ordered; import org.springframework.core.ResolvableType; -import org.springframework.core.convert.support.ConfigurableConversionService; -import org.springframework.core.convert.support.DefaultConversionService; -imp...
true
Other
spring-projects
spring-framework
dffd6d674ab9415caed1b82755634f52383cd7ba.json
Shorten returnValueType name in HandlerResult
spring-web-reactive/src/main/java/org/springframework/web/reactive/HandlerResult.java
@@ -37,7 +37,7 @@ public class HandlerResult { private final Optional<Object> returnValue; - private final ResolvableType returnValueType; + private final ResolvableType returnType; private final ModelMap model; @@ -48,25 +48,25 @@ public class HandlerResult { * Create a new {@code HandlerResult}. * @...
true
Other
spring-projects
spring-framework
dffd6d674ab9415caed1b82755634f52383cd7ba.json
Shorten returnValueType name in HandlerResult
spring-web-reactive/src/main/java/org/springframework/web/reactive/result/SimpleResultHandler.java
@@ -18,7 +18,6 @@ import java.util.Optional; -import org.reactivestreams.Publisher; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -80,13 +79,13 @@ public int getOrder() { @Override public boolean supports(HandlerResult result) { - ResolvableType type = result.getReturnValueT...
true
Other
spring-projects
spring-framework
dffd6d674ab9415caed1b82755634f52383cd7ba.json
Shorten returnValueType name in HandlerResult
spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/ResponseBodyResultHandler.java
@@ -85,7 +85,7 @@ public ResponseBodyResultHandler(List<HttpMessageConverter<?>> converters, @Override public boolean supports(HandlerResult result) { - ResolvableType returnType = result.getReturnValueType(); + ResolvableType returnType = result.getReturnType(); if (returnType.getSource() instanceof MethodP...
true
Other
spring-projects
spring-framework
dffd6d674ab9415caed1b82755634f52383cd7ba.json
Shorten returnValueType name in HandlerResult
spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/ResponseEntityResultHandler.java
@@ -78,12 +78,12 @@ public ResponseEntityResultHandler(List<HttpMessageConverter<?>> converters, @Override public boolean supports(HandlerResult result) { - ResolvableType returnType = result.getReturnValueType(); + ResolvableType returnType = result.getReturnType(); if (isSupportedType(returnType)) { re...
true
Other
spring-projects
spring-framework
dffd6d674ab9415caed1b82755634f52383cd7ba.json
Shorten returnValueType name in HandlerResult
spring-web-reactive/src/main/java/org/springframework/web/reactive/result/view/ViewResolutionResultHandler.java
@@ -136,15 +136,15 @@ public List<View> getDefaultViews() { @Override public boolean supports(HandlerResult result) { - Class<?> clazz = result.getReturnValueType().getRawClass(); + Class<?> clazz = result.getReturnType().getRawClass(); if (hasModelAttributeAnnotation(result)) { return true; } if (...
true
Other
spring-projects
spring-framework
66fd86be33038db375f138ef8e03df2dec1ca0e6.json
Fix typo in asciidoc See gh-1089
src/asciidoc/core-beans.adoc
@@ -2680,7 +2680,7 @@ understand the "why" as well as the "how" behind it. ---- To create such a proxy, you insert a child `<aop:scoped-proxy/>` element into a scoped -bean definition. See <<beans-factory-scopes-other-injection-proxies>> and +bean definition. (See <<beans-factory-scopes-other-injection-proxies>> an...
false
Other
spring-projects
spring-framework
60123b6ca34480482478ca8e70dddd7f4efbed5c.json
Fix typo in javadoc See gh-1095
spring-aspects/src/main/java/org/springframework/context/annotation/aspectj/SpringConfiguredConfiguration.java
@@ -29,7 +29,7 @@ * Configurable}. * * <p>This configuration class is automatically imported when using the - * @{@link EnableSpringConfigured} annotation. See {@code @EnableSpringConfigured}'s + * {@link EnableSpringConfigured @EnableSpringConfigured} annotation. See {@code @EnableSpringConfigured}'s * javadoc...
false
Other
spring-projects
spring-framework
2f2546c8a454bd63181d793e31acdf0252b3ff4c.json
Simplify initialization of WebSession Mono The DefaultWebSessionManager now uses Mono.defer to protect the call to getSession from parsing session cookies immediately. This allows pre-initializing the Mono<WebSession> upfront vs using a lock.
spring-web-reactive/src/main/java/org/springframework/web/server/adapter/DefaultServerWebExchange.java
@@ -39,15 +39,9 @@ public class DefaultServerWebExchange implements ServerWebExchange { private final ServerHttpResponse response; - private final WebSessionManager sessionManager; - - private final Map<String, Object> attributes = new ConcurrentHashMap<>(); - private final Object createSessionLock = new Obje...
true
Other
spring-projects
spring-framework
2f2546c8a454bd63181d793e31acdf0252b3ff4c.json
Simplify initialization of WebSession Mono The DefaultWebSessionManager now uses Mono.defer to protect the call to getSession from parsing session cookies immediately. This allows pre-initializing the Mono<WebSession> upfront vs using a lock.
spring-web-reactive/src/main/java/org/springframework/web/server/session/DefaultWebSessionManager.java
@@ -99,12 +99,13 @@ public Clock getClock() { @Override public Mono<WebSession> getSession(ServerWebExchange exchange) { - return Flux.fromIterable(getSessionIdResolver().resolveSessionIds(exchange)) - .concatMap(this.sessionStore::retrieveSession) - .next() - .then(session -> validateSession(exchange, ...
true
Other
spring-projects
spring-framework
6d089cdc08e54091224cf2ec61ca4c81a6c40ca2.json
Move remaining JAXB2 test files from core to http
spring-web-reactive/src/main/java/org/springframework/core/codec/support/CharSequenceEncoder.java
@@ -0,0 +1,51 @@ +/* + * 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
6d089cdc08e54091224cf2ec61ca4c81a6c40ca2.json
Move remaining JAXB2 test files from core to http
spring-web-reactive/src/test/java/org/springframework/http/codec/xml/Jaxb2DecoderTests.java
@@ -25,20 +25,14 @@ import reactor.core.test.TestSubscriber; import org.springframework.core.ResolvableType; -import org.springframework.core.codec.support.jaxb.XmlRootElement; -import org.springframework.core.codec.support.jaxb.XmlRootElementWithName; -import org.springframework.core.codec.support.jaxb.XmlRootElem...
true
Other
spring-projects
spring-framework
6d089cdc08e54091224cf2ec61ca4c81a6c40ca2.json
Move remaining JAXB2 test files from core to http
spring-web-reactive/src/test/java/org/springframework/http/codec/xml/XmlEventDecoderTests.java
@@ -23,7 +23,6 @@ import reactor.core.test.TestSubscriber; import org.springframework.core.io.buffer.AbstractDataBufferAllocatingTestCase; -import org.springframework.http.codec.xml.XmlEventDecoder; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue;
true
Other
spring-projects
spring-framework
6d089cdc08e54091224cf2ec61ca4c81a6c40ca2.json
Move remaining JAXB2 test files from core to http
spring-web-reactive/src/test/java/org/springframework/http/codec/xml/XmlRootElement.java
@@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.core.codec.support.jaxb; +package org.springframework.http.codec.xml; /** * @author Arjen Poutsma
true
Other
spring-projects
spring-framework
6d089cdc08e54091224cf2ec61ca4c81a6c40ca2.json
Move remaining JAXB2 test files from core to http
spring-web-reactive/src/test/java/org/springframework/http/codec/xml/XmlRootElementWithName.java
@@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.core.codec.support.jaxb; +package org.springframework.http.codec.xml; import javax.xml.bind.annotation.XmlRootElement;
true
Other
spring-projects
spring-framework
6d089cdc08e54091224cf2ec61ca4c81a6c40ca2.json
Move remaining JAXB2 test files from core to http
spring-web-reactive/src/test/java/org/springframework/http/codec/xml/XmlRootElementWithNameAndNamespace.java
@@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.core.codec.support.jaxb; +package org.springframework.http.codec.xml; import javax.xml.bind.annotation.XmlRootElement;
true
Other
spring-projects
spring-framework
6d089cdc08e54091224cf2ec61ca4c81a6c40ca2.json
Move remaining JAXB2 test files from core to http
spring-web-reactive/src/test/java/org/springframework/http/codec/xml/XmlType.java
@@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.core.codec.support.jaxb; +package org.springframework.http.codec.xml; /** * @author Arjen Poutsma
true
Other
spring-projects
spring-framework
6d089cdc08e54091224cf2ec61ca4c81a6c40ca2.json
Move remaining JAXB2 test files from core to http
spring-web-reactive/src/test/java/org/springframework/http/codec/xml/XmlTypeWithName.java
@@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.core.codec.support.jaxb; +package org.springframework.http.codec.xml; import javax.xml.bind.annotation.XmlType;
true
Other
spring-projects
spring-framework
6d089cdc08e54091224cf2ec61ca4c81a6c40ca2.json
Move remaining JAXB2 test files from core to http
spring-web-reactive/src/test/java/org/springframework/http/codec/xml/XmlTypeWithNameAndNamespace.java
@@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.core.codec.support.jaxb; +package org.springframework.http.codec.xml; import javax.xml.bind.annotation.XmlType;
true
Other
spring-projects
spring-framework
6d089cdc08e54091224cf2ec61ca4c81a6c40ca2.json
Move remaining JAXB2 test files from core to http
spring-web-reactive/src/test/java/org/springframework/http/codec/xml/package-info.java
@@ -1,2 +1,2 @@ @javax.xml.bind.annotation.XmlSchema(namespace = "namespace") -package org.springframework.core.codec.support.jaxb; +package org.springframework.http.codec.xml;
true
Other
spring-projects
spring-framework
82778e1746ab38677ed5b559ae31e01516e55d05.json
Fix copy & paste error for cache schema This replaces the prefix "jdbc" with "cache" and fixes the schema URL. Closes gh-1028
src/asciidoc/appendix.adoc
@@ -3163,9 +3163,9 @@ the correct schema so that the tags in the `cache` namespace are available to yo <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - __xmlns:jdbc="http://www.springframework.org/schema/cac...
false
Other
spring-projects
spring-framework
a3b371bf4bd04ce590dc2b3df0a7e373b015e6d5.json
Accept all media types in StringDecodere This commit adds the "*/*" media type in the list of compatible media types for the StringDecoder. This allows this decoder to decoder payloads of any media type as long as the target type is String. Fixes #87
spring-web-reactive/src/main/java/org/springframework/core/codec/support/StringDecoder.java
@@ -25,6 +25,7 @@ import org.springframework.core.ResolvableType; import org.springframework.core.io.buffer.DataBuffer; import org.springframework.util.MimeType; +import org.springframework.util.MimeTypeUtils; /** * Decode from a bytes stream to a String stream. @@ -63,7 +64,7 @@ public StringDecoder() { * a...
true
Other
spring-projects
spring-framework
a3b371bf4bd04ce590dc2b3df0a7e373b015e6d5.json
Accept all media types in StringDecodere This commit adds the "*/*" media type in the list of compatible media types for the StringDecoder. This allows this decoder to decoder payloads of any media type as long as the target type is String. Fixes #87
spring-web-reactive/src/test/java/org/springframework/core/codec/support/StringDecoderTests.java
@@ -48,8 +48,9 @@ public void createEncoder() { public void canDecode() { assertTrue(decoder.canDecode(ResolvableType.forClass(String.class), MediaType.TEXT_PLAIN)); assertTrue(decoder.canDecode(ResolvableType.forClass(String.class), MediaType.TEXT_HTML)); + assertTrue(decoder.canDecode(ResolvableType.forClass...
true
Other
spring-projects
spring-framework
a3b371bf4bd04ce590dc2b3df0a7e373b015e6d5.json
Accept all media types in StringDecodere This commit adds the "*/*" media type in the list of compatible media types for the StringDecoder. This allows this decoder to decoder payloads of any media type as long as the target type is String. Fixes #87
spring-web-reactive/src/test/java/org/springframework/web/client/reactive/WebClientIntegrationTests.java
@@ -130,6 +130,28 @@ public void accept(ResponseEntity<String> response) { assertEquals("text/plain", request.getHeader(HttpHeaders.ACCEPT)); } + @Test + public void shouldGetJsonAsMonoOfString() throws Exception { + + HttpUrl baseUrl = server.url("/json"); + String content = "{\"bar\":\"barbar\",\"foo\":\"foo...
true
Other
spring-projects
spring-framework
3abe75b2541f4422a8f2ac0788fc148f74bb1f04.json
Remove section on spring-framework-contrib group
CONTRIBUTING.md
@@ -33,14 +33,6 @@ 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. -### Discuss non-trivial contribution ideas with committers - -If you're considering anything more than co...
false
Other
spring-projects
spring-framework
09327181c4d07031e4ed8aa7a822c34075de935a.json
Improve ClientHttpRequestFactory javadoc This commit underlines the fact that the request created by a ClientHttpRequestFactory should be augmented with a message body using the `ClientHttpRequest#setBody` method before it is executed. See #82
spring-web-reactive/src/main/java/org/springframework/http/client/reactive/ClientHttpRequestFactory.java
@@ -17,6 +17,8 @@ import java.net.URI; +import org.reactivestreams.Publisher; + import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; @@ -29,6 +31,8 @@ public interface ClientHttpRequestFactory { /** * Create a new {@link ClientHttpRequest} for the specified HTTP metho...
false
Other
spring-projects
spring-framework
e2a07659ab3bcef618661c94583a4596765cf1a6.json
Add generics support for WebResponseExtractors This commit adds generics support for WebResponseExtractors. Types should be described using a ResolvableType, which can be created with static methods like: // for the type Event<Registration> ResolvableType.forClassWithGenerics(Event.class, Registration.class) ...
spring-web-reactive/src/main/java/org/springframework/web/client/reactive/WebResponseExtractors.java
@@ -47,33 +47,47 @@ public class WebResponseExtractors { /** * Extract the response body and decode it, returning it as a {@code Mono<T>} + * @see ResolvableType#forClassWithGenerics(Class, Class[]) */ - public static <T> WebResponseExtractor<Mono<T>> body(Class<T> sourceClass) { - - ResolvableType resolvab...
false
Other
spring-projects
spring-framework
2075932780b9801c22222ddd2016ed63f360c894.json
Add support for RxJava 2 Maybe type Issue: SPR-14843
spring-core/src/main/java/org/springframework/core/ReactiveAdapterRegistry.java
@@ -25,6 +25,7 @@ import io.reactivex.BackpressureStrategy; import io.reactivex.Flowable; +import io.reactivex.Maybe; import org.reactivestreams.Publisher; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -43,6 +44,7 @@ * registered via {@link #registerFluxAdapter} and {@link #registe...
true
Other
spring-projects
spring-framework
2075932780b9801c22222ddd2016ed63f360c894.json
Add support for RxJava 2 Maybe type Issue: SPR-14843
spring-core/src/test/java/org/springframework/core/convert/support/ReactiveAdapterRegistryTests.java
@@ -18,6 +18,7 @@ import java.util.concurrent.CompletableFuture; import io.reactivex.Flowable; +import io.reactivex.Maybe; import org.junit.Before; import org.junit.Test; import org.reactivestreams.Publisher; @@ -59,6 +60,7 @@ public void getDefaultAdapters() throws Exception { testFluxAdapter(Flowable.class)...
true
Other
spring-projects
spring-framework
2075932780b9801c22222ddd2016ed63f360c894.json
Add support for RxJava 2 Maybe type Issue: SPR-14843
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/HttpEntityArgumentResolverTests.java
@@ -24,6 +24,7 @@ import io.reactivex.BackpressureStrategy; import io.reactivex.Flowable; +import io.reactivex.Maybe; import org.junit.Before; import org.junit.Test; import reactor.core.publisher.Flux; @@ -98,6 +99,7 @@ public void supports() throws Exception { testSupports(httpEntityType(forClassWithGenerics...
true
Other
spring-projects
spring-framework
2075932780b9801c22222ddd2016ed63f360c894.json
Add support for RxJava 2 Maybe type Issue: SPR-14843
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/MessageReaderArgumentResolverTests.java
@@ -29,6 +29,7 @@ import javax.xml.bind.annotation.XmlRootElement; import io.reactivex.Flowable; +import io.reactivex.Maybe; import org.junit.Before; import org.junit.Test; import reactor.core.publisher.Flux; @@ -159,6 +160,16 @@ public void rxJava2SingleTestBean() throws Exception { assertEquals(new TestBean...
true
Other
spring-projects
spring-framework
2075932780b9801c22222ddd2016ed63f360c894.json
Add support for RxJava 2 Maybe type Issue: SPR-14843
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestBodyArgumentResolverTests.java
@@ -22,12 +22,12 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Predicate; +import io.reactivex.Maybe; import org.junit.Before; import org.junit.Test; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; import reactor.test.subscriber.ScriptedSubscriber; -import ...
true
Other
spring-projects
spring-framework
2075932780b9801c22222ddd2016ed63f360c894.json
Add support for RxJava 2 Maybe type Issue: SPR-14843
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestMappingMessageConversionIntegrationTests.java
@@ -26,6 +26,7 @@ import javax.xml.bind.annotation.XmlRootElement; import io.reactivex.Flowable; +import io.reactivex.Maybe; import org.junit.Test; import org.reactivestreams.Publisher; import reactor.core.publisher.Flux; @@ -218,6 +219,13 @@ public void personTransformWithRxJava2Single() throws Exception { ...
true
Other
spring-projects
spring-framework
aea3a750189977ca231172db87408f03979bace6.json
Fix failing tests Issue: SPR-14772, SPR-14803
spring-web/src/main/java/org/springframework/http/server/reactive/ServletHttpHandlerAdapter.java
@@ -90,12 +90,14 @@ public int getBufferSize() { @Override public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws IOException { + // Start async before Read/WriteListener registration + AsyncContext asyncContext = servletRequest.startAsync(); + ServletServerHttpRequest req...
false
Other
spring-projects
spring-framework
61cf9fdda5b2219adc76a4a3e024006ed01fcdd6.json
Remove factory methods from WebReactiveConfigurer This commit removes factory methods for `RequestMappingHandlerMapping` and `RequestMappingHandlerAdapter` from `WebReactiveConfigurer`. `WebReactiveConfigurer` should promote only common customizations; those factory methods should be overridden when extending `WebRea...
spring-web-reactive/src/main/java/org/springframework/web/reactive/config/DelegatingWebReactiveConfiguration.java
@@ -28,8 +28,6 @@ import org.springframework.validation.Validator; import org.springframework.web.reactive.accept.RequestedContentTypeResolverBuilder; import org.springframework.web.reactive.result.method.HandlerMethodArgumentResolver; -import org.springframework.web.reactive.result.method.annotation.RequestMappingH...
true
Other
spring-projects
spring-framework
61cf9fdda5b2219adc76a4a3e024006ed01fcdd6.json
Remove factory methods from WebReactiveConfigurer This commit removes factory methods for `RequestMappingHandlerMapping` and `RequestMappingHandlerAdapter` from `WebReactiveConfigurer`. `WebReactiveConfigurer` should promote only common customizations; those factory methods should be overridden when extending `WebRea...
spring-web-reactive/src/main/java/org/springframework/web/reactive/config/WebReactiveConfigurer.java
@@ -30,8 +30,6 @@ import org.springframework.web.reactive.accept.RequestedContentTypeResolver; import org.springframework.web.reactive.accept.RequestedContentTypeResolverBuilder; import org.springframework.web.reactive.result.method.HandlerMethodArgumentResolver; -import org.springframework.web.reactive.result.metho...
true
Other
spring-projects
spring-framework
61cf9fdda5b2219adc76a4a3e024006ed01fcdd6.json
Remove factory methods from WebReactiveConfigurer This commit removes factory methods for `RequestMappingHandlerMapping` and `RequestMappingHandlerAdapter` from `WebReactiveConfigurer`. `WebReactiveConfigurer` should promote only common customizations; those factory methods should be overridden when extending `WebRea...
spring-web-reactive/src/main/java/org/springframework/web/reactive/config/WebReactiveConfigurerComposite.java
@@ -30,8 +30,6 @@ import org.springframework.validation.Validator; import org.springframework.web.reactive.accept.RequestedContentTypeResolverBuilder; import org.springframework.web.reactive.result.method.HandlerMethodArgumentResolver; -import org.springframework.web.reactive.result.method.annotation.RequestMappingH...
true
Other
spring-projects
spring-framework
61cf9fdda5b2219adc76a4a3e024006ed01fcdd6.json
Remove factory methods from WebReactiveConfigurer This commit removes factory methods for `RequestMappingHandlerMapping` and `RequestMappingHandlerAdapter` from `WebReactiveConfigurer`. `WebReactiveConfigurer` should promote only common customizations; those factory methods should be overridden when extending `WebRea...
spring-web-reactive/src/test/java/org/springframework/web/reactive/config/DelegatingWebReactiveConfigurationTests.java
@@ -16,15 +16,12 @@ package org.springframework.web.reactive.config; -import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Optional; import org.junit.Before; -import org.junit.Rule; import org.junit.Test; -import org.junit.rules.ExpectedException; import org.mockit...
true
Other
spring-projects
spring-framework
08931950f479ed375619275d44a9e9c22f35d73f.json
Add byte[] encoder and decoder This commit adds a ByteArrayDecoder and ByteArrayEncoder.
spring-core/src/main/java/org/springframework/core/codec/ByteArrayDecoder.java
@@ -0,0 +1,62 @@ +/* + * 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
08931950f479ed375619275d44a9e9c22f35d73f.json
Add byte[] encoder and decoder This commit adds a ByteArrayDecoder and ByteArrayEncoder.
spring-core/src/main/java/org/springframework/core/codec/ByteArrayEncoder.java
@@ -0,0 +1,57 @@ +/* + * 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
08931950f479ed375619275d44a9e9c22f35d73f.json
Add byte[] encoder and decoder This commit adds a ByteArrayDecoder and ByteArrayEncoder.
spring-core/src/main/java/org/springframework/core/io/buffer/DataBufferFactory.java
@@ -52,4 +52,11 @@ public interface DataBufferFactory { */ DataBuffer wrap(ByteBuffer byteBuffer); + /** + * Wrap the given {@code byte} array in a {@code DataBuffer}. + * @param bytes the byte array to wrap + * @return the wrapped buffer + */ + DataBuffer wrap(byte[] bytes); + }
true
Other
spring-projects
spring-framework
08931950f479ed375619275d44a9e9c22f35d73f.json
Add byte[] encoder and decoder This commit adds a ByteArrayDecoder and ByteArrayEncoder.
spring-core/src/main/java/org/springframework/core/io/buffer/DefaultDataBufferFactory.java
@@ -94,6 +94,12 @@ public DefaultDataBuffer wrap(ByteBuffer byteBuffer) { return new DefaultDataBuffer(sliced, 0, byteBuffer.remaining(), this); } + @Override + public DataBuffer wrap(byte[] bytes) { + ByteBuffer wrapper = ByteBuffer.wrap(bytes); + return new DefaultDataBuffer(wrapper, 0, bytes.length, this); ...
true
Other
spring-projects
spring-framework
08931950f479ed375619275d44a9e9c22f35d73f.json
Add byte[] encoder and decoder This commit adds a ByteArrayDecoder and ByteArrayEncoder.
spring-core/src/main/java/org/springframework/core/io/buffer/NettyDataBufferFactory.java
@@ -68,6 +68,12 @@ public NettyDataBuffer wrap(ByteBuffer byteBuffer) { return new NettyDataBuffer(byteBuf, this); } + @Override + public DataBuffer wrap(byte[] bytes) { + ByteBuf byteBuf = Unpooled.wrappedBuffer(bytes); + return new NettyDataBuffer(byteBuf, this); + } + /** * Wrap the given Netty {@link ...
true
Other
spring-projects
spring-framework
08931950f479ed375619275d44a9e9c22f35d73f.json
Add byte[] encoder and decoder This commit adds a ByteArrayDecoder and ByteArrayEncoder.
spring-core/src/test/java/org/springframework/core/codec/ByteArrayDecoderTests.java
@@ -0,0 +1,68 @@ +/* + * 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
08931950f479ed375619275d44a9e9c22f35d73f.json
Add byte[] encoder and decoder This commit adds a ByteArrayDecoder and ByteArrayEncoder.
spring-core/src/test/java/org/springframework/core/codec/ByteArrayEncoderTests.java
@@ -0,0 +1,82 @@ +/* + * 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
08931950f479ed375619275d44a9e9c22f35d73f.json
Add byte[] encoder and decoder This commit adds a ByteArrayDecoder and ByteArrayEncoder.
spring-web-reactive/src/main/java/org/springframework/web/reactive/config/WebReactiveConfigurationSupport.java
@@ -28,6 +28,8 @@ import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; import org.springframework.context.annotation.Bean; +import org.springframework.core.codec.ByteArrayDecoder; +import org.springframework.core.codec.ByteArrayEncoder; import org.spring...
true
Other
spring-projects
spring-framework
08931950f479ed375619275d44a9e9c22f35d73f.json
Add byte[] encoder and decoder This commit adds a ByteArrayDecoder and ByteArrayEncoder.
spring-web-reactive/src/main/java/org/springframework/web/reactive/function/DefaultHandlerStrategiesBuilder.java
@@ -23,6 +23,8 @@ import java.util.stream.Stream; import org.springframework.context.ApplicationContext; +import org.springframework.core.codec.ByteArrayDecoder; +import org.springframework.core.codec.ByteArrayEncoder; import org.springframework.core.codec.ByteBufferDecoder; import org.springframework.core.codec....
true
Other
spring-projects
spring-framework
08931950f479ed375619275d44a9e9c22f35d73f.json
Add byte[] encoder and decoder This commit adds a ByteArrayDecoder and ByteArrayEncoder.
spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/RequestMappingHandlerAdapter.java
@@ -32,6 +32,7 @@ import org.springframework.beans.factory.InitializingBean; import org.springframework.beans.factory.config.ConfigurableBeanFactory; import org.springframework.core.ReactiveAdapterRegistry; +import org.springframework.core.codec.ByteArrayDecoder; import org.springframework.core.codec.ByteBufferDeco...
true
Other
spring-projects
spring-framework
08931950f479ed375619275d44a9e9c22f35d73f.json
Add byte[] encoder and decoder This commit adds a ByteArrayDecoder and ByteArrayEncoder.
spring-web-reactive/src/test/java/org/springframework/web/reactive/config/DelegatingWebReactiveConfigurationTests.java
@@ -151,7 +151,7 @@ public void requestMappingHandlerAdapter() throws Exception { verify(webReactiveConfigurer).addArgumentResolvers(any()); assertSame(formatterRegistry.getValue(), initializerConversionService); - assertEquals(5, readers.getValue().size()); + assertEquals(6, readers.getValue().size()); } ...
true
Other
spring-projects
spring-framework
08931950f479ed375619275d44a9e9c22f35d73f.json
Add byte[] encoder and decoder This commit adds a ByteArrayDecoder and ByteArrayEncoder.
spring-web-reactive/src/test/java/org/springframework/web/reactive/config/WebReactiveConfigurationSupportTests.java
@@ -145,8 +145,9 @@ public void requestMappingHandlerAdapter() throws Exception { assertNotNull(adapter); List<HttpMessageReader<?>> readers = adapter.getMessageReaders(); - assertEquals(5, readers.size()); + assertEquals(6, readers.size()); + assertHasMessageReader(readers, byte[].class, APPLICATION_OCTET...
true
Other
spring-projects
spring-framework
08931950f479ed375619275d44a9e9c22f35d73f.json
Add byte[] encoder and decoder This commit adds a ByteArrayDecoder and ByteArrayEncoder.
spring-web/src/main/java/org/springframework/web/client/reactive/DefaultWebClientStrategiesBuilder.java
@@ -23,6 +23,8 @@ import java.util.stream.Stream; import org.springframework.context.ApplicationContext; +import org.springframework.core.codec.ByteArrayDecoder; +import org.springframework.core.codec.ByteArrayEncoder; import org.springframework.core.codec.ByteBufferDecoder; import org.springframework.core.codec....
true
Other
spring-projects
spring-framework
c2fdc9103b828fed387aa28ed39f13de906f1daf.json
Upgrade SonarQube plugin version to 2.2
build.gradle
@@ -11,7 +11,7 @@ buildscript { } plugins { - id "org.sonarqube" version "2.1-rc1" + id "org.sonarqube" version "2.2" } ext {
false
Other
spring-projects
spring-framework
ec1eb14280e2a5b4584504938d657c63c938a0d0.json
Add getPrincipal to ServerWebExchange ServerWebExchange now has a getPrincipal method and along with that a ServerWebExchangeDecorator that can be used to wrap the exchange in order to return the authenticated user. Issue: SPR-14680
spring-web/src/main/java/org/springframework/web/server/ServerWebExchange.java
@@ -16,6 +16,7 @@ package org.springframework.web.server; +import java.security.Principal; import java.time.Instant; import java.util.Map; import java.util.Optional; @@ -68,6 +69,11 @@ public interface ServerWebExchange { */ Mono<WebSession> getSession(); + /** + * Return the authenticated user for the ...
true
Other
spring-projects
spring-framework
ec1eb14280e2a5b4584504938d657c63c938a0d0.json
Add getPrincipal to ServerWebExchange ServerWebExchange now has a getPrincipal method and along with that a ServerWebExchangeDecorator that can be used to wrap the exchange in order to return the authenticated user. Issue: SPR-14680
spring-web/src/main/java/org/springframework/web/server/ServerWebExchangeDecorator.java
@@ -0,0 +1,109 @@ +/* + * 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
ec1eb14280e2a5b4584504938d657c63c938a0d0.json
Add getPrincipal to ServerWebExchange ServerWebExchange now has a getPrincipal method and along with that a ServerWebExchangeDecorator that can be used to wrap the exchange in order to return the authenticated user. Issue: SPR-14680
spring-web/src/main/java/org/springframework/web/server/adapter/DefaultServerWebExchange.java
@@ -16,6 +16,7 @@ package org.springframework.web.server.adapter; +import java.security.Principal; import java.time.Instant; import java.time.temporal.ChronoUnit; import java.util.Arrays; @@ -104,6 +105,11 @@ public Mono<WebSession> getSession() { return this.sessionMono; } + @Override + public <T extend...
true
Other
spring-projects
spring-framework
3533024ab87468a9edcd95e762458e6af9516ba9.json
Add EnableWebReactive + WebReactiveConfigurer This commit improves the existing web reactive configuration infrastructure with the following changes: * renamed `WebReactiveConfiguration` to `WebReactiveConfigurationSupport` and is is no longer a Configuration class * created the `WebReactiveConfigurer` interface; Con...
spring-web-reactive/src/main/java/org/springframework/web/reactive/config/DelegatingWebReactiveConfiguration.java
@@ -0,0 +1,115 @@ +package org.springframework.web.reactive.config; + +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Configuration; +import org.springframework.format.FormatterRegistry; +import org.springframework.http.codec.HttpM...
true
Other
spring-projects
spring-framework
3533024ab87468a9edcd95e762458e6af9516ba9.json
Add EnableWebReactive + WebReactiveConfigurer This commit improves the existing web reactive configuration infrastructure with the following changes: * renamed `WebReactiveConfiguration` to `WebReactiveConfigurationSupport` and is is no longer a Configuration class * created the `WebReactiveConfigurer` interface; Con...
spring-web-reactive/src/main/java/org/springframework/web/reactive/config/EnableWebReactive.java
@@ -0,0 +1,80 @@ +package org.springframework.web.reactive.config; + +import java.lang.annotation.Documented; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +import org.springframework.context.annotat...
true
Other
spring-projects
spring-framework
3533024ab87468a9edcd95e762458e6af9516ba9.json
Add EnableWebReactive + WebReactiveConfigurer This commit improves the existing web reactive configuration infrastructure with the following changes: * renamed `WebReactiveConfiguration` to `WebReactiveConfigurationSupport` and is is no longer a Configuration class * created the `WebReactiveConfigurer` interface; Con...
spring-web-reactive/src/main/java/org/springframework/web/reactive/config/WebReactiveConfigurationSupport.java
@@ -28,7 +28,6 @@ import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; import org.springframework.core.codec.ByteBufferDecoder; import org....
true
Other
spring-projects
spring-framework
3533024ab87468a9edcd95e762458e6af9516ba9.json
Add EnableWebReactive + WebReactiveConfigurer This commit improves the existing web reactive configuration infrastructure with the following changes: * renamed `WebReactiveConfiguration` to `WebReactiveConfigurationSupport` and is is no longer a Configuration class * created the `WebReactiveConfigurer` interface; Con...
spring-web-reactive/src/main/java/org/springframework/web/reactive/config/WebReactiveConfigurer.java
@@ -0,0 +1,156 @@ +package org.springframework.web.reactive.config; + +import java.util.List; +import java.util.Optional; + +import org.springframework.core.convert.converter.Converter; +import org.springframework.format.Formatter; +import org.springframework.format.FormatterRegistry; +import org.springframework.http.c...
true
Other
spring-projects
spring-framework
3533024ab87468a9edcd95e762458e6af9516ba9.json
Add EnableWebReactive + WebReactiveConfigurer This commit improves the existing web reactive configuration infrastructure with the following changes: * renamed `WebReactiveConfiguration` to `WebReactiveConfigurationSupport` and is is no longer a Configuration class * created the `WebReactiveConfigurer` interface; Con...
spring-web-reactive/src/main/java/org/springframework/web/reactive/config/WebReactiveConfigurerComposite.java
@@ -0,0 +1,152 @@ +package org.springframework.web.reactive.config; + +import java.util.ArrayList; +import java.util.List; +import java.util.Optional; + +import org.springframework.format.FormatterRegistry; +import org.springframework.http.codec.HttpMessageReader; +import org.springframework.http.codec.HttpMessageWrite...
true