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
13b6f4fee47c89f9602710ab1298722fe87504b3.json
Add SseEventEncoder to WebReactiveConfiguration
spring-web-reactive/src/test/java/org/springframework/web/reactive/config/WebReactiveConfigurationTests.java
@@ -24,6 +24,7 @@ import org.junit.Before; import org.junit.Test; +import static org.springframework.http.MediaType.*; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; import rx.Observable; @@ -139,13 +140,14 @@ public void requestMappingHandlerAdapter() throws Exception { assertNotNull...
true
Other
spring-projects
spring-framework
3fe87ee22551ea8f0176de84b5cd9cae488aa9db.json
Change SseEvent#mimeType to SseEvent#mediaType
spring-web-reactive/src/main/java/org/springframework/http/codec/SseEventEncoder.java
@@ -31,6 +31,7 @@ import org.springframework.core.io.buffer.DataBuffer; import org.springframework.core.io.buffer.DataBufferFactory; import org.springframework.core.io.buffer.FlushingDataBuffer; +import org.springframework.http.MediaType; import org.springframework.util.Assert; import org.springframework.util.Mime...
true
Other
spring-projects
spring-framework
3fe87ee22551ea8f0176de84b5cd9cae488aa9db.json
Change SseEvent#mimeType to SseEvent#mediaType
spring-web-reactive/src/main/java/org/springframework/web/reactive/sse/SseEvent.java
@@ -16,8 +16,8 @@ package org.springframework.web.reactive.sse; +import org.springframework.http.MediaType; import org.springframework.http.codec.SseEventEncoder; -import org.springframework.util.MimeType; /** * Represent a Server-Sent Event. @@ -27,7 +27,7 @@ * * @author Sebastien Deleuze * @see SseEv...
true
Other
spring-projects
spring-framework
6b3d5f1bc57a2285abce83121f516250422e03b6.json
Turn FlushingDataBuffer to an empty DataBuffer
spring-web-reactive/src/main/java/org/springframework/core/io/buffer/FlushingDataBuffer.java
@@ -21,26 +21,25 @@ import java.nio.ByteBuffer; import java.util.function.IntPredicate; -import org.springframework.util.Assert; - /** - * {@link DataBuffer} wrapper that indicates the file or the socket writing this buffer - * should be flushed. + * Empty {@link DataBuffer} that indicates to the file or the socke...
true
Other
spring-projects
spring-framework
6b3d5f1bc57a2285abce83121f516250422e03b6.json
Turn FlushingDataBuffer to an empty DataBuffer
spring-web-reactive/src/main/java/org/springframework/http/codec/SseEventEncoder.java
@@ -115,7 +115,8 @@ public Flux<DataBuffer> encode(Publisher<?> inputStream, DataBufferFactory buffe return Flux.concat( encodeString(sb.toString(), bufferFactory), dataBuffer, - encodeString("\n", bufferFactory).map(b -> new FlushingDataBuffer(b)) + encodeString("\n", bufferFactory), + Mono...
true
Other
spring-projects
spring-framework
6b3d5f1bc57a2285abce83121f516250422e03b6.json
Turn FlushingDataBuffer to an empty DataBuffer
spring-web-reactive/src/test/java/org/springframework/core/codec/support/SseEventEncoderTests.java
@@ -18,6 +18,7 @@ import java.util.Arrays; +import static org.junit.Assert.*; import org.junit.Test; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -26,14 +27,11 @@ import org.springframework.core.ResolvableType; import org.springframework.core.io.buffer.AbstractDataBufferAllocatin...
true
Other
spring-projects
spring-framework
6b3d5f1bc57a2285abce83121f516250422e03b6.json
Turn FlushingDataBuffer to an empty DataBuffer
spring-web-reactive/src/test/java/org/springframework/http/server/reactive/FlushingIntegrationTests.java
@@ -70,14 +70,15 @@ private static class FlushingHandler implements HttpHandler { public Mono<Void> handle(ServerHttpRequest request, ServerHttpResponse response) { Flux<DataBuffer> responseBody = Flux .interval(50) - .take(2) - .concatWith(Flux.never()) .map(l -> { byte[] data = ("dat...
true
Other
spring-projects
spring-framework
aeb35787d7214f5f9d0636cce19105dec2a53193.json
Add flushing support This commit add flushing support thanks to the FlushingDataBuffer wrapper that allows to identify the elements that should trigger a flush.
spring-web-reactive/src/main/java/org/springframework/core/io/buffer/FlushingDataBuffer.java
@@ -0,0 +1,120 @@ +/* + * 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
aeb35787d7214f5f9d0636cce19105dec2a53193.json
Add flushing support This commit add flushing support thanks to the FlushingDataBuffer wrapper that allows to identify the elements that should trigger a flush.
spring-web-reactive/src/main/java/org/springframework/http/ReactiveHttpOutputMessage.java
@@ -23,6 +23,7 @@ import org.springframework.core.io.buffer.DataBuffer; import org.springframework.core.io.buffer.DataBufferFactory; +import org.springframework.core.io.buffer.FlushingDataBuffer; /** * A "reactive" HTTP output message that accepts output as a {@link Publisher}. @@ -47,6 +48,8 @@ public interfa...
true
Other
spring-projects
spring-framework
aeb35787d7214f5f9d0636cce19105dec2a53193.json
Add flushing support This commit add flushing support thanks to the FlushingDataBuffer wrapper that allows to identify the elements that should trigger a flush.
spring-web-reactive/src/main/java/org/springframework/http/server/reactive/ReactorServerHttpResponse.java
@@ -30,6 +30,7 @@ import org.springframework.core.io.buffer.DataBuffer; import org.springframework.core.io.buffer.DataBufferFactory; +import org.springframework.core.io.buffer.FlushingDataBuffer; import org.springframework.core.io.buffer.NettyDataBuffer; import org.springframework.http.HttpStatus; import org.spr...
true
Other
spring-projects
spring-framework
aeb35787d7214f5f9d0636cce19105dec2a53193.json
Add flushing support This commit add flushing support thanks to the FlushingDataBuffer wrapper that allows to identify the elements that should trigger a flush.
spring-web-reactive/src/main/java/org/springframework/http/server/reactive/RxNettyServerHttpResponse.java
@@ -17,6 +17,7 @@ package org.springframework.http.server.reactive; import io.netty.buffer.ByteBuf; +import io.netty.buffer.CompositeByteBuf; import io.netty.buffer.Unpooled; import io.netty.handler.codec.http.HttpResponseStatus; import io.netty.handler.codec.http.cookie.Cookie; @@ -28,6 +29,7 @@ import rx.Obse...
true
Other
spring-projects
spring-framework
aeb35787d7214f5f9d0636cce19105dec2a53193.json
Add flushing support This commit add flushing support thanks to the FlushingDataBuffer wrapper that allows to identify the elements that should trigger a flush.
spring-web-reactive/src/main/java/org/springframework/http/server/reactive/ServletHttpHandlerAdapter.java
@@ -39,6 +39,7 @@ import org.springframework.core.io.buffer.DataBuffer; import org.springframework.core.io.buffer.DataBufferFactory; import org.springframework.core.io.buffer.DefaultDataBufferFactory; +import org.springframework.core.io.buffer.FlushingDataBuffer; import org.springframework.core.io.buffer.support.Da...
true
Other
spring-projects
spring-framework
aeb35787d7214f5f9d0636cce19105dec2a53193.json
Add flushing support This commit add flushing support thanks to the FlushingDataBuffer wrapper that allows to identify the elements that should trigger a flush.
spring-web-reactive/src/main/java/org/springframework/http/server/reactive/UndertowHttpHandlerAdapter.java
@@ -35,6 +35,8 @@ import org.springframework.core.io.buffer.DataBuffer; import org.springframework.core.io.buffer.DataBufferFactory; +import org.springframework.core.io.buffer.FlushingDataBuffer; +import org.springframework.core.io.buffer.support.DataBufferUtils; import org.springframework.util.Assert; /** @@ -...
true
Other
spring-projects
spring-framework
aeb35787d7214f5f9d0636cce19105dec2a53193.json
Add flushing support This commit add flushing support thanks to the FlushingDataBuffer wrapper that allows to identify the elements that should trigger a flush.
spring-web-reactive/src/test/java/org/springframework/http/server/reactive/FlushingIntegrationTests.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
9aa6f5caacac316c74e374550a387f222e7e1921.json
Add support for ResponseEntity result handling
spring-web-reactive/src/main/java/org/springframework/web/reactive/config/WebReactiveConfiguration.java
@@ -60,6 +60,7 @@ import org.springframework.web.reactive.result.method.annotation.RequestMappingHandlerAdapter; import org.springframework.web.reactive.result.method.annotation.RequestMappingHandlerMapping; import org.springframework.web.reactive.result.method.annotation.ResponseBodyResultHandler; +import org.sprin...
true
Other
spring-projects
spring-framework
9aa6f5caacac316c74e374550a387f222e7e1921.json
Add support for ResponseEntity result handling
spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/AbstractMessageConverterResultHandler.java
@@ -0,0 +1,116 @@ +/* + * 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
9aa6f5caacac316c74e374550a387f222e7e1921.json
Add support for ResponseEntity result handling
spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/ResponseBodyResultHandler.java
@@ -17,29 +17,20 @@ package org.springframework.web.reactive.result.method.annotation; import java.util.List; -import java.util.Optional; -import java.util.stream.Collectors; -import org.reactivestreams.Publisher; import reactor.core.publisher.Mono; import org.springframework.core.MethodParameter; -import org...
true
Other
spring-projects
spring-framework
9aa6f5caacac316c74e374550a387f222e7e1921.json
Add support for ResponseEntity result handling
spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/ResponseEntityResultHandler.java
@@ -0,0 +1,118 @@ +/* + * 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
9aa6f5caacac316c74e374550a387f222e7e1921.json
Add support for ResponseEntity result handling
spring-web-reactive/src/test/java/org/springframework/web/reactive/config/WebReactiveConfigurationTests.java
@@ -55,6 +55,7 @@ import org.springframework.web.reactive.result.method.annotation.RequestMappingHandlerAdapter; import org.springframework.web.reactive.result.method.annotation.RequestMappingHandlerMapping; import org.springframework.web.reactive.result.method.annotation.ResponseBodyResultHandler; +import org.sprin...
true
Other
spring-projects
spring-framework
9aa6f5caacac316c74e374550a387f222e7e1921.json
Add support for ResponseEntity result handling
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestMappingIntegrationTests.java
@@ -172,6 +172,12 @@ public void serializeAsCompletableFuture() throws Exception { serializeAsPojo("http://localhost:" + port + "/completable-future"); } + @Test + @Ignore // Issue #119 + public void serializeAsMonoResponseEntity() throws Exception { + serializeAsPojo("http://localhost:" + port + "/monoResponse...
true
Other
spring-projects
spring-framework
9aa6f5caacac316c74e374550a387f222e7e1921.json
Add support for ResponseEntity result handling
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/ResponseBodyResultHandlerTests.java
@@ -56,6 +56,7 @@ import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static org.mockito.Mockito.mock; +import static org.springframework.http.MediaType.APPLICATION_JSON_UTF8; /** @@ -87,20 +88,19 @@ public void supports() throws NoSuchMethodException { @Test public...
true
Other
spring-projects
spring-framework
9aa6f5caacac316c74e374550a387f222e7e1921.json
Add support for ResponseEntity result handling
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/ResponseEntityResultHandlerTests.java
@@ -0,0 +1,150 @@ +/* + * 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
a0e223177927608e67d8b3e20436ecd6e68e7ec5.json
Use specified ResolvableType in JacksonJsonEncoder This commit also fixes an issue in the HTTP client that used the wrapper type instead of the element type. As a consequence, due to type erasure, we now have to specify the type of the content in DefaultHttpRequestBuilder#contentStream().
spring-web-reactive/src/main/java/org/springframework/core/codec/support/JacksonJsonEncoder.java
@@ -21,7 +21,10 @@ import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; +import com.fasterxml.jackson.databind.JavaType; import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.ObjectWriter; +import com.fasterxml.jackson.databind.type.TypeFactory; import org.rea...
true
Other
spring-projects
spring-framework
a0e223177927608e67d8b3e20436ecd6e68e7ec5.json
Use specified ResolvableType in JacksonJsonEncoder This commit also fixes an issue in the HTTP client that used the wrapper type instead of the element type. As a consequence, due to type erasure, we now have to specify the type of the content in DefaultHttpRequestBuilder#contentStream().
spring-web-reactive/src/main/java/org/springframework/web/client/reactive/DefaultHttpRequestBuilder.java
@@ -60,6 +60,8 @@ public class DefaultHttpRequestBuilder implements HttpRequestBuilder { protected Publisher contentPublisher; + protected ResolvableType contentType; + protected final List<HttpCookie> cookies = new ArrayList<HttpCookie>(); protected DefaultHttpRequestBuilder() { @@ -111,11 +113,13 @@ publi...
true
Other
spring-projects
spring-framework
a0e223177927608e67d8b3e20436ecd6e68e7ec5.json
Use specified ResolvableType in JacksonJsonEncoder This commit also fixes an issue in the HTTP client that used the wrapper type instead of the element type. As a consequence, due to type erasure, we now have to specify the type of the content in DefaultHttpRequestBuilder#contentStream().
spring-web-reactive/src/test/java/org/springframework/core/codec/support/JacksonJsonEncoderTests.java
@@ -16,11 +16,14 @@ package org.springframework.core.codec.support; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; import org.junit.Before; import org.junit.Test; import reactor.core.publisher.Flux; import reactor.core.test.TestSubscriber; +impor...
true
Other
spring-projects
spring-framework
9963c4a495c194deafcb0e7f983b1e67e3effd11.json
Fix Kotlin warnings
spring-beans/src/main/kotlin/org/springframework/beans/factory/BeanFactoryExtensions.kt
@@ -36,6 +36,7 @@ fun <T : Any> BeanFactory.getBean(name: String, requiredType: KClass<T>) = * @author Sebastien Deleuze * @since 5.0 */ +@Suppress("EXTENSION_SHADOWED_BY_MEMBER") inline fun <reified T : Any> BeanFactory.getBean(name: String) = getBean(name, T::class.java)
true
Other
spring-projects
spring-framework
9963c4a495c194deafcb0e7f983b1e67e3effd11.json
Fix Kotlin warnings
spring-jdbc/src/main/kotlin/org/springframework/jdbc/core/JdbcOperationsExtensions.kt
@@ -106,6 +106,7 @@ fun <T : Any> JdbcOperations.queryForList(sql: String, elementType: KClass<T>): * @author Mario Arias * @since 5.0 */ +@Suppress("EXTENSION_SHADOWED_BY_MEMBER") inline fun <reified T : Any> JdbcOperations.queryForList(sql: String): List<T> = queryForList(sql, T::class.java) @@ -124,6 +12...
true
Other
spring-projects
spring-framework
9963c4a495c194deafcb0e7f983b1e67e3effd11.json
Fix Kotlin warnings
spring-jdbc/src/test/kotlin/org/springframework/jdbc/core/JdbcOperationsExtensionsTests.kt
@@ -88,7 +88,7 @@ class JdbcOperationsExtensionsTests { @Test fun `queryForObject with RowMapper-like function`() { - val i = template.queryForObject("select age from customer where id = ?", 3) { rs, i -> + val i = template.queryForObject("select age from customer where id = ?", 3) { rs, _ -> rs.getInt(1) ...
true
Other
spring-projects
spring-framework
9963c4a495c194deafcb0e7f983b1e67e3effd11.json
Fix Kotlin warnings
spring-webflux/src/test/kotlin/org/springframework/web/reactive/function/server/RouterFunctionExtensionsTests.kt
@@ -133,8 +133,10 @@ class RouterFunctionExtensionsTests { path("/baz") { handle(req) } } + @Suppress("UNUSED_PARAMETER") fun handleFromClass(req: ServerRequest) = ok().build() } } +@Suppress("UNUSED_PARAMETER") fun handle(req: ServerRequest) = ok().build()
true
Other
spring-projects
spring-framework
9963c4a495c194deafcb0e7f983b1e67e3effd11.json
Fix Kotlin warnings
spring-webflux/src/test/kotlin/org/springframework/web/reactive/result/view/script/ScriptTemplateWithBindingsExtensions.kt
@@ -1,3 +1,5 @@ +@file:Suppress("UNCHECKED_CAST") + package org.springframework.web.reactive.result.view.script import kotlin.script.templates.standard.ScriptTemplateWithBindings
true
Other
spring-projects
spring-framework
9963c4a495c194deafcb0e7f983b1e67e3effd11.json
Fix Kotlin warnings
spring-webmvc/src/test/kotlin/org/springframework/web/servlet/view/script/ScriptTemplateWithBindingsExtensions.kt
@@ -1,3 +1,5 @@ +@file:Suppress("UNCHECKED_CAST") + package org.springframework.web.reactive.result.view.script import kotlin.script.templates.standard.ScriptTemplateWithBindings
true
Other
spring-projects
spring-framework
63118c1ea76a7cb5e893ae24495dd1e49d157db5.json
Add DataBufferUtils.read w/ AsynchFileChannel This commit adds an overloaded DataBufferUtils.read method that operates on a AsynchronousFileChannel (as opposed to a ReadableByteChannel, which already existed). This commit also uses said method in the Resource encoders, if the Resource is a file.
spring-core/src/main/java/org/springframework/core/codec/ResourceEncoder.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * Copyright 2002-2017 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,11 @@ package org.springframewo...
true
Other
spring-projects
spring-framework
63118c1ea76a7cb5e893ae24495dd1e49d157db5.json
Add DataBufferUtils.read w/ AsynchFileChannel This commit adds an overloaded DataBufferUtils.read method that operates on a AsynchronousFileChannel (as opposed to a ReadableByteChannel, which already existed). This commit also uses said method in the Resource encoders, if the Resource is a file.
spring-core/src/main/java/org/springframework/core/codec/ResourceRegionEncoder.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * Copyright 2002-2017 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,10 +16,13 @@ package org.springframew...
true
Other
spring-projects
spring-framework
63118c1ea76a7cb5e893ae24495dd1e49d157db5.json
Add DataBufferUtils.read w/ AsynchFileChannel This commit adds an overloaded DataBufferUtils.read method that operates on a AsynchronousFileChannel (as opposed to a ReadableByteChannel, which already existed). This commit also uses said method in the Resource encoders, if the Resource is a file.
spring-core/src/main/java/org/springframework/core/io/buffer/DataBufferUtils.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * Copyright 2002-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,14 +19,17 @@ import java.io.IOException...
true
Other
spring-projects
spring-framework
63118c1ea76a7cb5e893ae24495dd1e49d157db5.json
Add DataBufferUtils.read w/ AsynchFileChannel This commit adds an overloaded DataBufferUtils.read method that operates on a AsynchronousFileChannel (as opposed to a ReadableByteChannel, which already existed). This commit also uses said method in the Resource encoders, if the Resource is a file.
spring-core/src/test/java/org/springframework/core/codec/ResourceRegionEncoderTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * Copyright 2002-2017 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. @@ -27,6 +27,7 @@ import org.springframework...
true
Other
spring-projects
spring-framework
63118c1ea76a7cb5e893ae24495dd1e49d157db5.json
Add DataBufferUtils.read w/ AsynchFileChannel This commit adds an overloaded DataBufferUtils.read method that operates on a AsynchronousFileChannel (as opposed to a ReadableByteChannel, which already existed). This commit also uses said method in the Resource encoders, if the Resource is a file.
spring-core/src/test/java/org/springframework/core/io/buffer/DataBufferUtilsTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * Copyright 2002-2017 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. @@ -18,6 +18,7 @@ import java.io.InputStream...
true
Other
spring-projects
spring-framework
63118c1ea76a7cb5e893ae24495dd1e49d157db5.json
Add DataBufferUtils.read w/ AsynchFileChannel This commit adds an overloaded DataBufferUtils.read method that operates on a AsynchronousFileChannel (as opposed to a ReadableByteChannel, which already existed). This commit also uses said method in the Resource encoders, if the Resource is a file.
spring-core/src/test/resources/org/springframework/core/codec/ResourceRegionEncoderTests.txt
@@ -0,0 +1 @@ +Spring Framework test resource content. \ No newline at end of file
true
Other
spring-projects
spring-framework
e4b1a953bff8ccad0e9bad4f3807200589911eb4.json
Fix a typo in spring-context-indexer documentation
src/asciidoc/core-beans.adoc
@@ -5891,7 +5891,7 @@ Or, using Gradle: [subs="verbatim,quotes,attributes"] ---- dependencies { - compileOnly("org.springframework:spring-context-indexed:{spring-version}") + compileOnly("org.springframework:spring-context-indexer:{spring-version}") } ----
false
Other
spring-projects
spring-framework
f5804b40b2cc5139149c97f67f6905a0bb3a6cde.json
Fix typo in docs
src/asciidoc/web-flux.adoc
@@ -347,7 +347,7 @@ HttpServlet servlet = new ServletHttpHandlerAdapter(handler); // Reactor Netty ReactorHttpHandlerAdapter adapter = new ReactorHttpHandlerAdapter(handler); -HttpServer.create(host, port).newHandler(adapter).onClose().block(); +HttpServer.create(host, port).newHandler(adapter).block(); // RxNet...
false
Other
spring-projects
spring-framework
47c4cf7abf231018e102bf51d83dd92c656f8996.json
Drop support for Jetty 9.3 and OkHttp 2.x Issue: SPR-15038
spring-web/src/main/java/org/springframework/http/client/OkHttpAsyncClientHttpRequest.java
@@ -1,105 +0,0 @@ -/* - * Copyright 2002-2016 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 -...
true
Other
spring-projects
spring-framework
47c4cf7abf231018e102bf51d83dd92c656f8996.json
Drop support for Jetty 9.3 and OkHttp 2.x Issue: SPR-15038
spring-web/src/main/java/org/springframework/http/client/OkHttpClientHttpRequest.java
@@ -1,73 +0,0 @@ -/* - * Copyright 2002-2016 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - ...
true
Other
spring-projects
spring-framework
47c4cf7abf231018e102bf51d83dd92c656f8996.json
Drop support for Jetty 9.3 and OkHttp 2.x Issue: SPR-15038
spring-web/src/main/java/org/springframework/http/client/OkHttpClientHttpRequestFactory.java
@@ -1,149 +0,0 @@ -/* - * Copyright 2002-2016 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 -...
true
Other
spring-projects
spring-framework
47c4cf7abf231018e102bf51d83dd92c656f8996.json
Drop support for Jetty 9.3 and OkHttp 2.x Issue: SPR-15038
spring-web/src/main/java/org/springframework/http/client/OkHttpClientHttpResponse.java
@@ -1,89 +0,0 @@ -/* - * Copyright 2002-2016 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - ...
true
Other
spring-projects
spring-framework
47c4cf7abf231018e102bf51d83dd92c656f8996.json
Drop support for Jetty 9.3 and OkHttp 2.x Issue: SPR-15038
spring-web/src/test/java/org/springframework/http/client/OkHttpAsyncClientHttpRequestFactoryTests.java
@@ -1,41 +0,0 @@ -/* - * Copyright 2002-2016 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - ...
true
Other
spring-projects
spring-framework
47c4cf7abf231018e102bf51d83dd92c656f8996.json
Drop support for Jetty 9.3 and OkHttp 2.x Issue: SPR-15038
spring-web/src/test/java/org/springframework/http/client/OkHttpClientHttpRequestFactoryTests.java
@@ -1,41 +0,0 @@ -/* - * Copyright 2002-2016 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - ...
true
Other
spring-projects
spring-framework
47c4cf7abf231018e102bf51d83dd92c656f8996.json
Drop support for Jetty 9.3 and OkHttp 2.x Issue: SPR-15038
spring-web/src/test/java/org/springframework/web/client/RestTemplateIntegrationTests.java
@@ -78,16 +78,17 @@ public static Iterable<? extends ClientHttpRequestFactory> data() { new SimpleClientHttpRequestFactory(), new HttpComponentsClientHttpRequestFactory(), new Netty4ClientHttpRequestFactory(), - new OkHttp3ClientHttpRequestFactory(), - new org.springframework.http.client.OkHttpClie...
true
Other
spring-projects
spring-framework
47c4cf7abf231018e102bf51d83dd92c656f8996.json
Drop support for Jetty 9.3 and OkHttp 2.x Issue: SPR-15038
spring-web/src/test/java/org/springframework/web/client/RestTemplateTests.java
@@ -44,17 +44,8 @@ import org.springframework.http.converter.HttpMessageConverter; import org.springframework.web.util.DefaultUriBuilderFactory; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertNull; -import static org.junit.Assert.asse...
true
Other
spring-projects
spring-framework
47c4cf7abf231018e102bf51d83dd92c656f8996.json
Drop support for Jetty 9.3 and OkHttp 2.x Issue: SPR-15038
spring-websocket/src/main/java/org/springframework/web/socket/adapter/jetty/JettyWebSocketSession.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * Copyright 2002-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ package org.springframework....
true
Other
spring-projects
spring-framework
47c4cf7abf231018e102bf51d83dd92c656f8996.json
Drop support for Jetty 9.3 and OkHttp 2.x Issue: SPR-15038
spring-websocket/src/main/java/org/springframework/web/socket/server/jetty/JettyRequestUpgradeStrategy.java
@@ -41,7 +41,6 @@ import org.springframework.http.server.ServletServerHttpRequest; import org.springframework.http.server.ServletServerHttpResponse; import org.springframework.util.Assert; -import org.springframework.util.ClassUtils; import org.springframework.util.CollectionUtils; import org.springframework.web.c...
true
Other
spring-projects
spring-framework
05787f314f216bda3ee2149792abb7bf95e80085.json
Update copyright header Closes gh-1343
spring-tx/src/main/java/org/springframework/transaction/TransactionDefinition.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2015 the original author or authors. + * Copyright 2002-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
false
Other
spring-projects
spring-framework
0e49c0e152f6f560be94b12629bdd946d3dec5c8.json
Remove unecessary "<<" See gh-1343
spring-tx/src/main/java/org/springframework/transaction/TransactionDefinition.java
@@ -233,7 +233,7 @@ public interface TransactionDefinition { * ({@link #PROPAGATION_SUPPORTS}). In the latter case, the flag will * only apply to managed resources within the application, such as a * Hibernate {@code Session}. - << * <p>This just serves as a hint for the actual transaction subsystem; + * <p...
false
Other
spring-projects
spring-framework
ce69855274e93b436c378e808f746f0d1cc2e538.json
Fix failing tests
spring-web/src/main/java/org/springframework/web/method/annotation/ExceptionHandlerMethodResolver.java
@@ -125,7 +125,7 @@ public boolean hasExceptionMappings() { * @return a Method to handle the exception, or {@code null} if none found */ public Method resolveMethod(Exception exception) { - return resolveMethod(exception); + return resolveMethodByThrowable(exception); } /**
false
Other
spring-projects
spring-framework
56d669f849d4b4caaef97b93385c873ac810ecd9.json
Add permanent/temporary redirect to ServerResponse This commit adds the temporaryRedirect(URI) and permanentRedirect(URI) static creation methods to ServerResponse.
spring-webflux/src/main/java/org/springframework/web/reactive/function/server/ServerResponse.java
@@ -94,15 +94,15 @@ static BodyBuilder status(HttpStatus status) { } /** - * Create a builder with the status set to {@linkplain HttpStatus#OK OK}. + * Create a builder with the status set to {@linkplain HttpStatus#OK 200 OK}. * @return the created builder */ static BodyBuilder ok() { return status(H...
true
Other
spring-projects
spring-framework
56d669f849d4b4caaef97b93385c873ac810ecd9.json
Add permanent/temporary redirect to ServerResponse This commit adds the temporaryRedirect(URI) and permanentRedirect(URI) static creation methods to ServerResponse.
spring-webflux/src/test/java/org/springframework/web/reactive/function/server/DefaultServerResponseBuilderTests.java
@@ -35,8 +35,9 @@ import org.springframework.mock.http.server.reactive.test.MockServerHttpResponse; import org.springframework.web.server.ServerWebExchange; -import static org.junit.Assert.*; -import static org.mockito.Mockito.*; +import static org.junit.Assert.assertEquals; +import static org.mockito.Mockito.mock;...
true
Other
spring-projects
spring-framework
40ae8d41a450b070b23651cf3f9758dd2005d722.json
Introduce ServerResponse Kotlin extensions Issue: SPR-15293
spring-webflux/src/main/kotlin/org/springframework/web/reactive/function/server/ServerResponseExtensions.kt
@@ -0,0 +1,11 @@ +package org.springframework.web.reactive.function.server + +import org.reactivestreams.Publisher + +/** + * Extension for [ServerResponse.BodyBuilder.body] providing a `body(Publisher<T>)` variant. + * + * @author Sebastien Deleuze + * @since 5.0 + */ +inline fun <reified T : Any> ServerResponse.BodyB...
false
Other
spring-projects
spring-framework
c85f063d92d1d6ac0daa134ac4b64dac2c218182.json
Upgrade Reactor to Aluminium-SR1
build.gradle
@@ -79,7 +79,7 @@ configure(allprojects) { project -> ext.poiVersion = "3.15" ext.protobufVersion = "3.1.0" ext.quartzVersion = "2.2.3" - ext.reactorVersion = "Aluminium-BUILD-SNAPSHOT" + ext.reactorVersion = "Aluminium-SR1" ext.romeVersion = "1.7.1" ext....
false
Other
spring-projects
spring-framework
f219680d42e4ccb80fefd3e72ef848bfc9ab5488.json
Add equals/hashcode for STOMP Subscription Issue: SPR-15229
spring-messaging/src/main/java/org/springframework/messaging/simp/broker/DefaultSubscriptionRegistry.java
@@ -497,6 +497,23 @@ public Expression getSelectorExpression() { return this.selectorExpression; } + @Override + public boolean equals(Object other) { + if (this == other) { + return true; + } + if (other == null || getClass() != other.getClass()) { + return false; + } + return getId().equals...
false
Other
spring-projects
spring-framework
7582adc0bc4d9456465338f92198fbcbdc84151a.json
Fix trailing slash in nested path This commit adds a trailing slash to the nested path if the request path also ends with a slash. For instance, given the request "/foo/bar/", and nested path pattern "/foo/**", we expect the nested path to be “/bar/”, not “/bar".
spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RequestPredicates.java
@@ -386,6 +386,9 @@ public ServerRequest nestRequest(ServerRequest request) { if (!subPath.startsWith("/")) { subPath = "/" + subPath; } + if (requestPath.endsWith("/") && !subPath.endsWith("/")) { + subPath += "/"; + } return new SubPathServerRequestWrapper(request, subPath); }
false
Other
spring-projects
spring-framework
2bf9bc312ed1721b5978f88861c29cffc9ea407c.json
Remove Guava cache support This commit removes `GuavaCache` and support classes. Caffeine supersedes the caching support in the Google Guava library with an actively maintained Java 8+ version in standalone form. As it is the only Guava feature Spring framework integrates with, this commit removes effectively any ref...
build.gradle
@@ -43,7 +43,6 @@ configure(allprojects) { project -> ext.freemarkerVersion = "2.3.23" ext.groovyVersion = "2.4.7" ext.gsonVersion = "2.7" - ext.guavaVersion = "19.0" ext.hamcrestVersion = "1.3" ext.hibernate5Version = "5.2.1.Final" ext.hibval5Version = "5.2.4.Final"...
true
Other
spring-projects
spring-framework
2bf9bc312ed1721b5978f88861c29cffc9ea407c.json
Remove Guava cache support This commit removes `GuavaCache` and support classes. Caffeine supersedes the caching support in the Google Guava library with an actively maintained Java 8+ version in standalone form. As it is the only Guava feature Spring framework integrates with, this commit removes effectively any ref...
spring-context-support/src/main/java/org/springframework/cache/guava/GuavaCache.java
@@ -1,165 +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
2bf9bc312ed1721b5978f88861c29cffc9ea407c.json
Remove Guava cache support This commit removes `GuavaCache` and support classes. Caffeine supersedes the caching support in the Google Guava library with an actively maintained Java 8+ version in standalone form. As it is the only Guava feature Spring framework integrates with, this commit removes effectively any ref...
spring-context-support/src/main/java/org/springframework/cache/guava/GuavaCacheManager.java
@@ -1,229 +0,0 @@ -/* - * Copyright 2002-2016 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 -...
true
Other
spring-projects
spring-framework
2bf9bc312ed1721b5978f88861c29cffc9ea407c.json
Remove Guava cache support This commit removes `GuavaCache` and support classes. Caffeine supersedes the caching support in the Google Guava library with an actively maintained Java 8+ version in standalone form. As it is the only Guava feature Spring framework integrates with, this commit removes effectively any ref...
spring-context-support/src/main/java/org/springframework/cache/guava/package-info.java
@@ -1,6 +0,0 @@ -/** - * Support classes for the open source cache in Google's - * <a href="http://code.google.com/p/guava-libraries/">Guava</a> library, - * allowing to set up Guava caches within Spring's cache abstraction. - */ -package org.springframework.cache.guava;
true
Other
spring-projects
spring-framework
2bf9bc312ed1721b5978f88861c29cffc9ea407c.json
Remove Guava cache support This commit removes `GuavaCache` and support classes. Caffeine supersedes the caching support in the Google Guava library with an actively maintained Java 8+ version in standalone form. As it is the only Guava feature Spring framework integrates with, this commit removes effectively any ref...
spring-context-support/src/test/java/org/springframework/cache/guava/GuavaCacheManagerTests.java
@@ -1,186 +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
2bf9bc312ed1721b5978f88861c29cffc9ea407c.json
Remove Guava cache support This commit removes `GuavaCache` and support classes. Caffeine supersedes the caching support in the Google Guava library with an actively maintained Java 8+ version in standalone form. As it is the only Guava feature Spring framework integrates with, this commit removes effectively any ref...
spring-context-support/src/test/java/org/springframework/cache/guava/GuavaCacheTests.java
@@ -1,68 +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
2bf9bc312ed1721b5978f88861c29cffc9ea407c.json
Remove Guava cache support This commit removes `GuavaCache` and support classes. Caffeine supersedes the caching support in the Google Guava library with an actively maintained Java 8+ version in standalone form. As it is the only Guava feature Spring framework integrates with, this commit removes effectively any ref...
spring-context/src/main/java/org/springframework/cache/concurrent/ConcurrentMapCacheManager.java
@@ -39,8 +39,7 @@ * caching scenarios. For advanced local caching needs, consider * {@link org.springframework.cache.jcache.JCacheCacheManager}, * {@link org.springframework.cache.ehcache.EhCacheCacheManager}, - * {@link org.springframework.cache.caffeine.CaffeineCacheManager} or - * {@link org.springframework.ca...
true
Other
spring-projects
spring-framework
2bf9bc312ed1721b5978f88861c29cffc9ea407c.json
Remove Guava cache support This commit removes `GuavaCache` and support classes. Caffeine supersedes the caching support in the Google Guava library with an actively maintained Java 8+ version in standalone form. As it is the only Guava feature Spring framework integrates with, this commit removes effectively any ref...
spring-expression/src/test/java/org/springframework/expression/spel/SpelReproTests.java
@@ -1905,7 +1905,7 @@ public void SPR12803() { StandardEvaluationContext sec = new StandardEvaluationContext(); sec.setVariable("iterable", Collections.emptyList()); SpelExpressionParser parser = new SpelExpressionParser(); - Expression expression = parser.parseExpression("T(org.springframework.expression.spe...
true
Other
spring-projects
spring-framework
2bf9bc312ed1721b5978f88861c29cffc9ea407c.json
Remove Guava cache support This commit removes `GuavaCache` and support classes. Caffeine supersedes the caching support in the Google Guava library with an actively maintained Java 8+ version in standalone form. As it is the only Guava feature Spring framework integrates with, this commit removes effectively any ref...
src/asciidoc/integration.adoc
@@ -8063,10 +8063,9 @@ materialized by the `org.springframework.cache.Cache` and There are <<cache-store-configuration,a few implementations>> of that abstraction available out of the box: JDK `java.util.concurrent.ConcurrentMap` based caches, http://ehcache.org/[EhCache], Gemfire cache, -https://github.com/ben-mane...
true
Other
spring-projects
spring-framework
4c3c54463c3ce17f153e2fdce7c2cff79b7bdf2f.json
Upgrade build to Spring 5.0.0-BUILD-SNAPSHOT * update bean validation API version * MethodParameter now validates indices, see 39e3f2ebf669 * `getCharSet()` is now `getCharset()`
spring-web-reactive/build.gradle
@@ -27,7 +27,7 @@ repositories { } ext { - springVersion = '4.3.0.RELEASE' + springVersion = '5.0.0.BUILD-SNAPSHOT' reactorVersion = '2.5.0.BUILD-SNAPSHOT' reactorNettyVersion = '2.5.0.BUILD-SNAPSHOT' rxJavaVersion = '1.1.6' @@ -112,7 +112,7 @@ dependencies { optional "org.eclipse.jetty:jetty-servlet:${jett...
true
Other
spring-projects
spring-framework
4c3c54463c3ce17f153e2fdce7c2cff79b7bdf2f.json
Upgrade build to Spring 5.0.0-BUILD-SNAPSHOT * update bean validation API version * MethodParameter now validates indices, see 39e3f2ebf669 * `getCharSet()` is now `getCharset()`
spring-web-reactive/src/main/java/org/springframework/http/server/reactive/ServletServerHttpRequest.java
@@ -94,7 +94,7 @@ protected HttpHeaders initHeaders() { headers.setContentType(contentType); } } - if (contentType != null && contentType.getCharSet() == null) { + if (contentType != null && contentType.getCharset() == null) { String encoding = getServletRequest().getCharacterEncoding(); if (Strin...
true
Other
spring-projects
spring-framework
4c3c54463c3ce17f153e2fdce7c2cff79b7bdf2f.json
Upgrade build to Spring 5.0.0-BUILD-SNAPSHOT * update bean validation API version * MethodParameter now validates indices, see 39e3f2ebf669 * `getCharSet()` is now `getCharset()`
spring-web-reactive/src/main/java/org/springframework/http/server/reactive/ServletServerHttpResponse.java
@@ -86,7 +86,7 @@ protected void writeHeaders() { if (this.response.getContentType() == null && contentType != null) { this.response.setContentType(contentType.toString()); } - Charset charset = (contentType != null ? contentType.getCharSet() : null); + Charset charset = (contentType != null ? contentType.g...
true
Other
spring-projects
spring-framework
4c3c54463c3ce17f153e2fdce7c2cff79b7bdf2f.json
Upgrade build to Spring 5.0.0-BUILD-SNAPSHOT * update bean validation API version * MethodParameter now validates indices, see 39e3f2ebf669 * `getCharSet()` is now `getCharset()`
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestAttributeMethodArgumentResolverTests.java
@@ -154,7 +154,8 @@ private void handleWithRequestAttribute( @RequestAttribute Foo foo, @RequestAttribute("specialFoo") Foo namedFoo, @RequestAttribute(name="foo", required = false) Foo notRequiredFoo, - @RequestAttribute(name="foo") Optional<Foo> optionalFoo) { + @RequestAttribute(name="foo") Optional<...
true
Other
spring-projects
spring-framework
4c3c54463c3ce17f153e2fdce7c2cff79b7bdf2f.json
Upgrade build to Spring 5.0.0-BUILD-SNAPSHOT * update bean validation API version * MethodParameter now validates indices, see 39e3f2ebf669 * `getCharSet()` is now `getCharset()`
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/SessionAttributeMethodArgumentResolverTests.java
@@ -161,7 +161,8 @@ private void handleWithSessionAttribute( @SessionAttribute Foo foo, @SessionAttribute("specialFoo") Foo namedFoo, @SessionAttribute(name="foo", required = false) Foo notRequiredFoo, - @SessionAttribute(name="foo") Optional<Foo> optionalFoo) { + @SessionAttribute(name="foo") Optional<...
true
Other
spring-projects
spring-framework
1103a9cd166590cd94d6ef6875682c0c5e1e786e.json
Remove trailing whitespaces Closes gh-1100
src/asciidoc/core-beans.adoc
@@ -5784,7 +5784,7 @@ other beans through a `Provider.get()` call. As a variant of the example above: public class SimpleMovieLister { private Provider<MovieFinder> movieFinder; - + @Inject public void setMovieFinder(Provider<MovieFinder> movieFinder) { this.movieFinder = movieFinder;
false
Other
spring-projects
spring-framework
6aeaa1976d51224b93fb7c6bef979dc07bf833b5.json
Add the injection point for the Provider See gh-1100
src/asciidoc/core-beans.adoc
@@ -5784,6 +5784,11 @@ other beans through a `Provider.get()` call. As a variant of the example above: public class SimpleMovieLister { private Provider<MovieFinder> movieFinder; + + @Inject + public void setMovieFinder(Provider<MovieFinder> movieFinder) { + this.movieFinder = movieFinder; + } public...
false
Other
spring-projects
spring-framework
9cc01fc185a70f56acd5adb5355ae09a44d614a7.json
Add @RequestBody tests
spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/RequestBodyArgumentResolver.java
@@ -124,15 +124,13 @@ public boolean supportsParameter(MethodParameter parameter) { } @Override - public Mono<Object> resolveArgument(MethodParameter parameter, ModelMap model, - ServerWebExchange exchange) { - - ResolvableType type = ResolvableType.forMethodParameter(parameter); + public Mono<Object> resolveA...
true
Other
spring-projects
spring-framework
9cc01fc185a70f56acd5adb5355ae09a44d614a7.json
Add @RequestBody tests
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestBodyArgumentResolverTests.java
@@ -15,6 +15,8 @@ */ package org.springframework.web.reactive.result.method.annotation; +import java.io.Serializable; +import java.lang.reflect.Method; import java.net.URI; import java.nio.ByteBuffer; import java.nio.charset.Charset; @@ -29,6 +31,7 @@ import javax.xml.bind.annotation.XmlRootElement; import ...
true
Other
spring-projects
spring-framework
6525504e17430ac6c32b1a7f7a169cbdcfb9ca01.json
Restore local vars in JacksonJsonEncoder
spring-web-reactive/src/main/java/org/springframework/http/codec/json/JacksonJsonEncoder.java
@@ -81,13 +81,16 @@ public Flux<DataBuffer> encode(Publisher<?> inputStream, DataBufferFactory buffe return Flux.from(inputStream).map(value -> encodeValue(value, bufferFactory, elementType)); } + Mono<DataBuffer> startArray = Mono.just(bufferFactory.wrap(START_ARRAY_BUFFER)); + Mono<DataBuffer> endArray = M...
false
Other
spring-projects
spring-framework
e4b0486c5a7dbf8e323f89b1539cbaca7d1a5932.json
Add @FunctionalInterface on candidate interfaces Issue: SPR-14432
spring-aop/src/main/java/org/aopalliance/intercept/MethodInterceptor.java
@@ -39,6 +39,7 @@ * * @author Rod Johnson */ +@FunctionalInterface public interface MethodInterceptor extends Interceptor { /**
true
Other
spring-projects
spring-framework
e4b0486c5a7dbf8e323f89b1539cbaca7d1a5932.json
Add @FunctionalInterface on candidate interfaces Issue: SPR-14432
spring-aop/src/main/java/org/springframework/aop/ClassFilter.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2007 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. @@ -27,6 +27,7 @@ * @see Pointcut * @see Me...
true
Other
spring-projects
spring-framework
e4b0486c5a7dbf8e323f89b1539cbaca7d1a5932.json
Add @FunctionalInterface on candidate interfaces Issue: SPR-14432
spring-aop/src/main/java/org/springframework/aop/framework/autoproxy/TargetSourceCreator.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 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. @@ -29,6 +29,7 @@ * @author Rod Johnson * @...
true
Other
spring-projects
spring-framework
e4b0486c5a7dbf8e323f89b1539cbaca7d1a5932.json
Add @FunctionalInterface on candidate interfaces Issue: SPR-14432
spring-aop/src/main/java/org/springframework/aop/interceptor/AsyncUncaughtExceptionHandler.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. @@ -29,6 +29,7 @@ * @author Stephane Nicoll ...
true
Other
spring-projects
spring-framework
e4b0486c5a7dbf8e323f89b1539cbaca7d1a5932.json
Add @FunctionalInterface on candidate interfaces Issue: SPR-14432
spring-beans/src/main/java/org/springframework/beans/factory/config/BeanFactoryPostProcessor.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 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. @@ -42,6 +42,7 @@ * @see BeanPostProcessor ...
true
Other
spring-projects
spring-framework
e4b0486c5a7dbf8e323f89b1539cbaca7d1a5932.json
Add @FunctionalInterface on candidate interfaces Issue: SPR-14432
spring-beans/src/main/java/org/springframework/beans/factory/parsing/SourceExtractor.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 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. @@ -33,6 +33,7 @@ * @see org.springframework....
true
Other
spring-projects
spring-framework
e4b0486c5a7dbf8e323f89b1539cbaca7d1a5932.json
Add @FunctionalInterface on candidate interfaces Issue: SPR-14432
spring-beans/src/main/java/org/springframework/beans/factory/xml/NamespaceHandlerResolver.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 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. @@ -25,6 +25,7 @@ * @see NamespaceHandler *...
true
Other
spring-projects
spring-framework
e4b0486c5a7dbf8e323f89b1539cbaca7d1a5932.json
Add @FunctionalInterface on candidate interfaces Issue: SPR-14432
spring-context-support/src/main/java/org/springframework/mail/javamail/MimeMessagePreparator.java
@@ -36,6 +36,7 @@ * @see JavaMailSender#send(MimeMessagePreparator[]) * @see MimeMessageHelper */ +@FunctionalInterface public interface MimeMessagePreparator { /**
true
Other
spring-projects
spring-framework
e4b0486c5a7dbf8e323f89b1539cbaca7d1a5932.json
Add @FunctionalInterface on candidate interfaces Issue: SPR-14432
spring-context/src/main/java/org/springframework/cache/Cache.java
@@ -145,6 +145,7 @@ public interface Cache { /** * A (wrapper) object representing a cache value. */ + @FunctionalInterface interface ValueWrapper { /**
true
Other
spring-projects
spring-framework
e4b0486c5a7dbf8e323f89b1539cbaca7d1a5932.json
Add @FunctionalInterface on candidate interfaces Issue: SPR-14432
spring-context/src/main/java/org/springframework/cache/annotation/AnnotationCacheOperationSource.java
@@ -181,6 +181,7 @@ public int hashCode() { * Callback interface providing {@link CacheOperation} instance(s) based on * a given {@link CacheAnnotationParser}. */ + @FunctionalInterface protected interface CacheOperationProvider { /**
true
Other
spring-projects
spring-framework
e4b0486c5a7dbf8e323f89b1539cbaca7d1a5932.json
Add @FunctionalInterface on candidate interfaces Issue: SPR-14432
spring-context/src/main/java/org/springframework/cache/interceptor/CacheOperationInvoker.java
@@ -27,6 +27,7 @@ * @author Stephane Nicoll * @since 4.1 */ +@FunctionalInterface public interface CacheOperationInvoker { /**
true
Other
spring-projects
spring-framework
e4b0486c5a7dbf8e323f89b1539cbaca7d1a5932.json
Add @FunctionalInterface on candidate interfaces Issue: SPR-14432
spring-context/src/main/java/org/springframework/cache/interceptor/CacheResolver.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. @@ -28,6 +28,7 @@ * @author Stephane Nicoll ...
true
Other
spring-projects
spring-framework
e4b0486c5a7dbf8e323f89b1539cbaca7d1a5932.json
Add @FunctionalInterface on candidate interfaces Issue: SPR-14432
spring-context/src/main/java/org/springframework/cache/interceptor/KeyGenerator.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 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. @@ -27,6 +27,7 @@ * @author Phillip Webb * ...
true
Other
spring-projects
spring-framework
e4b0486c5a7dbf8e323f89b1539cbaca7d1a5932.json
Add @FunctionalInterface on candidate interfaces Issue: SPR-14432
spring-context/src/main/java/org/springframework/context/ApplicationListener.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. @@ -33,6 +33,7 @@ * @param <E> the specific A...
true
Other
spring-projects
spring-framework
e4b0486c5a7dbf8e323f89b1539cbaca7d1a5932.json
Add @FunctionalInterface on candidate interfaces Issue: SPR-14432
spring-context/src/main/java/org/springframework/context/annotation/Condition.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 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. @@ -38,6 +38,7 @@ * @see Conditional * @see...
true
Other
spring-projects
spring-framework
e4b0486c5a7dbf8e323f89b1539cbaca7d1a5932.json
Add @FunctionalInterface on candidate interfaces Issue: SPR-14432
spring-context/src/main/java/org/springframework/context/annotation/ConfigurationClassEnhancer.java
@@ -151,6 +151,7 @@ private Class<?> createClass(Enhancer enhancer) { * must remain public in order to allow access to subclasses generated from other * packages (i.e. user code). */ + @FunctionalInterface public interface EnhancedConfiguration extends BeanFactoryAware { } @@ -159,6 +160,7 @@ public inte...
true
Other
spring-projects
spring-framework
e4b0486c5a7dbf8e323f89b1539cbaca7d1a5932.json
Add @FunctionalInterface on candidate interfaces Issue: SPR-14432
spring-context/src/main/java/org/springframework/context/annotation/ScopeMetadataResolver.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 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. @@ -25,6 +25,7 @@ * @since 2.5 * @see org.s...
true
Other
spring-projects
spring-framework
e4b0486c5a7dbf8e323f89b1539cbaca7d1a5932.json
Add @FunctionalInterface on candidate interfaces Issue: SPR-14432
spring-context/src/main/java/org/springframework/format/Parser.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 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. @@ -26,6 +26,7 @@ * @since 3.0 * @param <T>...
true
Other
spring-projects
spring-framework
e4b0486c5a7dbf8e323f89b1539cbaca7d1a5932.json
Add @FunctionalInterface on candidate interfaces Issue: SPR-14432
spring-context/src/main/java/org/springframework/format/Printer.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 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. @@ -25,6 +25,7 @@ * @since 3.0 * @param <T>...
true
Other
spring-projects
spring-framework
e4b0486c5a7dbf8e323f89b1539cbaca7d1a5932.json
Add @FunctionalInterface on candidate interfaces Issue: SPR-14432
spring-context/src/main/java/org/springframework/jmx/export/MBeanExporter.java
@@ -1077,7 +1077,8 @@ private void notifyListenersOfUnregistration(ObjectName objectName) { /** * Internal callback interface for the autodetection process. */ - private static interface AutodetectCallback { + @FunctionalInterface + private interface AutodetectCallback { /** * Called during the autodet...
true
Other
spring-projects
spring-framework
e4b0486c5a7dbf8e323f89b1539cbaca7d1a5932.json
Add @FunctionalInterface on candidate interfaces Issue: SPR-14432
spring-context/src/main/java/org/springframework/jmx/export/naming/ObjectNamingStrategy.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 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. @@ -30,6 +30,7 @@ * @see org.springframework....
true
Other
spring-projects
spring-framework
e4b0486c5a7dbf8e323f89b1539cbaca7d1a5932.json
Add @FunctionalInterface on candidate interfaces Issue: SPR-14432
spring-context/src/main/java/org/springframework/jmx/export/notification/NotificationPublisher.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 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. @@ -42,6 +42,7 @@ * @see NotificationPublishe...
true
Other
spring-projects
spring-framework
e4b0486c5a7dbf8e323f89b1539cbaca7d1a5932.json
Add @FunctionalInterface on candidate interfaces Issue: SPR-14432
spring-context/src/main/java/org/springframework/jndi/JndiCallback.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 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. @@ -33,6 +33,7 @@ * @see JndiTemplate * @se...
true