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
181482fa15b02a1ae27f54aea39ea0a8acdc35ec.json
Add option to encode with an Object value See gh-22782
spring-web/src/main/java/org/springframework/http/codec/json/AbstractJackson2Encoder.java
@@ -119,7 +119,7 @@ public Flux<DataBuffer> encode(Publisher<?> inputStream, DataBufferFactory buffe if (inputStream instanceof Mono) { return Mono.from(inputStream).map(value -> - encodeValue(value, mimeType, bufferFactory, elementType, hints, encoding)).flux(); + encodeValue(value, bufferFactory, ele...
true
Other
spring-projects
spring-framework
181482fa15b02a1ae27f54aea39ea0a8acdc35ec.json
Add option to encode with an Object value See gh-22782
spring-web/src/main/java/org/springframework/http/codec/protobuf/ProtobufEncoder.java
@@ -73,29 +73,39 @@ public boolean canEncode(ResolvableType elementType, @Nullable MimeType mimeType public Flux<DataBuffer> encode(Publisher<? extends Message> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) { - return...
true
Other
spring-projects
spring-framework
181482fa15b02a1ae27f54aea39ea0a8acdc35ec.json
Add option to encode with an Object value See gh-22782
spring-web/src/main/java/org/springframework/http/codec/xml/Jaxb2XmlEncoder.java
@@ -99,7 +99,15 @@ public boolean canEncode(ResolvableType elementType, @Nullable MimeType mimeType @Override protected Flux<DataBuffer> encode(Object value, DataBufferFactory bufferFactory, - ResolvableType type, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) { + ResolvableType valueType, ...
true
Other
spring-projects
spring-framework
f89d2ac14891d21714462e6ea4f8dc32d325f1cf.json
Use decode from a DataBuffer where feasible See gh-22782
spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/support/reactive/PayloadMethodArgumentResolver.java
@@ -232,26 +232,26 @@ private Mono<Object> decodeContent(MethodParameter parameter, Message<?> message if (decoder.canDecode(elementType, mimeType)) { if (adapter != null && adapter.isMultiValue()) { Flux<?> flux = content - .concatMap(buffer -> decoder.decode(Mono.just(buffer), elementType, mimeTy...
true
Other
spring-projects
spring-framework
f89d2ac14891d21714462e6ea4f8dc32d325f1cf.json
Use decode from a DataBuffer where feasible See gh-22782
spring-messaging/src/main/java/org/springframework/messaging/rsocket/DefaultRSocketRequester.java
@@ -244,8 +244,8 @@ private <T> Mono<T> retrieveMono(ResolvableType elementType) { } Decoder<?> decoder = strategies.decoder(elementType, dataMimeType); - return (Mono<T>) decoder.decodeToMono( - payloadMono.map(this::retainDataAndReleasePayload), elementType, dataMimeType, EMPTY_HINTS); + return (Mon...
true
Other
spring-projects
spring-framework
f89d2ac14891d21714462e6ea4f8dc32d325f1cf.json
Use decode from a DataBuffer where feasible See gh-22782
spring-web/src/main/java/org/springframework/http/codec/ServerSentEventHttpMessageReader.java
@@ -106,10 +106,11 @@ public Flux<Object> read( return stringDecoder.decode(message.getBody(), STRING_TYPE, null, hints) .bufferUntil(line -> line.equals("")) - .concatMap(lines -> buildEvent(lines, valueType, shouldWrap, hints)); + .concatMap(lines -> Mono.justOrEmpty(buildEvent(lines, valueType, shoul...
true
Other
spring-projects
spring-framework
a912d8de1ea26cd071342f919eb0c6bad4945062.json
Add option to decode from a DataBuffer See gh-22782
spring-core/src/main/java/org/springframework/core/codec/AbstractDataBufferDecoder.java
@@ -45,6 +45,7 @@ * @since 5.0 * @param <T> the element type */ +@SuppressWarnings("deprecation") public abstract class AbstractDataBufferDecoder<T> extends AbstractDecoder<T> { @@ -70,8 +71,14 @@ public Mono<T> decodeToMono(Publisher<DataBuffer> input, ResolvableType elementT /** * How to decode a {@...
true
Other
spring-projects
spring-framework
a912d8de1ea26cd071342f919eb0c6bad4945062.json
Add option to decode from a DataBuffer See gh-22782
spring-core/src/main/java/org/springframework/core/codec/ByteArrayDecoder.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -45,7 +45,7 @@ public boolean canDecode(Reso...
true
Other
spring-projects
spring-framework
a912d8de1ea26cd071342f919eb0c6bad4945062.json
Add option to decode from a DataBuffer See gh-22782
spring-core/src/main/java/org/springframework/core/codec/ByteBufferDecoder.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -48,7 +48,7 @@ public boolean canDecode(Reso...
true
Other
spring-projects
spring-framework
a912d8de1ea26cd071342f919eb0c6bad4945062.json
Add option to decode from a DataBuffer See gh-22782
spring-core/src/main/java/org/springframework/core/codec/DataBufferDecoder.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -64,7 +64,7 @@ public Flux<DataBuffer> decod...
true
Other
spring-projects
spring-framework
a912d8de1ea26cd071342f919eb0c6bad4945062.json
Add option to decode from a DataBuffer See gh-22782
spring-core/src/main/java/org/springframework/core/codec/Decoder.java
@@ -22,10 +22,12 @@ import org.reactivestreams.Publisher; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import reactor.core.publisher.MonoProcessor; import org.springframework.core.ResolvableType; import org.springframework.core.io.buffer.DataBuffer; import org.springframework.lang.Nu...
true
Other
spring-projects
spring-framework
a912d8de1ea26cd071342f919eb0c6bad4945062.json
Add option to decode from a DataBuffer See gh-22782
spring-core/src/main/java/org/springframework/core/codec/ResourceDecoder.java
@@ -64,7 +64,7 @@ public Flux<Resource> decode(Publisher<DataBuffer> inputStream, ResolvableType e } @Override - protected Resource decodeDataBuffer(DataBuffer dataBuffer, ResolvableType elementType, + public Resource decode(DataBuffer dataBuffer, ResolvableType elementType, @Nullable MimeType mimeType, @Null...
true
Other
spring-projects
spring-framework
a912d8de1ea26cd071342f919eb0c6bad4945062.json
Add option to decode from a DataBuffer See gh-22782
spring-core/src/main/java/org/springframework/core/codec/StringDecoder.java
@@ -202,7 +202,7 @@ private static DataBuffer joinUntilEndFrame(List<DataBuffer> dataBuffers) { } @Override - protected String decodeDataBuffer(DataBuffer dataBuffer, ResolvableType elementType, + public String decode(DataBuffer dataBuffer, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Ma...
true
Other
spring-projects
spring-framework
a912d8de1ea26cd071342f919eb0c6bad4945062.json
Add option to decode from a DataBuffer See gh-22782
spring-web/src/main/java/org/springframework/http/codec/json/AbstractJackson2Decoder.java
@@ -110,20 +110,26 @@ public Flux<Object> decode(Publisher<DataBuffer> input, ResolvableType elementTy public Mono<Object> decodeToMono(Publisher<DataBuffer> input, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) { - return DataBufferUtils.join(input).map(dataBuffe...
true
Other
spring-projects
spring-framework
a912d8de1ea26cd071342f919eb0c6bad4945062.json
Add option to decode from a DataBuffer See gh-22782
spring-web/src/main/java/org/springframework/http/codec/protobuf/ProtobufDecoder.java
@@ -127,26 +127,32 @@ public Flux<Message> decode(Publisher<DataBuffer> inputStream, ResolvableType el public Mono<Message> decodeToMono(Publisher<DataBuffer> inputStream, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) { - return DataBufferUtils.join(inputStream)....
true
Other
spring-projects
spring-framework
a912d8de1ea26cd071342f919eb0c6bad4945062.json
Add option to decode from a DataBuffer See gh-22782
spring-web/src/main/java/org/springframework/http/codec/xml/Jaxb2XmlDecoder.java
@@ -143,20 +143,27 @@ public Flux<Object> decode(Publisher<DataBuffer> inputStream, ResolvableType ele public Mono<Object> decodeToMono(Publisher<DataBuffer> input, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) { - return DataBufferUtils.join(input).map(dataBuffe...
true
Other
spring-projects
spring-framework
2aae81ef0cf415a2ae4501ac5bf16b24591e1bd6.json
Join buffers in decodeToMono for Jackson and Jaxb2 Closes gh-22783
spring-web/src/main/java/org/springframework/http/codec/json/AbstractJackson2Decoder.java
@@ -38,6 +38,7 @@ import org.springframework.core.codec.DecodingException; import org.springframework.core.codec.Hints; import org.springframework.core.io.buffer.DataBuffer; +import org.springframework.core.io.buffer.DataBufferUtils; import org.springframework.core.log.LogFormatUtils; import org.springframework.ht...
true
Other
spring-projects
spring-framework
2aae81ef0cf415a2ae4501ac5bf16b24591e1bd6.json
Join buffers in decodeToMono for Jackson and Jaxb2 Closes gh-22783
spring-web/src/main/java/org/springframework/http/codec/xml/Jaxb2XmlDecoder.java
@@ -17,6 +17,7 @@ package org.springframework.http.codec.xml; import java.util.ArrayList; +import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.function.BiConsumer; @@ -31,9 +32,12 @@ import javax.xml.bind.annotation.XmlType; import javax.xml.namespace.QName; import javax.x...
true
Other
spring-projects
spring-framework
2aae81ef0cf415a2ae4501ac5bf16b24591e1bd6.json
Join buffers in decodeToMono for Jackson and Jaxb2 Closes gh-22783
spring-web/src/main/java/org/springframework/http/codec/xml/XmlEventDecoder.java
@@ -95,7 +95,7 @@ public XmlEventDecoder() { @Override - @SuppressWarnings({"rawtypes", "unchecked", "cast"}) // on JDK 9 where XMLEventReader is Iterator<Object> instead of simply Iterator + @SuppressWarnings({"rawtypes", "unchecked", "cast"}) // XMLEventReader is Iterator<Object> on JDK 9 public Flux<XMLEve...
true
Other
spring-projects
spring-framework
bd2c213b471c1a42b17620ff97da1f2d7665dee3.json
Remove buffer release used as workaround The extra buffer release was used as a workaround for a reactor core issue and should have already been removed as part of b3bc2d9253efc4cfb5d81b487ecaa620e4b88879.
spring-core/src/main/java/org/springframework/core/io/buffer/DataBufferUtils.java
@@ -524,13 +524,9 @@ public void completed(Integer read, DataBuffer dataBuffer) { long pos = this.position.addAndGet(read); dataBuffer.writePosition(read); this.sink.next(dataBuffer); - // It's possible for cancellation to happen right before the push into the sink + // onNext may have led to onCan...
false
Other
spring-projects
spring-framework
3ebbfa2191376d9920c57b545fbd3c07167b4c1e.json
Fix refCount issue in LeakAwareDataBuffer LeakAwareDataBuffer was keeping its own refCount rather than checking through the delegate. This leads to false leak reports in a sequence where an allocated buffer is retained and then sliced since it is not aware of the changes to the refCount through the slice.
spring-core/src/test/java/org/springframework/core/io/buffer/LeakAwareDataBuffer.java
@@ -37,8 +37,6 @@ class LeakAwareDataBuffer implements PooledDataBuffer { private final LeakAwareDataBufferFactory dataBufferFactory; - private int refCount = 1; - LeakAwareDataBuffer(DataBuffer delegate, LeakAwareDataBufferFactory dataBufferFactory) { Assert.notNull(delegate, "Delegate must not be null");...
true
Other
spring-projects
spring-framework
3ebbfa2191376d9920c57b545fbd3c07167b4c1e.json
Fix refCount issue in LeakAwareDataBuffer LeakAwareDataBuffer was keeping its own refCount rather than checking through the delegate. This leads to false leak reports in a sequence where an allocated buffer is retained and then sliced since it is not aware of the changes to the refCount through the slice.
spring-core/src/test/java/org/springframework/core/io/buffer/LeakAwareDataBufferFactory.java
@@ -99,16 +99,16 @@ public void checkForLeaks() { @Override public DataBuffer allocateBuffer() { - return allocateBufferInternal(this.delegate.allocateBuffer()); + return createLeakAwareDataBuffer(this.delegate.allocateBuffer()); } @Override public DataBuffer allocateBuffer(int initialCapacity) { - ret...
true
Other
spring-projects
spring-framework
8ef609a1b74ad359ae764c4d4052365ac5483fcf.json
Add public variant getDeclaredMethods method Add a public variant of `getDeclaredMethods` that defensively copies the cached methods array. This is often more faster and more convenient for users than calling `doWithLocalMethods`. We still retain most of the benefits of the cache, namely fewer security manager calls a...
spring-core/src/main/java/org/springframework/util/ReflectionUtils.java
@@ -230,7 +230,9 @@ public static Method findMethod(Class<?> clazz, String name, @Nullable Class<?>. Assert.notNull(name, "Method name must not be null"); Class<?> searchType = clazz; while (searchType != null) { - Method[] methods = (searchType.isInterface() ? searchType.getMethods() : getDeclaredMethods(se...
true
Other
spring-projects
spring-framework
8ef609a1b74ad359ae764c4d4052365ac5483fcf.json
Add public variant getDeclaredMethods method Add a public variant of `getDeclaredMethods` that defensively copies the cached methods array. This is often more faster and more convenient for users than calling `doWithLocalMethods`. We still retain most of the benefits of the cache, namely fewer security manager calls a...
spring-core/src/test/java/org/springframework/util/ReflectionUtilsTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -360,6 +360,13 @@ void m95() { } void m96() ...
true
Other
spring-projects
spring-framework
5044ee8fe6568abc1e9134873853040e136bde57.json
Add AssertJ dependency for tests usage Add AssertJ as a test scope dependency for all sub-projects. Closes gh-22561
build.gradle
@@ -163,6 +163,7 @@ configure(allprojects) { project -> } testCompile("io.mockk:mockk:1.9.1") testCompile("org.hamcrest:hamcrest-all:1.3") + testCompile("org.assertj:assertj-core:3.11.0") testRuntime("org.apache.logging.log4j:log4j-core:${log4jVersion}") testRuntime("org.apache.logging.log4j:log4j-slf4j...
false
Other
spring-projects
spring-framework
ecbad874bfb6550eb0aa87e0d8fec506b48d25a3.json
Refine eclipse settings
src/eclipse/org.eclipse.jdt.core.prefs
@@ -11,6 +11,8 @@ org.eclipse.jdt.core.codeComplete.localPrefixes= org.eclipse.jdt.core.codeComplete.localSuffixes= org.eclipse.jdt.core.codeComplete.staticFieldPrefixes= org.eclipse.jdt.core.codeComplete.staticFieldSuffixes= +org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes= +org.eclipse.jdt.core.codeComp...
true
Other
spring-projects
spring-framework
ecbad874bfb6550eb0aa87e0d8fec506b48d25a3.json
Refine eclipse settings
src/eclipse/org.eclipse.jdt.ui.prefs
@@ -52,11 +52,15 @@ cleanup.use_this_for_non_static_method_access_only_if_necessary=true cleanup_profile=_Spring cleanup_settings_version=2 eclipse.preferences.version=1 -formatter_profile=_Spring -formatter_settings_version=12 +formatter_profile=_spring +formatter_settings_version=13 +org.eclipse.jdt.ui.exception.n...
true
Other
spring-projects
spring-framework
49388315751160b1801a5063d665b5b1381f8555.json
Register custom before default codecs Closes gh-22612
spring-web/src/main/java/org/springframework/http/codec/support/BaseCodecConfigurer.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -72,11 +72,11 @@ public CustomCodecs customC...
true
Other
spring-projects
spring-framework
49388315751160b1801a5063d665b5b1381f8555.json
Register custom before default codecs Closes gh-22612
spring-web/src/test/java/org/springframework/http/codec/support/CodecConfigurerTests.java
@@ -125,20 +125,20 @@ public void defaultAndCustomReaders() { List<HttpMessageReader<?>> readers = this.configurer.getReaders(); assertEquals(15, readers.size()); + assertSame(customDecoder1, getNextDecoder(readers)); + assertSame(customReader1, readers.get(this.index.getAndIncrement())); assertEquals(Byte...
true
Other
spring-projects
spring-framework
e9819b7535841a27586edfcbe83c5ab1adf47339.json
Raise ISE if @RequestBody is used for form data Closes gh-22486
spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/AbstractMessageReaderArgumentResolver.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -153,6 +153,11 @@ protected Mono<Object> rea...
false
Other
spring-projects
spring-framework
b67039d19ab81ebfae5af7ffe111be9d7cc735c6.json
Fix checkstyle issue
spring-webflux/src/main/java/org/springframework/web/reactive/function/server/package-info.java
@@ -1,19 +1,3 @@ -/* - * Copyright 2002-2019 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - ...
true
Other
spring-projects
spring-framework
b67039d19ab81ebfae5af7ffe111be9d7cc735c6.json
Fix checkstyle issue
spring-webmvc/src/main/java/org/springframework/web/servlet/function/DefaultEntityResponseBuilder.java
@@ -62,8 +62,9 @@ * * @author Arjen Poutsma * @since 5.2 + * @param <T> the entity type */ -class DefaultEntityResponseBuilder<T> implements EntityResponse.Builder<T> { +final class DefaultEntityResponseBuilder<T> implements EntityResponse.Builder<T> { private final T entity;
true
Other
spring-projects
spring-framework
b67039d19ab81ebfae5af7ffe111be9d7cc735c6.json
Fix checkstyle issue
spring-webmvc/src/main/java/org/springframework/web/servlet/function/DefaultServerRequest.java
@@ -220,7 +220,8 @@ public Map<String, String> pathVariables() { .getAttribute(RouterFunctions.URI_TEMPLATE_VARIABLES_ATTRIBUTE); if (pathVariables != null) { return pathVariables; - } else { + } + else { return Collections.emptyMap(); } } @@ -235,7 +236,9 @@ public Optional<Principal> principal...
true
Other
spring-projects
spring-framework
b67039d19ab81ebfae5af7ffe111be9d7cc735c6.json
Fix checkstyle issue
spring-webmvc/src/main/java/org/springframework/web/servlet/function/DefaultServerRequestBuilder.java
@@ -283,7 +283,8 @@ public Map<String, String> pathVariables() { .get(RouterFunctions.URI_TEMPLATE_VARIABLES_ATTRIBUTE); if (pathVariables != null) { return pathVariables; - } else { + } + else { return Collections.emptyMap(); } }
true
Other
spring-projects
spring-framework
b67039d19ab81ebfae5af7ffe111be9d7cc735c6.json
Fix checkstyle issue
spring-webmvc/src/main/java/org/springframework/web/servlet/function/DefaultServerResponseBuilder.java
@@ -286,8 +286,9 @@ public ModelAndView writeTo(HttpServletRequest request, HttpServletResponse resp else { return writeToInternal(request, response, context); } - } catch (Throwable t) { - return handleError(t, request, response, context); + } + catch (Throwable throwable) { + return handle...
true
Other
spring-projects
spring-framework
b67039d19ab81ebfae5af7ffe111be9d7cc735c6.json
Fix checkstyle issue
spring-webmvc/src/main/java/org/springframework/web/servlet/function/EntityResponse.java
@@ -72,6 +72,7 @@ static <T> Builder<T> fromObject(T t, ParameterizedTypeReference<T> entityType) /** * Defines a builder for {@code EntityResponse}. + * @param <T> the entity type */ interface Builder<T> {
true
Other
spring-projects
spring-framework
b67039d19ab81ebfae5af7ffe111be9d7cc735c6.json
Fix checkstyle issue
spring-webmvc/src/main/java/org/springframework/web/servlet/function/RouterFunctions.java
@@ -830,10 +830,11 @@ public Optional<HandlerFunction<T>> route(ServerRequest serverRequest) { "Nested predicate \"%s\" matches against \"%s\"", this.predicate, serverRequest)); } - Optional<HandlerFunction<T>> result = this.routerFunction.route(nestedRequest); + Optio...
true
Other
spring-projects
spring-framework
b67039d19ab81ebfae5af7ffe111be9d7cc735c6.json
Fix checkstyle issue
spring-webmvc/src/main/java/org/springframework/web/servlet/function/ServerRequest.java
@@ -223,7 +223,7 @@ default String pathVariable(String name) { // Static methods /** - * Create a new {@code ServerRequest} based on the given {@code {@link HttpServletRequest} and + * Create a new {@code ServerRequest} based on the given {@code HttpServletRequest} and * message converters. * @param servl...
true
Other
spring-projects
spring-framework
b67039d19ab81ebfae5af7ffe111be9d7cc735c6.json
Fix checkstyle issue
spring-webmvc/src/main/java/org/springframework/web/servlet/function/ServerResponse.java
@@ -71,7 +71,8 @@ public interface ServerResponse { MultiValueMap<String, Cookie> cookies(); /** - * Write this response to the servlet response (and return {@code null}, or return a + * Write this response to the servlet response (and return {@code null}, or return a model and + * view. * @param request th...
true
Other
spring-projects
spring-framework
b67039d19ab81ebfae5af7ffe111be9d7cc735c6.json
Fix checkstyle issue
spring-webmvc/src/main/java/org/springframework/web/servlet/function/support/package-info.java
@@ -1,19 +1,3 @@ -/* - * Copyright 2002-2019 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - ...
true
Other
spring-projects
spring-framework
e638fef508cda935bfbac64d966d564592e4d6de.json
Add Servlet.fn integration with DispatcherServlet This commit adds support for HandlerFunctions and RouterFunctions to DispatcherServlet, in the form of a HandlerAdapter and HandlerMapping. See gh-21490
spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupport.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -77,6 +77,8 @@ import org.springframework.w...
true
Other
spring-projects
spring-framework
e638fef508cda935bfbac64d966d564592e4d6de.json
Add Servlet.fn integration with DispatcherServlet This commit adds support for HandlerFunctions and RouterFunctions to DispatcherServlet, in the form of a HandlerAdapter and HandlerMapping. See gh-21490
spring-webmvc/src/main/java/org/springframework/web/servlet/function/support/HandlerFunctionAdapter.java
@@ -0,0 +1,108 @@ +/* + * Copyright 2002-2019 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
e638fef508cda935bfbac64d966d564592e4d6de.json
Add Servlet.fn integration with DispatcherServlet This commit adds support for HandlerFunctions and RouterFunctions to DispatcherServlet, in the form of a HandlerAdapter and HandlerMapping. See gh-21490
spring-webmvc/src/main/java/org/springframework/web/servlet/function/support/RouterFunctionMapping.java
@@ -0,0 +1,183 @@ +/* + * Copyright 2002-2019 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
e638fef508cda935bfbac64d966d564592e4d6de.json
Add Servlet.fn integration with DispatcherServlet This commit adds support for HandlerFunctions and RouterFunctions to DispatcherServlet, in the form of a HandlerAdapter and HandlerMapping. See gh-21490
spring-webmvc/src/main/java/org/springframework/web/servlet/function/support/package-info.java
@@ -0,0 +1,27 @@ +/* + * Copyright 2002-2019 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
e638fef508cda935bfbac64d966d564592e4d6de.json
Add Servlet.fn integration with DispatcherServlet This commit adds support for HandlerFunctions and RouterFunctions to DispatcherServlet, in the form of a HandlerAdapter and HandlerMapping. See gh-21490
spring-webmvc/src/main/resources/org/springframework/web/servlet/DispatcherServlet.properties
@@ -7,11 +7,14 @@ org.springframework.web.servlet.LocaleResolver=org.springframework.web.servlet.i org.springframework.web.servlet.ThemeResolver=org.springframework.web.servlet.theme.FixedThemeResolver org.springframework.web.servlet.HandlerMapping=org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping,\...
true
Other
spring-projects
spring-framework
85082fc10c42debcd0a18bf8749853ce4d50ea83.json
Add Tests for Servlet.fn This commit adds tests for Servlet.fn, the servlet-based version of HandlerFunctions and RouterFunctions. See gh-21490
spring-webmvc/src/test/java/org/springframework/web/servlet/function/DefaultEntityResponseBuilderTests.java
@@ -0,0 +1,208 @@ +/* + * Copyright 2002-2019 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
85082fc10c42debcd0a18bf8749853ce4d50ea83.json
Add Tests for Servlet.fn This commit adds tests for Servlet.fn, the servlet-based version of HandlerFunctions and RouterFunctions. See gh-21490
spring-webmvc/src/test/java/org/springframework/web/servlet/function/DefaultRenderingResponseTests.java
@@ -0,0 +1,190 @@ +/* + * Copyright 2002-2019 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
85082fc10c42debcd0a18bf8749853ce4d50ea83.json
Add Tests for Servlet.fn This commit adds tests for Servlet.fn, the servlet-based version of HandlerFunctions and RouterFunctions. See gh-21490
spring-webmvc/src/test/java/org/springframework/web/servlet/function/DefaultServerRequestBuilderTests.java
@@ -0,0 +1,76 @@ +/* + * Copyright 2002-2019 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
85082fc10c42debcd0a18bf8749853ce4d50ea83.json
Add Tests for Servlet.fn This commit adds tests for Servlet.fn, the servlet-based version of HandlerFunctions and RouterFunctions. See gh-21490
spring-webmvc/src/test/java/org/springframework/web/servlet/function/DefaultServerRequestTests.java
@@ -0,0 +1,296 @@ +/* + * Copyright 2002-2019 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
85082fc10c42debcd0a18bf8749853ce4d50ea83.json
Add Tests for Servlet.fn This commit adds tests for Servlet.fn, the servlet-based version of HandlerFunctions and RouterFunctions. See gh-21490
spring-webmvc/src/test/java/org/springframework/web/servlet/function/DefaultServerResponseBuilderTests.java
@@ -0,0 +1,327 @@ +/* + * Copyright 2002-2019 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
85082fc10c42debcd0a18bf8749853ce4d50ea83.json
Add Tests for Servlet.fn This commit adds tests for Servlet.fn, the servlet-based version of HandlerFunctions and RouterFunctions. See gh-21490
spring-webmvc/src/test/java/org/springframework/web/servlet/function/PathResourceLookupFunctionTests.java
@@ -0,0 +1,120 @@ +/* + * Copyright 2002-2019 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
85082fc10c42debcd0a18bf8749853ce4d50ea83.json
Add Tests for Servlet.fn This commit adds tests for Servlet.fn, the servlet-based version of HandlerFunctions and RouterFunctions. See gh-21490
spring-webmvc/src/test/java/org/springframework/web/servlet/function/RequestPredicateTests.java
@@ -0,0 +1,76 @@ +/* + * Copyright 2002-2019 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
85082fc10c42debcd0a18bf8749853ce4d50ea83.json
Add Tests for Servlet.fn This commit adds tests for Servlet.fn, the servlet-based version of HandlerFunctions and RouterFunctions. See gh-21490
spring-webmvc/src/test/java/org/springframework/web/servlet/function/RequestPredicatesTests.java
@@ -0,0 +1,230 @@ +/* + * Copyright 2002-2019 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
85082fc10c42debcd0a18bf8749853ce4d50ea83.json
Add Tests for Servlet.fn This commit adds tests for Servlet.fn, the servlet-based version of HandlerFunctions and RouterFunctions. See gh-21490
spring-webmvc/src/test/java/org/springframework/web/servlet/function/ResourceHandlerFunctionTests.java
@@ -0,0 +1,136 @@ +/* + * Copyright 2002-2019 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
85082fc10c42debcd0a18bf8749853ce4d50ea83.json
Add Tests for Servlet.fn This commit adds tests for Servlet.fn, the servlet-based version of HandlerFunctions and RouterFunctions. See gh-21490
spring-webmvc/src/test/java/org/springframework/web/servlet/function/RouterFunctionBuilderTests.java
@@ -0,0 +1,188 @@ +/* + * Copyright 2002-2019 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
85082fc10c42debcd0a18bf8749853ce4d50ea83.json
Add Tests for Servlet.fn This commit adds tests for Servlet.fn, the servlet-based version of HandlerFunctions and RouterFunctions. See gh-21490
spring-webmvc/src/test/java/org/springframework/web/servlet/function/RouterFunctionTests.java
@@ -0,0 +1,125 @@ +/* + * Copyright 2002-2019 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
85082fc10c42debcd0a18bf8749853ce4d50ea83.json
Add Tests for Servlet.fn This commit adds tests for Servlet.fn, the servlet-based version of HandlerFunctions and RouterFunctions. See gh-21490
spring-webmvc/src/test/java/org/springframework/web/servlet/function/RouterFunctionsTests.java
@@ -0,0 +1,104 @@ +/* + * Copyright 2002-2019 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
85082fc10c42debcd0a18bf8749853ce4d50ea83.json
Add Tests for Servlet.fn This commit adds tests for Servlet.fn, the servlet-based version of HandlerFunctions and RouterFunctions. See gh-21490
spring-webmvc/src/test/java/org/springframework/web/servlet/function/ToStringVisitorTests.java
@@ -0,0 +1,113 @@ +/* + * Copyright 2002-2019 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
85082fc10c42debcd0a18bf8749853ce4d50ea83.json
Add Tests for Servlet.fn This commit adds tests for Servlet.fn, the servlet-based version of HandlerFunctions and RouterFunctions. See gh-21490
spring-webmvc/src/test/resources/org/springframework/web/servlet/function/child/response.txt
@@ -0,0 +1,2 @@ +Hello World +This is a sample response text file.
true
Other
spring-projects
spring-framework
85082fc10c42debcd0a18bf8749853ce4d50ea83.json
Add Tests for Servlet.fn This commit adds tests for Servlet.fn, the servlet-based version of HandlerFunctions and RouterFunctions. See gh-21490
spring-webmvc/src/test/resources/org/springframework/web/servlet/function/response.txt
@@ -0,0 +1,2 @@ +Hello World +This is a sample response text file.
true
Other
spring-projects
spring-framework
c7401dbe1f31fe0310d0edae3f7f9672b34b850a.json
Fix @since typo
spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/InterceptorRegistration.java
@@ -102,7 +102,7 @@ public InterceptorRegistration pathMatcher(PathMatcher pathMatcher) { /** * Specify an order position to be used. Default is 0. - * @since 4.23 + * @since 4.3.23 */ public InterceptorRegistration order(int order){ this.order = order;
false
Other
spring-projects
spring-framework
ef11aa45837ad7f5f147b9bb0cc0d9fcbc8aa660.json
Update documentation for WebJar support Prior to this commit, documentation for WebJar support referenced the webjars-locator artifact; however, Spring now uses the webjars-locator-core artifact. This commit updates the documentation to reflect this. Closes gh-22613
spring-webflux/src/main/java/org/springframework/web/reactive/resource/WebJarsResourceResolver.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -36,8 +36,8 @@ * * <p>This also resolves...
true
Other
spring-projects
spring-framework
ef11aa45837ad7f5f147b9bb0cc0d9fcbc8aa660.json
Update documentation for WebJar support Prior to this commit, documentation for WebJar support referenced the webjars-locator artifact; however, Spring now uses the webjars-locator-core artifact. This commit updates the documentation to reflect this. Closes gh-22613
spring-webmvc/src/main/java/org/springframework/web/servlet/resource/WebJarsResourceResolver.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -35,8 +35,8 @@ * * <p>This also resolves...
true
Other
spring-projects
spring-framework
ef11aa45837ad7f5f147b9bb0cc0d9fcbc8aa660.json
Update documentation for WebJar support Prior to this commit, documentation for WebJar support referenced the webjars-locator artifact; however, Spring now uses the webjars-locator-core artifact. This commit updates the documentation to reflect this. Closes gh-22613
src/docs/asciidoc/web/webflux.adoc
@@ -3355,11 +3355,12 @@ Note that, when using both `EncodedResourceResolver` (for example, Gzip, Brotli `VersionedResourceResolver`, they must be registered in that order, to ensure content-based versions are always computed reliably based on the unencoded file. -http://www.webjars.org/documentation[WebJars] is als...
true
Other
spring-projects
spring-framework
ef11aa45837ad7f5f147b9bb0cc0d9fcbc8aa660.json
Update documentation for WebJar support Prior to this commit, documentation for WebJar support referenced the webjars-locator artifact; however, Spring now uses the webjars-locator-core artifact. This commit updates the documentation to reflect this. Closes gh-22613
src/docs/asciidoc/web/webmvc.adoc
@@ -4757,10 +4757,11 @@ Note that, when using both `EncodedResourceResolver` (for example, for serving g brotli-encoded resources) and `VersionedResourceResolver`, you must register them in this order. That ensures content-based versions are always computed reliably, based on the unencoded file. -http://www.webjars...
true
Other
spring-projects
spring-framework
495ba2f58cdd195c4c0d16be5b43c22a8a193d81.json
Remove static import from InvocableHandlerMethod See gh-19975
spring-webflux/src/main/java/org/springframework/web/reactive/result/method/InvocableHandlerMethod.java
@@ -42,8 +42,6 @@ import org.springframework.web.reactive.HandlerResult; import org.springframework.web.server.ServerWebExchange; -import static org.springframework.web.reactive.result.method.InvocableHandlerMethodKt.invokeHandlerMethod; - /** * Extension of {@link HandlerMethod} that invokes the underlying meth...
false
Other
spring-projects
spring-framework
862fa557bde6698252c3fbb6f295dbf12461a630.json
Avoid java.util.stream.Stream usage in hot paths Prior to this commit, profiling sessions would show that using `java.util.stream.Stream` in some hot code paths creates significant garbage. Where streams aren't really required, this commit turns those snippets into imperative logic because those are likely to be cal...
spring-core/src/main/java/org/springframework/core/ReactiveAdapterRegistry.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -141,15 +141,17 @@ public ReactiveAdapter ge...
true
Other
spring-projects
spring-framework
862fa557bde6698252c3fbb6f295dbf12461a630.json
Avoid java.util.stream.Stream usage in hot paths Prior to this commit, profiling sessions would show that using `java.util.stream.Stream` in some hot code paths creates significant garbage. Where streams aren't really required, this commit turns those snippets into imperative logic because those are likely to be cal...
spring-core/src/main/java/org/springframework/core/codec/AbstractEncoder.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,7 +74,12 @@ public boolean canEncode(Res...
true
Other
spring-projects
spring-framework
862fa557bde6698252c3fbb6f295dbf12461a630.json
Avoid java.util.stream.Stream usage in hot paths Prior to this commit, profiling sessions would show that using `java.util.stream.Stream` in some hot code paths creates significant garbage. Where streams aren't really required, this commit turns those snippets into imperative logic because those are likely to be cal...
spring-core/src/main/java/org/springframework/core/log/CompositeLog.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -63,7 +63,12 @@ public CompositeLog(List<Log...
true
Other
spring-projects
spring-framework
862fa557bde6698252c3fbb6f295dbf12461a630.json
Avoid java.util.stream.Stream usage in hot paths Prior to this commit, profiling sessions would show that using `java.util.stream.Stream` in some hot code paths creates significant garbage. Where streams aren't really required, this commit turns those snippets into imperative logic because those are likely to be cal...
spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/AbstractMessageWriterResultHandler.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,8 +16,8 @@ package org.springframewor...
true
Other
spring-projects
spring-framework
af13580fd52be266df4e10b058c134bf05373d9f.json
Remove unnecessary array initialization
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/MvcUriComponentsBuilder.java
@@ -852,9 +852,6 @@ public MethodArgumentBuilder(@Nullable UriComponentsBuilder baseUrl, Class<?> co this.controllerType = controllerType; this.method = method; this.argumentValues = new Object[method.getParameterCount()]; - for (int i = 0; i < this.argumentValues.length; i++) { - this.argumentValues[i...
false
Other
spring-projects
spring-framework
d3b5ba7a361866ea96fcc64d3f76be9b5be3b8e4.json
Add test case for HttpRequest with relative URIs Test case for #19890
spring-web/src/test/java/org/springframework/web/util/UriComponentsBuilderTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,6 +25,7 @@ import org.junit.Test; +...
false
Other
spring-projects
spring-framework
4560dc2818ae1d5e1bc5ceef89f1b6870700eb1f.json
Improve empty body check Fixes gh-22265
spring-web/src/main/java/org/springframework/web/client/MessageBodyClientHttpResponseWrapper.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2017 the original author or authors. + * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,8 +79,13 @@ public boolean hasMessageBod...
true
Other
spring-projects
spring-framework
4560dc2818ae1d5e1bc5ceef89f1b6870700eb1f.json
Improve empty body check Fixes gh-22265
spring-web/src/test/java/org/springframework/http/codec/json/Jackson2JsonDecoderTests.java
@@ -175,7 +175,7 @@ public void invalidData() { .verifyError(DecodingException.class)); } - @Test // #22042 + @Test // gh-22042 public void decodeWithNullLiteral() { Flux<Object> result = this.decoder.decode(Flux.concat(stringBuffer("null")), ResolvableType.forType(Pojo.class), MediaType.APPLICATION_...
true
Other
spring-projects
spring-framework
4560dc2818ae1d5e1bc5ceef89f1b6870700eb1f.json
Improve empty body check Fixes gh-22265
spring-web/src/test/java/org/springframework/web/client/HttpMessageConverterExtractorTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2017 the original author or authors. + * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -113,6 +113,20 @@ public void emptyMessageBo...
true
Other
spring-projects
spring-framework
810b615471416a9649cd4a32a103442e864666ed.json
Correct issus in Spring MVC section Fixes #22282
src/docs/asciidoc/web/webmvc.adoc
@@ -1359,7 +1359,7 @@ The following example has type and method level mappings: ==== URI patterns [.small]#<<web-reactive.adoc#webflux-ann-requestmapping-uri-templates,Same as in Spring WebFlux>># -You can map requests by using the following glob patterns and wildcards: +You can map requests by using the following ...
false
Other
spring-projects
spring-framework
fc6cff53bb0da6a29ecbce1042ec2e03dba1c5b3.json
Clarify documentation about JSON Views This commit intends to clarify the documentation by avoiding confusion between @JsonView and Spring MVC JSON views. Fixes #22280
src/docs/asciidoc/web/webflux.adoc
@@ -2456,7 +2456,7 @@ for the body. Spring offers support for the Jackson JSON library. [[webflux-ann-jsonview]] -===== Jackson Serialization Views +===== JSON Views [.small]#<<web.adoc#mvc-ann-jackson,Same as in Spring MVC>># Spring WebFlux provides built-in support for
true
Other
spring-projects
spring-framework
fc6cff53bb0da6a29ecbce1042ec2e03dba1c5b3.json
Clarify documentation about JSON Views This commit intends to clarify the documentation by avoiding confusion between @JsonView and Spring MVC JSON views. Fixes #22280
src/docs/asciidoc/web/webmvc-view.adoc
@@ -2020,7 +2020,7 @@ Spring offers support for the Jackson JSON library. [[mvc-view-json-mapping]] -=== Jackson-based JSON Views +=== Jackson-based JSON MVC Views [.small]#<<web-reactive.adoc#webflux-view-httpmessagewriter,Same as in Spring WebFlux>># The `MappingJackson2JsonView` uses the Jackson library's `...
true
Other
spring-projects
spring-framework
fc6cff53bb0da6a29ecbce1042ec2e03dba1c5b3.json
Clarify documentation about JSON Views This commit intends to clarify the documentation by avoiding confusion between @JsonView and Spring MVC JSON views. Fixes #22280
src/docs/asciidoc/web/webmvc.adoc
@@ -2784,7 +2784,7 @@ types for the body. Spring offers support for the Jackson JSON library. [[mvc-ann-jsonview]] -===== Jackson Serialization Views +===== JSON Views [.small]#<<web-reactive.adoc#webflux-ann-jsonview,Same as in Spring WebFlux>># Spring MVC provides built-in support for
true
Other
spring-projects
spring-framework
020c537c03b9f9dd1ca6cc2e6c2da9fb5da860c9.json
Add note to CorsFilter section Fixes #19841
src/docs/asciidoc/web/webflux-cors.adoc
@@ -233,6 +233,11 @@ You can apply CORS support through the built-in {api-spring-framework}/web/cors/reactive/CorsWebFilter.html[`CorsWebFilter`], which is a good fit with <<webflux-fn,functional endpoints>>. +NOTE: If you try to use the `CorsFilter` with Spring Security, keep in mind that Spring +Security has +htt...
false
Other
spring-projects
spring-framework
5dcde9e7d7876f2100a54893fb158fcf61be159f.json
Trim decoded SSE data Fixes #22043
spring-web/src/main/java/org/springframework/http/codec/ServerSentEventHttpMessageReader.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -119,21 +119,21 @@ private Mono<?> buildEven...
false
Other
spring-projects
spring-framework
ef72ef54fac1a0cde43e9ca2023f8ea1ea64d769.json
Avoid NPE when setting warnLogCategory Fixes #22159
spring-webmvc/src/main/java/org/springframework/web/servlet/handler/AbstractHandlerExceptionResolver.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,6 +25,7 @@ import org.springframework...
false
Other
spring-projects
spring-framework
f9ba069b9de19bd5bca3466fdfba8eb5ec5d024c.json
Add "Affects" field to issue template
.github/ISSUE_TEMPLATE.md
@@ -1,6 +1,10 @@ <!-- !!! For Security Vulnerabilities, please go to https://pivotal.io/security !!! +--> +**Affects:** \<Spring Framework version> +--- +<!-- Thanks for taking the time to create an issue. Please read the following: - Questions should be asked on Stack Overflow.
false
Other
spring-projects
spring-framework
9837ec59047b08f0813524208b90fc4fc6e1a1ad.json
Fix Javadoc typos Closes #22261
spring-websocket/src/main/java/org/springframework/web/socket/config/annotation/EnableWebSocket.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -49,7 +49,7 @@ * registry.addHandl...
true
Other
spring-projects
spring-framework
9837ec59047b08f0813524208b90fc4fc6e1a1ad.json
Fix Javadoc typos Closes #22261
spring-websocket/src/main/java/org/springframework/web/socket/config/annotation/EnableWebSocketMessageBroker.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -49,7 +49,7 @@ * registry.addEndpo...
true
Other
spring-projects
spring-framework
bdac937a43ebab5dcf992acd287bc770920d115c.json
Replace more references to issue tracker Fixes #22254
CONTRIBUTING.md
@@ -66,7 +66,7 @@ automatically when you submit a pull request. 1. For all but the most trivial of contributions, please [create a ticket](#create-a-ticket). The purpose of the ticket is to understand and discuss the underlying issue or feature. -We use the Github issue tracker as the preferred place of record for ...
true
Other
spring-projects
spring-framework
bdac937a43ebab5dcf992acd287bc770920d115c.json
Replace more references to issue tracker Fixes #22254
build.gradle
@@ -19,7 +19,7 @@ plugins { ext { linkHomepage = "https://projects.spring.io/spring-framework" linkCi = "https://build.spring.io/browse/SPR" - linkIssue = "https://jira.spring.io/browse/SPR" + linkIssue = "https://github.com/spring-projects/spring-framework/issues" linkScmUrl = "https://github.com/spring-project...
true
Other
spring-projects
spring-framework
bdac937a43ebab5dcf992acd287bc770920d115c.json
Replace more references to issue tracker Fixes #22254
gradle/publish-maven.gradle
@@ -52,7 +52,7 @@ def customizePom(pom, gradleProject) { } } issueManagement { - system = "Github" + system = "GitHub" url = "https://github.com/spring-projects/spring-framework/issues" } }
true
Other
spring-projects
spring-framework
bdac937a43ebab5dcf992acd287bc770920d115c.json
Replace more references to issue tracker Fixes #22254
spring-context/src/test/java/org/springframework/context/annotation/configuration/PackagePrivateBeanMethodInheritanceTests.java
@@ -27,7 +27,7 @@ /** * Reproduces SPR-8756, which has been marked as "won't fix" for reasons - * described in the JIRA issue. Also demonstrates the suggested workaround. + * described in the issue. Also demonstrates the suggested workaround. * * @author Chris Beams */
true
Other
spring-projects
spring-framework
bdac937a43ebab5dcf992acd287bc770920d115c.json
Replace more references to issue tracker Fixes #22254
spring-expression/readme.txt
@@ -1,4 +1,4 @@ -List of outstanding things to think about - turn into JIRAs once distilled to a core set of issues +List of outstanding things to think about - turn into tickets once distilled to a core set of issues High Importance
true
Other
spring-projects
spring-framework
bdac937a43ebab5dcf992acd287bc770920d115c.json
Replace more references to issue tracker Fixes #22254
spring-expression/src/test/java/org/springframework/expression/spel/SpelReproTests.java
@@ -66,7 +66,7 @@ import static org.junit.Assert.*; /** - * Reproduction tests cornering various SpEL JIRA issues. + * Reproduction tests cornering various reported SpEL issues. * * @author Andy Clement * @author Juergen Hoeller
true
Other
spring-projects
spring-framework
bdac937a43ebab5dcf992acd287bc770920d115c.json
Replace more references to issue tracker Fixes #22254
src/docs/asciidoc/core/core-validation.adoc
@@ -1190,8 +1190,8 @@ The following `DateFormatter` is an example `Formatter` implementation: ---- ==== -The Spring team welcomes community-driven `Formatter` contributionsSee -https://jira.spring.io/browse/SPR[jira.spring.io] to contribute. +The Spring team welcomes community-driven `Formatter` contributions. See ...
true
Other
spring-projects
spring-framework
bdac937a43ebab5dcf992acd287bc770920d115c.json
Replace more references to issue tracker Fixes #22254
src/docs/asciidoc/data-access.adoc
@@ -4983,7 +4983,7 @@ You can extend Spring JDBC embedded database support in two ways: connection pool to manage embedded database connections. We encourage you to contribute extensions to the Spring community at -https://jira.spring.io/browse/SPR[jira.spring.io]. +https://github.com/spring-projects/spring-frame...
true
Other
spring-projects
spring-framework
bdac937a43ebab5dcf992acd287bc770920d115c.json
Replace more references to issue tracker Fixes #22254
src/docs/asciidoc/overview.adoc
@@ -125,7 +125,7 @@ clean code structure with no circular dependencies between packages. For how-to questions or diagnosing or debugging issues, we suggest using StackOverflow, and we have a https://spring.io/questions[questions page] that lists the suggested tags to use. If you're fairly certain that there is a pr...
true
Other
spring-projects
spring-framework
bdac937a43ebab5dcf992acd287bc770920d115c.json
Replace more references to issue tracker Fixes #22254
src/docs/dist/readme.txt
@@ -1,8 +1,8 @@ Spring Framework version ${version} ===================================================================================== -To find out what has changed since earlier releases, see the 'Change Log' section at -https://jira.spring.io/browse/SPR +To find out what has changed since earlier releases, see...
true
Other
spring-projects
spring-framework
6ca3884759a4245369f9e98d8ee9b08527105dd4.json
Update links to issue tracker
CONTRIBUTING.md
@@ -29,7 +29,7 @@ If you have a question, check StackOverflow using Find an existing discussion or start a new one if necessary. If you suspect an issue, perform a search in the -[JIRA issue tracker](https://jira.spring.io/browse/SPR), using a few different keywords. +[Github issue tracker](https://github.com/sprin...
true
Other
spring-projects
spring-framework
6ca3884759a4245369f9e98d8ee9b08527105dd4.json
Update links to issue tracker
gradle/publish-maven.gradle
@@ -52,8 +52,8 @@ def customizePom(pom, gradleProject) { } } issueManagement { - system = "Jira" - url = "https://jira.springsource.org/browse/SPR" + system = "Github" + url = "https://github.com/spring-projects/spring-framework/issues" } } }
true
Other
spring-projects
spring-framework
189e1afc6ee6bd40b769eb6801608e21ee77b332.json
Use try-with-resources in documentation samples Fixes #22269
src/docs/asciidoc/data-access.adoc
@@ -6132,17 +6132,11 @@ that uses the `@PersistenceUnit` annotation: } public Collection loadProductsByCategory(String category) { - EntityManager em = this.emf.createEntityManager(); - try { + try (EntityManager em = this.emf.createEntityManager()) { Query query = em.createQuery("from Product as p w...
false
Other
spring-projects
spring-framework
ff1f3687518c92aea35df041167ea443dd77d136.json
Improve Kotlin documentation
src/docs/asciidoc/languages/kotlin.adoc
@@ -333,54 +333,6 @@ when you need to register routes depending on dynamic data (for example, from a See https://github.com/mixitconf/mixit/[MiXiT project] for a concrete example. - -=== Coroutines - -As of Spring Framework 5.2, https://kotlinlang.org/docs/reference/coroutines-overview.html[Coroutines] support -is...
false
Other
spring-projects
spring-framework
cd0b517abfa7c4053297159ccf3fc9b29a7046c9.json
Improve Kotlin documentation
gradle/docs.gradle
@@ -77,6 +77,9 @@ dokka { externalDocumentationLink { url = new URL("https://www.reactive-streams.org/reactive-streams-1.0.1-javadoc/") } + externalDocumentationLink { + url = new URL("https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/") + } } configurations {
true