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 | 33becd8258583f17741c8615bcd2d2dc0378c7fc.json | Allow separator configuration in PathPatternParser
This commit allows to configure a custom path separator when parsing and
matching path patterns with `PathPatternParser`, but also when parsing
incoming paths as `PathContainer` instances.
Closes gh-23092 | spring-web/src/test/java/org/springframework/web/util/pattern/PathPatternParserTests.java | @@ -408,6 +408,15 @@ public void compareTests() {
assertThat(patterns.get(1)).isEqualTo(p2);
}
+ @Test
+ public void separatorTests() {
+ PathPatternParser parser = new PathPatternParser();
+ parser.setSeparator('.');
+ String rawPattern = "first.second.{last}";
+ PathPattern pattern = parser.parse(rawPatter... | true |
Other | spring-projects | spring-framework | ec9193473052de39006f32279d46210899621062.json | Use correct file options for transferTo
Similar to fix applied to Synchronoss implementation in #cef98e. | spring-web/src/main/java/org/springframework/http/codec/multipart/DefaultMultipartMessageReader.java | @@ -21,6 +21,7 @@
import java.nio.channels.Channel;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
+import java.nio.file.OpenOption;
import java.nio.file.Path;
import java.nio.file.StandardOpenOption;
import java.util.Collections;
@@ -367,6 +368,10 @@ public String value() {
privat... | false |
Other | spring-projects | spring-framework | 23e617160f196cd258ad36b2e908aeb58e50d340.json | Use a timeout != 0 in InvocableHandlerMethodTests | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/InvocableHandlerMethodTests.java | @@ -58,6 +58,9 @@
*/
public class InvocableHandlerMethodTests {
+ private static final Duration TIMEOUT = Duration.ofSeconds(5);
+
+
private final MockServerWebExchange exchange = MockServerWebExchange.from(get("http://localhost:8080/path"));
private final List<HandlerMethodArgumentResolver> resolvers = new ... | false |
Other | spring-projects | spring-framework | 1f35bb609b5833384bc59212834f92753655cd62.json | Fix checkstyle warning | spring-web/src/main/java/org/springframework/http/client/MultipartBodyBuilder.java | @@ -225,8 +225,8 @@ public interface PartBuilder {
/**
* Set the {@linkplain MediaType media type} of the part.
* @param contentType the content type
- * @see HttpHeaders#setContentType(MediaType)
* @since 5.2
+ * @see HttpHeaders#setContentType(MediaType)
*/
PartBuilder contentType(MediaType ... | false |
Other | spring-projects | spring-framework | 68333171b6709f757b65fe1955112d65fcbc92a3.json | Reintroduce author list and copyright notice
Closes gh-23049 | src/docs/asciidoc/index.adoc | @@ -24,3 +24,16 @@ WebSocket.
<<integration.adoc#spring-integration, Integration>> :: Remoting, JMS, JCA, JMX,
Email, Tasks, Scheduling, Caching.
<<languages.adoc#languages, Languages>> :: Kotlin, Groovy, Dynamic Languages.
+
+Rod Johnson, Juergen Hoeller, Keith Donald, Colin Sampaleanu, Rob Harrop, Thomas Risberg,
... | false |
Other | spring-projects | spring-framework | e0bb712bfc8b31be0f0a1c4d9027118d7475c566.json | Update Kotlin documentation | src/docs/asciidoc/languages/kotlin.adoc | @@ -2,35 +2,31 @@
= Kotlin
https://kotlinlang.org[Kotlin] is a statically typed language that targets the JVM
-(and other platforms), which allows writing concise and elegant code while providing
+(and other platforms) which allows writing concise and elegant code while providing
very good https://kotlinlang.org/d... | false |
Other | spring-projects | spring-framework | f66eef1f88fa78e76a18161489ad2411cdf4c258.json | Fix SortedPropertiesTests on JDK 9+ | spring-core/src/test/java/org/springframework/core/SortedPropertiesTests.java | @@ -132,8 +132,11 @@ public void storingAsXmlSortsPropertiesAndOmitsComments() throws IOException {
String[] lines = lines(baos);
- assertThat(lines).containsExactly( //
- "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>", //
+ assertThat(lines).isNotEmpty();
+ // Leniently match first line due... | false |
Other | spring-projects | spring-framework | eacc531cf76594747e3541decdd89f16bc46cf73.json | Add dataMimeType to RSocketRequestBuilder
Closes gh-23012 | spring-messaging/spring-messaging.gradle | @@ -7,7 +7,7 @@ dependencyManagement {
}
}
-def rsocketVersion = "0.12.2-RC3-SNAPSHOT"
+def rsocketVersion = "0.12.2-RC4-SNAPSHOT"
dependencies {
compile(project(":spring-beans")) | true |
Other | spring-projects | spring-framework | eacc531cf76594747e3541decdd89f16bc46cf73.json | Add dataMimeType to RSocketRequestBuilder
Closes gh-23012 | spring-messaging/src/main/java/org/springframework/messaging/rsocket/DefaultRSocketRequesterBuilder.java | @@ -20,6 +20,7 @@
import java.util.ArrayList;
import java.util.List;
import java.util.function.Consumer;
+import java.util.stream.Stream;
import io.rsocket.RSocketFactory;
import io.rsocket.transport.ClientTransport;
@@ -28,6 +29,7 @@
import reactor.core.publisher.Mono;
import org.springframework.lang.Nullab... | true |
Other | spring-projects | spring-framework | eacc531cf76594747e3541decdd89f16bc46cf73.json | Add dataMimeType to RSocketRequestBuilder
Closes gh-23012 | spring-messaging/src/main/java/org/springframework/messaging/rsocket/RSocketRequester.java | @@ -106,11 +106,20 @@ static RSocketRequester create(RSocket rsocket, @Nullable MimeType dataMimeType,
*/
interface Builder {
+ /**
+ * Configure the MimeType to use for payload data. This is set on the
+ * {@code SETUP} frame for the whole connection.
+ * <p>By default this is set to the first concrete M... | true |
Other | spring-projects | spring-framework | eacc531cf76594747e3541decdd89f16bc46cf73.json | Add dataMimeType to RSocketRequestBuilder
Closes gh-23012 | spring-messaging/src/test/java/org/springframework/messaging/rsocket/DefaultRSocketRequesterBuilderTests.java | @@ -16,6 +16,7 @@
package org.springframework.messaging.rsocket;
+import java.lang.reflect.Field;
import java.util.function.Consumer;
import io.netty.buffer.ByteBuf;
@@ -28,6 +29,13 @@
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
+import org.springframework.core.codec.CharSequenc... | true |
Other | spring-projects | spring-framework | aaeabc3c85befe72c6c22df9ac9b83a6c67bdef2.json | Simplify iteration over maps
Closes gh-23053 | spring-jms/src/main/java/org/springframework/jms/support/SimpleJmsHeaderMapper.java | @@ -92,10 +92,11 @@ public void fromHeaders(MessageHeaders headers, javax.jms.Message jmsMessage) {
logger.debug("Failed to set JMSType - skipping", ex);
}
}
- Set<String> headerNames = headers.keySet();
- for (String headerName : headerNames) {
+ Set<Map.Entry<String, Object>> entries = headers.en... | true |
Other | spring-projects | spring-framework | aaeabc3c85befe72c6c22df9ac9b83a6c67bdef2.json | Simplify iteration over maps
Closes gh-23053 | spring-test/src/main/java/org/springframework/test/context/cache/DefaultContextCache.java | @@ -180,9 +180,9 @@ public void remove(MergedContextConfiguration key, @Nullable HierarchyMode hiera
}
// Remove empty entries from the hierarchy map.
- for (MergedContextConfiguration currentKey : this.hierarchyMap.keySet()) {
- if (this.hierarchyMap.get(currentKey).isEmpty()) {
- this.hierarchyMap.remov... | true |
Other | spring-projects | spring-framework | aaeabc3c85befe72c6c22df9ac9b83a6c67bdef2.json | Simplify iteration over maps
Closes gh-23053 | spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/SessionAttributesHandler.java | @@ -113,8 +113,7 @@ public Map<String, Object> retrieveAttributes(WebSession session) {
* @param attributes candidate attributes for session storage
*/
public void storeAttributes(WebSession session, Map<String, ?> attributes) {
- attributes.keySet().forEach(name -> {
- Object value = attributes.get(name);
+... | true |
Other | spring-projects | spring-framework | 4523d01a5001835891b2f4160698521eef1256fe.json | Fix Javadoc for HttpHeaders#setContentLanguage
Closes gh-23051 | spring-web/src/main/java/org/springframework/http/HttpHeaders.java | @@ -869,7 +869,7 @@ public ContentDisposition getContentDisposition() {
/**
* Set the {@link Locale} of the content language,
* as specified by the {@literal Content-Language} header.
- * <p>Use {@code set(CONTENT_LANGUAGE, list)} if you need
+ * <p>Use {@code put(CONTENT_LANGUAGE, list)} if you need
* to ... | false |
Other | spring-projects | spring-framework | 83078eb6fdc6def52902a4f6abc3a4d347ccb485.json | Add constants for application/cbor to MediaType
Closes gh-23042 | spring-web/src/main/java/org/springframework/http/MediaType.java | @@ -73,6 +73,18 @@ public class MediaType extends MimeType implements Serializable {
*/
public static final String APPLICATION_ATOM_XML_VALUE = "application/atom+xml";
+ /**
+ * Public constant media type for {@code application/cbor}.
+ * @since 5.2
+ */
+ public static final MediaType APPLICATION_CBOR;
+
+ /... | true |
Other | spring-projects | spring-framework | 83078eb6fdc6def52902a4f6abc3a4d347ccb485.json | Add constants for application/cbor to MediaType
Closes gh-23042 | spring-web/src/main/java/org/springframework/http/codec/cbor/Jackson2CborDecoder.java | @@ -43,7 +43,7 @@
public class Jackson2CborDecoder extends AbstractJackson2Decoder {
public Jackson2CborDecoder() {
- this(Jackson2ObjectMapperBuilder.cbor().build(), new MediaType("application", "cbor"));
+ this(Jackson2ObjectMapperBuilder.cbor().build(), MediaType.APPLICATION_CBOR);
}
public Jackson2Cbor... | true |
Other | spring-projects | spring-framework | 83078eb6fdc6def52902a4f6abc3a4d347ccb485.json | Add constants for application/cbor to MediaType
Closes gh-23042 | spring-web/src/main/java/org/springframework/http/codec/cbor/Jackson2CborEncoder.java | @@ -44,7 +44,7 @@
public class Jackson2CborEncoder extends AbstractJackson2Encoder {
public Jackson2CborEncoder() {
- this(Jackson2ObjectMapperBuilder.cbor().build(), new MediaType("application", "cbor"));
+ this(Jackson2ObjectMapperBuilder.cbor().build(), MediaType.APPLICATION_CBOR);
}
public Jackson2Cbor... | true |
Other | spring-projects | spring-framework | 83078eb6fdc6def52902a4f6abc3a4d347ccb485.json | Add constants for application/cbor to MediaType
Closes gh-23042 | spring-web/src/main/java/org/springframework/http/converter/cbor/MappingJackson2CborHttpMessageConverter.java | @@ -30,7 +30,7 @@
* <a href="https://github.com/FasterXML/jackson-dataformats-binary/tree/master/cbor">
* the dedicated Jackson 2.x extension</a>.
*
- * <p>By default, this converter supports {@code "application/cbor"} media type. This can be
+ * <p>By default, this converter supports {@value MediaType#APPLICATIO... | true |
Other | spring-projects | spring-framework | 83078eb6fdc6def52902a4f6abc3a4d347ccb485.json | Add constants for application/cbor to MediaType
Closes gh-23042 | spring-webmvc/src/main/java/org/springframework/web/servlet/config/AnnotationDrivenBeanDefinitionParser.java | @@ -450,7 +450,7 @@ private Properties getDefaultMediaTypes() {
defaultMediaTypes.put("smile", "application/x-jackson-smile");
}
if (jackson2CborPresent) {
- defaultMediaTypes.put("cbor", "application/cbor");
+ defaultMediaTypes.put("cbor", MediaType.APPLICATION_CBOR_VALUE);
}
return defaultMediaTyp... | true |
Other | spring-projects | spring-framework | 83078eb6fdc6def52902a4f6abc3a4d347ccb485.json | Add constants for application/cbor to MediaType
Closes gh-23042 | spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupport.java | @@ -427,7 +427,7 @@ protected Map<String, MediaType> getDefaultMediaTypes() {
map.put("smile", MediaType.valueOf("application/x-jackson-smile"));
}
if (jackson2CborPresent) {
- map.put("cbor", MediaType.valueOf("application/cbor"));
+ map.put("cbor", MediaType.APPLICATION_CBOR);
}
return map;
} | true |
Other | spring-projects | spring-framework | 1cfedb20b89310a4b7cc9d0e4e5e24e79d7921f9.json | Add new constructor to JettyClientHttpConnector
This commit adds a new constructor to `JettyClientHttpConnector` and
deprecates another one. Jetty is not creating `HttpClient` instances
using a builder API, but rather setting immutable configuration at
constructor time and using setters for the rest.
This commit addr... | spring-web/src/main/java/org/springframework/http/client/reactive/JettyClientHttpConnector.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.
@@ -57,25 +57,38 @@ public JettyClientHttpConne... | false |
Other | spring-projects | spring-framework | c39c4211df15500996142a265d7afcc31c23c6f8.json | Introduce support for sorted Properties
This commit introduces an internal SortedProperties class that is a
specialization of java.util.Properties which sorts properties
alphanumerically based on their keys.
This can be useful when storing a java.util.Properties instance in a
properties file, since it allows such fil... | spring-core/src/main/java/org/springframework/core/CollectionFactory.java | @@ -346,6 +346,50 @@ public String getProperty(String key) {
};
}
+ /**
+ * Create a variant of {@link java.util.Properties} that sorts properties
+ * alphanumerically based on their keys.
+ *
+ * <p>This can be useful when storing the {@link Properties} instance in a
+ * properties file, since it allows su... | true |
Other | spring-projects | spring-framework | c39c4211df15500996142a265d7afcc31c23c6f8.json | Introduce support for sorted Properties
This commit introduces an internal SortedProperties class that is a
specialization of java.util.Properties which sorts properties
alphanumerically based on their keys.
This can be useful when storing a java.util.Properties instance in a
properties file, since it allows such fil... | spring-core/src/main/java/org/springframework/core/SortedProperties.java | @@ -0,0 +1,161 @@
+/*
+ * Copyright 2002-2019 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | c39c4211df15500996142a265d7afcc31c23c6f8.json | Introduce support for sorted Properties
This commit introduces an internal SortedProperties class that is a
specialization of java.util.Properties which sorts properties
alphanumerically based on their keys.
This can be useful when storing a java.util.Properties instance in a
properties file, since it allows such fil... | spring-core/src/test/java/org/springframework/core/SortedPropertiesTests.java | @@ -0,0 +1,213 @@
+/*
+ * Copyright 2002-2019 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 4e4145ac27d15a8078c1f1b468b5fd61ec332d21.json | Avoid unnecessary call to get message type
Closes gh-23040 | spring-messaging/src/main/java/org/springframework/messaging/simp/broker/SimpleBrokerMessageHandler.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.
@@ -289,7 +289,6 @@ public void stopInternal() ... | false |
Other | spring-projects | spring-framework | 09db8881bba81cdf7a41565b97f055485ff8e96b.json | Fix Checkstyle violation | spring-webmvc/src/main/java/org/springframework/web/servlet/view/RedirectView.java | @@ -23,7 +23,6 @@
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
-import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.regex.Matcher; | false |
Other | spring-projects | spring-framework | f47481749bb9d00a9e8b88c46c787c209856e01d.json | Fix Checkstyle violation | spring-jdbc/src/test/java/org/springframework/jdbc/datasource/init/ScriptUtilsUnitTests.java | @@ -125,7 +125,7 @@ public void readAndSplitScriptContainingCommentsWithWindowsLineEnding() throws E
String script = readScript("test-data-with-comments.sql").replaceAll("\n", "\r\n");
splitScriptContainingComments(script);
}
-
+
private void splitScriptContainingComments(String script) throws Exception {
... | false |
Other | spring-projects | spring-framework | 771a05e8787bac36304670882d72902c7020035f.json | Fix ScriptUtils for MS Windows line ending
Prior to this commit, ScriptUtils did not properly split SQL
scripts that contained line endings for MS Windows.
Closes gh-23019 | spring-jdbc/src/main/java/org/springframework/jdbc/datasource/init/ScriptUtils.java | @@ -234,7 +234,7 @@ else if (script.startsWith(blockCommentStartDelimiter, i)) {
"Missing block comment end delimiter: " + blockCommentEndDelimiter, resource);
}
}
- else if (c == ' ' || c == '\n' || c == '\t') {
+ else if (c == ' ' || c == '\r' || c == '\n' || c == '\t') {
// Avoid mult... | true |
Other | spring-projects | spring-framework | 771a05e8787bac36304670882d72902c7020035f.json | Fix ScriptUtils for MS Windows line ending
Prior to this commit, ScriptUtils did not properly split SQL
scripts that contained line endings for MS Windows.
Closes gh-23019 | spring-jdbc/src/test/java/org/springframework/jdbc/datasource/init/ScriptUtilsUnitTests.java | @@ -132,6 +132,25 @@ public void readAndSplitScriptContainingComments() throws Exception {
assertEquals("statement 4 not split correctly", statement4, statements.get(3));
}
+ @Test
+ public void readAndSplitScriptContainingCommentsWithWindowsLineEnding() throws Exception {
+ String script = readScript("test-dat... | true |
Other | spring-projects | spring-framework | e09c5fd9e567d6e9058205789e7bb3ecf54a87fb.json | Use TaskExecutor instead of ThreadPoolTaskExecutor
Closes gh-22943 | spring-messaging/src/main/java/org/springframework/messaging/simp/config/AbstractMessageBrokerConfiguration.java | @@ -28,6 +28,7 @@
import org.springframework.context.ApplicationContextAware;
import org.springframework.context.annotation.Bean;
import org.springframework.context.event.SmartApplicationListener;
+import org.springframework.core.task.TaskExecutor;
import org.springframework.lang.Nullable;
import org.springframewo... | true |
Other | spring-projects | spring-framework | e09c5fd9e567d6e9058205789e7bb3ecf54a87fb.json | Use TaskExecutor instead of ThreadPoolTaskExecutor
Closes gh-22943 | spring-websocket/src/main/java/org/springframework/web/socket/config/WebSocketMessageBrokerStats.java | @@ -20,12 +20,12 @@
import java.time.Instant;
import java.util.concurrent.Executor;
import java.util.concurrent.ScheduledFuture;
-import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import o... | true |
Other | spring-projects | spring-framework | 438d3710d3f3e2e5d2b7507afec314bc6051cbee.json | Detect MimeType via ConnectionSetupPayload
Closes gh-23012 | spring-messaging/spring-messaging.gradle | @@ -7,7 +7,7 @@ dependencyManagement {
}
}
-def rsocketVersion = "0.12.2-RC2"
+def rsocketVersion = "0.12.2-RC3-SNAPSHOT"
dependencies {
compile(project(":spring-beans")) | true |
Other | spring-projects | spring-framework | 438d3710d3f3e2e5d2b7507afec314bc6051cbee.json | Detect MimeType via ConnectionSetupPayload
Closes gh-23012 | spring-messaging/src/main/java/org/springframework/messaging/rsocket/MessageHandlerAcceptor.java | @@ -16,6 +16,7 @@
package org.springframework.messaging.rsocket;
+import java.util.function.BiFunction;
import java.util.function.Function;
import io.rsocket.ConnectionSetupPayload;
@@ -26,6 +27,8 @@
import org.springframework.lang.Nullable;
import org.springframework.messaging.Message;
import org.springfra... | true |
Other | spring-projects | spring-framework | 438d3710d3f3e2e5d2b7507afec314bc6051cbee.json | Detect MimeType via ConnectionSetupPayload
Closes gh-23012 | spring-messaging/src/main/java/org/springframework/messaging/rsocket/MessagingRSocket.java | @@ -41,9 +41,7 @@
import org.springframework.messaging.support.MessageHeaderAccessor;
import org.springframework.util.Assert;
import org.springframework.util.MimeType;
-import org.springframework.util.MimeTypeUtils;
import org.springframework.util.RouteMatcher;
-import org.springframework.util.StringUtils;
/**
... | true |
Other | spring-projects | spring-framework | bd910fc62b87b052968cd5a52458159d9fb6333e.json | Fix checkstyle errors | spring-webflux/src/test/java/org/springframework/web/reactive/result/view/AbstractViewTests.java | @@ -37,7 +37,9 @@
import org.springframework.web.reactive.BindingContext;
import org.springframework.web.server.ServerWebExchange;
-import static org.junit.Assert.*;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNull;
/**
* Un... | false |
Other | spring-projects | spring-framework | ed2a3bd451ca8a330bb1ef7fb5e9f06a2fb5793c.json | Take advantage of Encoder#encodeValue
EncoderHttpMessageWriter takes advantage of the Encoder#encodeValue
that's new in 5.2 in order to produce a Mono<DataBuffer> instead of
producing a Flux<DataBuffer> and then using flux.singleOrEmpty().
Closes gh-22952 | spring-web/src/main/java/org/springframework/http/codec/EncoderHttpMessageWriter.java | @@ -29,8 +29,8 @@
import org.springframework.core.codec.Encoder;
import org.springframework.core.codec.Hints;
import org.springframework.core.io.buffer.DataBuffer;
+import org.springframework.core.io.buffer.DataBufferFactory;
import org.springframework.core.io.buffer.PooledDataBuffer;
-import org.springframework.ht... | true |
Other | spring-projects | spring-framework | ed2a3bd451ca8a330bb1ef7fb5e9f06a2fb5793c.json | Take advantage of Encoder#encodeValue
EncoderHttpMessageWriter takes advantage of the Encoder#encodeValue
that's new in 5.2 in order to produce a Mono<DataBuffer> instead of
producing a Flux<DataBuffer> and then using flux.singleOrEmpty().
Closes gh-22952 | spring-web/src/main/java/org/springframework/web/util/pattern/PathPatternRouteMatcher.java | @@ -103,4 +103,4 @@ public String value() {
}
}
-}
\ No newline at end of file
+} | true |
Other | spring-projects | spring-framework | ed2a3bd451ca8a330bb1ef7fb5e9f06a2fb5793c.json | Take advantage of Encoder#encodeValue
EncoderHttpMessageWriter takes advantage of the Encoder#encodeValue
that's new in 5.2 in order to produce a Mono<DataBuffer> instead of
producing a Flux<DataBuffer> and then using flux.singleOrEmpty().
Closes gh-22952 | spring-web/src/test/java/org/springframework/http/codec/EncoderHttpMessageWriterTests.java | @@ -84,13 +84,15 @@ public void setUp() throws Exception {
@Test
public void getWritableMediaTypes() {
- HttpMessageWriter<?> writer = getWriter(MimeTypeUtils.TEXT_HTML, MimeTypeUtils.TEXT_XML);
+ configureEncoder(MimeTypeUtils.TEXT_HTML, MimeTypeUtils.TEXT_XML);
+ HttpMessageWriter<?> writer = new EncoderHttp... | true |
Other | spring-projects | spring-framework | ffd7cffa1403259b78e657c338e30e580e1a4cd6.json | Fix typo in HttpHeaders
Closes gh-22976 | spring-web/src/main/java/org/springframework/http/HttpHeaders.java | @@ -869,7 +869,7 @@ public ContentDisposition getContentDisposition() {
/**
* Set the {@link Locale} of the content language,
* as specified by the {@literal Content-Language} header.
- * <p>Use {@code set(CONTENT_LANGUAGE, ...)} if you need
+ * <p>Use {@code set(CONTENT_LANGUAGE, list)} if you need
* to s... | false |
Other | spring-projects | spring-framework | e7cca7792d9281aacecb422bc51a758d67d27e6c.json | Add way to override default multipartReader
This commit introduces a way to override the default multipart reader,
for instance to the SynchronossPartHttpMessageReader. | spring-web/src/main/java/org/springframework/http/codec/ServerCodecConfigurer.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.
@@ -17,6 +17,7 @@
package org.springframework.... | true |
Other | spring-projects | spring-framework | e7cca7792d9281aacecb422bc51a758d67d27e6c.json | Add way to override default multipartReader
This commit introduces a way to override the default multipart reader,
for instance to the SynchronossPartHttpMessageReader. | spring-web/src/main/java/org/springframework/http/codec/support/ServerDefaultCodecsImpl.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.
@@ -20,12 +20,13 @@
import org.springframework... | true |
Other | spring-projects | spring-framework | e7cca7792d9281aacecb422bc51a758d67d27e6c.json | Add way to override default multipartReader
This commit introduces a way to override the default multipart reader,
for instance to the SynchronossPartHttpMessageReader. | spring-web/src/test/java/org/springframework/http/codec/support/ServerCodecConfigurerTests.java | @@ -52,16 +52,16 @@
import org.springframework.http.codec.json.Jackson2JsonEncoder;
import org.springframework.http.codec.json.Jackson2SmileDecoder;
import org.springframework.http.codec.json.Jackson2SmileEncoder;
+import org.springframework.http.codec.multipart.DefaultMultipartMessageReader;
import org.springframe... | true |
Other | spring-projects | spring-framework | e625ace8c8c919b3db16cf02ba1ddee9ce9db452.json | Add reference counting for UndertowDataBuffer
This commit adds proper reference counting to the UndertowDataBuffer. | spring-web/src/main/java/org/springframework/http/server/reactive/UndertowServerHttpRequest.java | @@ -24,6 +24,7 @@
import java.net.URISyntaxException;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
+import java.util.concurrent.atomic.AtomicInteger;
import java.util.function.IntPredicate;
import javax.net.ssl.SSLSession;
@@ -211,31 +212,45 @@ private static class UndertowDataBuffer implements P... | false |
Other | spring-projects | spring-framework | cdd346222c1325ff0197159bc4e2ac5e7568a9e3.json | Add reference counting for UndertowDataBuffer
This commit adds proper reference counting to the UndertowDataBuffer. | spring-web/src/main/java/org/springframework/http/server/reactive/UndertowServerHttpRequest.java | @@ -24,6 +24,7 @@
import java.net.URISyntaxException;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
+import java.util.concurrent.atomic.AtomicInteger;
import java.util.function.IntPredicate;
import javax.net.ssl.SSLSession;
@@ -211,31 +212,45 @@ private static class UndertowDataBuffer implements P... | false |
Other | spring-projects | spring-framework | 7fbf3f97cdeffd7e60a7dc9b19ca59ce73cd1cea.json | Add SimpleAnnotationMeta classes and readers
Replace the existing ASM based readers with new implementations that
also support MergedAnnotations. The meta-data classes themselves are
now immutable, and constructed via separate reader classes.
The `SimpleMetadataReader` class has been updated to return the new
classes... | spring-core/src/main/java/org/springframework/core/type/classreading/AbstractRecursiveAnnotationVisitor.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.
@@ -39,6 +39,7 @@
* @author Sam Brannen
* @... | true |
Other | spring-projects | spring-framework | 7fbf3f97cdeffd7e60a7dc9b19ca59ce73cd1cea.json | Add SimpleAnnotationMeta classes and readers
Replace the existing ASM based readers with new implementations that
also support MergedAnnotations. The meta-data classes themselves are
now immutable, and constructed via separate reader classes.
The `SimpleMetadataReader` class has been updated to return the new
classes... | spring-core/src/main/java/org/springframework/core/type/classreading/AnnotationAttributesReadingVisitor.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.
@@ -42,6 +42,7 @@
* @author Sam Brannen
* @... | true |
Other | spring-projects | spring-framework | 7fbf3f97cdeffd7e60a7dc9b19ca59ce73cd1cea.json | Add SimpleAnnotationMeta classes and readers
Replace the existing ASM based readers with new implementations that
also support MergedAnnotations. The meta-data classes themselves are
now immutable, and constructed via separate reader classes.
The `SimpleMetadataReader` class has been updated to return the new
classes... | spring-core/src/main/java/org/springframework/core/type/classreading/AnnotationMetadataReadingVisitor.java | @@ -49,6 +49,7 @@
* @author Sam Brannen
* @since 2.5
*/
+@Deprecated
public class AnnotationMetadataReadingVisitor extends ClassMetadataReadingVisitor implements AnnotationMetadata {
@Nullable | true |
Other | spring-projects | spring-framework | 7fbf3f97cdeffd7e60a7dc9b19ca59ce73cd1cea.json | Add SimpleAnnotationMeta classes and readers
Replace the existing ASM based readers with new implementations that
also support MergedAnnotations. The meta-data classes themselves are
now immutable, and constructed via separate reader classes.
The `SimpleMetadataReader` class has been updated to return the new
classes... | spring-core/src/main/java/org/springframework/core/type/classreading/AnnotationReadingVisitorUtils.java | @@ -42,6 +42,7 @@
* @author Sam Brannen
* @since 4.0
*/
+@Deprecated
abstract class AnnotationReadingVisitorUtils {
public static AnnotationAttributes convertClassValues(Object annotatedElement, | true |
Other | spring-projects | spring-framework | 7fbf3f97cdeffd7e60a7dc9b19ca59ce73cd1cea.json | Add SimpleAnnotationMeta classes and readers
Replace the existing ASM based readers with new implementations that
also support MergedAnnotations. The meta-data classes themselves are
now immutable, and constructed via separate reader classes.
The `SimpleMetadataReader` class has been updated to return the new
classes... | spring-core/src/main/java/org/springframework/core/type/classreading/ClassMetadataReadingVisitor.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.
@@ -43,6 +43,7 @@
* @author Chris Beams
* @... | true |
Other | spring-projects | spring-framework | 7fbf3f97cdeffd7e60a7dc9b19ca59ce73cd1cea.json | Add SimpleAnnotationMeta classes and readers
Replace the existing ASM based readers with new implementations that
also support MergedAnnotations. The meta-data classes themselves are
now immutable, and constructed via separate reader classes.
The `SimpleMetadataReader` class has been updated to return the new
classes... | spring-core/src/main/java/org/springframework/core/type/classreading/MergedAnnotationReadingVisitor.java | @@ -0,0 +1,204 @@
+/*
+ * Copyright 2002-2019 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 7fbf3f97cdeffd7e60a7dc9b19ca59ce73cd1cea.json | Add SimpleAnnotationMeta classes and readers
Replace the existing ASM based readers with new implementations that
also support MergedAnnotations. The meta-data classes themselves are
now immutable, and constructed via separate reader classes.
The `SimpleMetadataReader` class has been updated to return the new
classes... | spring-core/src/main/java/org/springframework/core/type/classreading/MethodMetadataReadingVisitor.java | @@ -45,6 +45,7 @@
* @author Phillip Webb
* @since 3.0
*/
+@Deprecated
public class MethodMetadataReadingVisitor extends MethodVisitor implements MethodMetadata {
protected final String methodName; | true |
Other | spring-projects | spring-framework | 7fbf3f97cdeffd7e60a7dc9b19ca59ce73cd1cea.json | Add SimpleAnnotationMeta classes and readers
Replace the existing ASM based readers with new implementations that
also support MergedAnnotations. The meta-data classes themselves are
now immutable, and constructed via separate reader classes.
The `SimpleMetadataReader` class has been updated to return the new
classes... | spring-core/src/main/java/org/springframework/core/type/classreading/RecursiveAnnotationArrayVisitor.java | @@ -34,6 +34,7 @@
* @author Juergen Hoeller
* @since 3.1.1
*/
+@Deprecated
class RecursiveAnnotationArrayVisitor extends AbstractRecursiveAnnotationVisitor {
private final String attributeName; | true |
Other | spring-projects | spring-framework | 7fbf3f97cdeffd7e60a7dc9b19ca59ce73cd1cea.json | Add SimpleAnnotationMeta classes and readers
Replace the existing ASM based readers with new implementations that
also support MergedAnnotations. The meta-data classes themselves are
now immutable, and constructed via separate reader classes.
The `SimpleMetadataReader` class has been updated to return the new
classes... | spring-core/src/main/java/org/springframework/core/type/classreading/RecursiveAnnotationAttributesVisitor.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.
@@ -28,6 +28,7 @@
* @author Juergen Hoeller
... | true |
Other | spring-projects | spring-framework | 7fbf3f97cdeffd7e60a7dc9b19ca59ce73cd1cea.json | Add SimpleAnnotationMeta classes and readers
Replace the existing ASM based readers with new implementations that
also support MergedAnnotations. The meta-data classes themselves are
now immutable, and constructed via separate reader classes.
The `SimpleMetadataReader` class has been updated to return the new
classes... | spring-core/src/main/java/org/springframework/core/type/classreading/SimpleAnnotationMetadata.java | @@ -0,0 +1,157 @@
+/*
+ * Copyright 2002-2019 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 7fbf3f97cdeffd7e60a7dc9b19ca59ce73cd1cea.json | Add SimpleAnnotationMeta classes and readers
Replace the existing ASM based readers with new implementations that
also support MergedAnnotations. The meta-data classes themselves are
now immutable, and constructed via separate reader classes.
The `SimpleMetadataReader` class has been updated to return the new
classes... | spring-core/src/main/java/org/springframework/core/type/classreading/SimpleAnnotationMetadataReadingVistor.java | @@ -0,0 +1,197 @@
+/*
+ * Copyright 2002-2019 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 7fbf3f97cdeffd7e60a7dc9b19ca59ce73cd1cea.json | Add SimpleAnnotationMeta classes and readers
Replace the existing ASM based readers with new implementations that
also support MergedAnnotations. The meta-data classes themselves are
now immutable, and constructed via separate reader classes.
The `SimpleMetadataReader` class has been updated to return the new
classes... | spring-core/src/main/java/org/springframework/core/type/classreading/SimpleMetadataReader.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.
@@ -31,45 +31,39 @@
* {@link MetadataReader} ... | true |
Other | spring-projects | spring-framework | 7fbf3f97cdeffd7e60a7dc9b19ca59ce73cd1cea.json | Add SimpleAnnotationMeta classes and readers
Replace the existing ASM based readers with new implementations that
also support MergedAnnotations. The meta-data classes themselves are
now immutable, and constructed via separate reader classes.
The `SimpleMetadataReader` class has been updated to return the new
classes... | spring-core/src/main/java/org/springframework/core/type/classreading/SimpleMethodMetadata.java | @@ -0,0 +1,95 @@
+/*
+ * Copyright 2002-2019 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 7fbf3f97cdeffd7e60a7dc9b19ca59ce73cd1cea.json | Add SimpleAnnotationMeta classes and readers
Replace the existing ASM based readers with new implementations that
also support MergedAnnotations. The meta-data classes themselves are
now immutable, and constructed via separate reader classes.
The `SimpleMetadataReader` class has been updated to return the new
classes... | spring-core/src/main/java/org/springframework/core/type/classreading/SimpleMethodMetadataReadingVistor.java | @@ -0,0 +1,162 @@
+/*
+ * Copyright 2002-2019 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 7fbf3f97cdeffd7e60a7dc9b19ca59ce73cd1cea.json | Add SimpleAnnotationMeta classes and readers
Replace the existing ASM based readers with new implementations that
also support MergedAnnotations. The meta-data classes themselves are
now immutable, and constructed via separate reader classes.
The `SimpleMetadataReader` class has been updated to return the new
classes... | spring-core/src/test/java/org/springframework/core/type/classreading/AnnotationMetadataReadingVisitorTests.java | @@ -35,6 +35,7 @@
*
* @author Phillip Webb
*/
+@SuppressWarnings("deprecation")
public class AnnotationMetadataReadingVisitorTests
extends AbstractAnnotationMetadataTests {
| true |
Other | spring-projects | spring-framework | 7fbf3f97cdeffd7e60a7dc9b19ca59ce73cd1cea.json | Add SimpleAnnotationMeta classes and readers
Replace the existing ASM based readers with new implementations that
also support MergedAnnotations. The meta-data classes themselves are
now immutable, and constructed via separate reader classes.
The `SimpleMetadataReader` class has been updated to return the new
classes... | spring-core/src/test/java/org/springframework/core/type/classreading/MergedAnnotationMetadataVisitorTests.java | @@ -0,0 +1,264 @@
+/*
+ * 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 | 7fbf3f97cdeffd7e60a7dc9b19ca59ce73cd1cea.json | Add SimpleAnnotationMeta classes and readers
Replace the existing ASM based readers with new implementations that
also support MergedAnnotations. The meta-data classes themselves are
now immutable, and constructed via separate reader classes.
The `SimpleMetadataReader` class has been updated to return the new
classes... | spring-core/src/test/java/org/springframework/core/type/classreading/SimpleAnnotationMetadataTests.java | @@ -0,0 +1,43 @@
+/*
+ * 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 | 7fbf3f97cdeffd7e60a7dc9b19ca59ce73cd1cea.json | Add SimpleAnnotationMeta classes and readers
Replace the existing ASM based readers with new implementations that
also support MergedAnnotations. The meta-data classes themselves are
now immutable, and constructed via separate reader classes.
The `SimpleMetadataReader` class has been updated to return the new
classes... | spring-core/src/test/java/org/springframework/core/type/classreading/SimpleMethodMetadataTests.java | @@ -0,0 +1,43 @@
+/*
+ * 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 | 8c2ccfe6a35381d09ab52060adf3057f08ae808e.json | Add MergedAnnotations support to meta-data classes
Add `AnnotatedTypeMetaData.getAnnotations()` that can be used to access
annotation details using the `MergedAnnotations` interface.
Where possible, the existing annotation methods have been migrated to
call `getAnnotation()`, rather than needing their own implementat... | spring-core/src/main/java/org/springframework/core/type/AnnotatedTypeMetadata.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2015 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,15 @@
package org.springframewo... | true |
Other | spring-projects | spring-framework | 8c2ccfe6a35381d09ab52060adf3057f08ae808e.json | Add MergedAnnotations support to meta-data classes
Add `AnnotatedTypeMetaData.getAnnotations()` that can be used to access
annotation details using the `MergedAnnotations` interface.
Where possible, the existing annotation methods have been migrated to
call `getAnnotation()`, rather than needing their own implementat... | spring-core/src/main/java/org/springframework/core/type/AnnotationMetadata.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.
@@ -16,7 +16,14 @@
package org.springframewo... | true |
Other | spring-projects | spring-framework | 8c2ccfe6a35381d09ab52060adf3057f08ae808e.json | Add MergedAnnotations support to meta-data classes
Add `AnnotatedTypeMetaData.getAnnotations()` that can be used to access
annotation details using the `MergedAnnotations` interface.
Where possible, the existing annotation methods have been migrated to
call `getAnnotation()`, rather than needing their own implementat... | spring-core/src/main/java/org/springframework/core/type/StandardAnnotationMetadata.java | @@ -24,7 +24,11 @@
import java.util.Set;
import org.springframework.core.annotation.AnnotatedElementUtils;
+import org.springframework.core.annotation.AnnotationFilter;
import org.springframework.core.annotation.AnnotationUtils;
+import org.springframework.core.annotation.MergedAnnotations;
+import org.springframe... | true |
Other | spring-projects | spring-framework | 8c2ccfe6a35381d09ab52060adf3057f08ae808e.json | Add MergedAnnotations support to meta-data classes
Add `AnnotatedTypeMetaData.getAnnotations()` that can be used to access
annotation details using the `MergedAnnotations` interface.
Where possible, the existing annotation methods have been migrated to
call `getAnnotation()`, rather than needing their own implementat... | spring-core/src/main/java/org/springframework/core/type/StandardMethodMetadata.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2015 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.
@@ -21,6 +21,10 @@
import java.util.Map;
im... | true |
Other | spring-projects | spring-framework | 8c2ccfe6a35381d09ab52060adf3057f08ae808e.json | Add MergedAnnotations support to meta-data classes
Add `AnnotatedTypeMetaData.getAnnotations()` that can be used to access
annotation details using the `MergedAnnotations` interface.
Where possible, the existing annotation methods have been migrated to
call `getAnnotation()`, rather than needing their own implementat... | spring-core/src/main/java/org/springframework/core/type/classreading/AnnotationMetadataReadingVisitor.java | @@ -30,6 +30,7 @@
import org.springframework.asm.Type;
import org.springframework.core.annotation.AnnotationAttributes;
import org.springframework.core.annotation.AnnotationUtils;
+import org.springframework.core.annotation.MergedAnnotations;
import org.springframework.core.type.AnnotationMetadata;
import org.spri... | true |
Other | spring-projects | spring-framework | 8c2ccfe6a35381d09ab52060adf3057f08ae808e.json | Add MergedAnnotations support to meta-data classes
Add `AnnotatedTypeMetaData.getAnnotations()` that can be used to access
annotation details using the `MergedAnnotations` interface.
Where possible, the existing annotation methods have been migrated to
call `getAnnotation()`, rather than needing their own implementat... | spring-core/src/main/java/org/springframework/core/type/classreading/MethodMetadataReadingVisitor.java | @@ -27,6 +27,7 @@
import org.springframework.asm.SpringAsmInfo;
import org.springframework.asm.Type;
import org.springframework.core.annotation.AnnotationAttributes;
+import org.springframework.core.annotation.MergedAnnotations;
import org.springframework.core.type.MethodMetadata;
import org.springframework.lang.N... | true |
Other | spring-projects | spring-framework | 8c2ccfe6a35381d09ab52060adf3057f08ae808e.json | Add MergedAnnotations support to meta-data classes
Add `AnnotatedTypeMetaData.getAnnotations()` that can be used to access
annotation details using the `MergedAnnotations` interface.
Where possible, the existing annotation methods have been migrated to
call `getAnnotation()`, rather than needing their own implementat... | spring-core/src/test/java/org/springframework/core/type/AbstractAnnotationMetadataTests.java | @@ -21,6 +21,7 @@
import org.junit.Test;
+import org.springframework.core.annotation.MergedAnnotation;
import org.springframework.core.type.AbstractAnnotationMetadataTests.TestMemberClass.TestMemberClassInnerClass;
import org.springframework.core.type.AbstractAnnotationMetadataTests.TestMemberClass.TestMemberCla... | true |
Other | spring-projects | spring-framework | 8c2ccfe6a35381d09ab52060adf3057f08ae808e.json | Add MergedAnnotations support to meta-data classes
Add `AnnotatedTypeMetaData.getAnnotations()` that can be used to access
annotation details using the `MergedAnnotations` interface.
Where possible, the existing annotation methods have been migrated to
call `getAnnotation()`, rather than needing their own implementat... | spring-core/src/test/java/org/springframework/core/type/AbstractMethodMetadataTests.java | @@ -21,6 +21,7 @@
import org.junit.Test;
+import org.springframework.core.annotation.MergedAnnotation;
import org.springframework.util.MultiValueMap;
import static org.assertj.core.api.Assertions.*;
@@ -91,6 +92,16 @@ public void isOverridableWhenNonOverridableReturnsFalse() {
assertThat(getTagged(WithPriva... | true |
Other | spring-projects | spring-framework | 8c2ccfe6a35381d09ab52060adf3057f08ae808e.json | Add MergedAnnotations support to meta-data classes
Add `AnnotatedTypeMetaData.getAnnotations()` that can be used to access
annotation details using the `MergedAnnotations` interface.
Where possible, the existing annotation methods have been migrated to
call `getAnnotation()`, rather than needing their own implementat... | spring-core/src/test/java/org/springframework/core/type/classreading/AnnotationMetadataReadingVisitorTests.java | @@ -25,8 +25,11 @@
import org.springframework.core.io.ResourceLoader;
import org.springframework.core.type.AbstractAnnotationMetadataTests;
import org.springframework.core.type.AnnotationMetadata;
+import org.springframework.core.type.classreading.AnnotationMetadataReadingVisitor;
import org.springframework.util.Cl... | true |
Other | spring-projects | spring-framework | 8c2ccfe6a35381d09ab52060adf3057f08ae808e.json | Add MergedAnnotations support to meta-data classes
Add `AnnotatedTypeMetaData.getAnnotations()` that can be used to access
annotation details using the `MergedAnnotations` interface.
Where possible, the existing annotation methods have been migrated to
call `getAnnotation()`, rather than needing their own implementat... | spring-core/src/test/java/org/springframework/core/type/classreading/MethodMetadataReadingVisitorTests.java | @@ -25,13 +25,18 @@
import org.springframework.core.io.ResourceLoader;
import org.springframework.core.type.AbstractMethodMetadataTests;
import org.springframework.core.type.AnnotationMetadata;
+import org.springframework.core.type.classreading.AnnotationMetadataReadingVisitor;
+import org.springframework.core.type.... | true |
Other | spring-projects | spring-framework | 9738e4886c626145b60baa80a0bd0740246ebf0e.json | Use ReflectionUtils to get declared methods
Update `StandardAnnotationMetadata` to use `ReflectionUtils` when
obtaining declared methods. This update is primarily so that the common
method cache can be used.
Closes gh-22907 | spring-core/src/main/java/org/springframework/core/type/StandardAnnotationMetadata.java | @@ -27,6 +27,7 @@
import org.springframework.core.annotation.AnnotationUtils;
import org.springframework.lang.Nullable;
import org.springframework.util.MultiValueMap;
+import org.springframework.util.ReflectionUtils;
/**
* {@link AnnotationMetadata} implementation that uses standard reflection
@@ -151,7 +152,7 ... | false |
Other | spring-projects | spring-framework | 9d6cf57cb740660661c1804a41fe699f5d3b9faa.json | Add MergedAnnotations.of method
Add a factory method to `MergedAnnotation` that allows an instance to
be created for an explicit collection of root annotations. This method
will allow ASM based readers to expose a `MergedAnnotation` instance
that has root annotations loaded from bytecode, and meta-annotations
loaded u... | spring-core/src/main/java/org/springframework/core/annotation/MergedAnnotations.java | @@ -20,6 +20,7 @@
import java.lang.annotation.Inherited;
import java.lang.reflect.AnnotatedElement;
import java.lang.reflect.Method;
+import java.util.Collection;
import java.util.function.Predicate;
import java.util.stream.Stream;
@@ -368,6 +369,26 @@ static MergedAnnotations from(@Nullable Object source, Annot... | true |
Other | spring-projects | spring-framework | 9d6cf57cb740660661c1804a41fe699f5d3b9faa.json | Add MergedAnnotations.of method
Add a factory method to `MergedAnnotation` that allows an instance to
be created for an explicit collection of root annotations. This method
will allow ASM based readers to expose a `MergedAnnotation` instance
that has root annotations loaded from bytecode, and meta-annotations
loaded u... | spring-core/src/main/java/org/springframework/core/annotation/MergedAnnotationsCollection.java | @@ -0,0 +1,315 @@
+/*
+ * Copyright 2002-2019 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 9d6cf57cb740660661c1804a41fe699f5d3b9faa.json | Add MergedAnnotations.of method
Add a factory method to `MergedAnnotation` that allows an instance to
be created for an explicit collection of root annotations. This method
will allow ASM based readers to expose a `MergedAnnotation` instance
that has root annotations loaded from bytecode, and meta-annotations
loaded u... | spring-core/src/main/java/org/springframework/core/annotation/TypeMappedAnnotations.java | @@ -42,7 +42,10 @@ final class TypeMappedAnnotations implements MergedAnnotations {
private static final AnnotationFilter FILTER_ALL = (annotationType -> true);
- private static final MergedAnnotations NONE = new TypeMappedAnnotations(
+ /**
+ * Shared instance that can be used when there are no annotations.
+ ... | true |
Other | spring-projects | spring-framework | 9d6cf57cb740660661c1804a41fe699f5d3b9faa.json | Add MergedAnnotations.of method
Add a factory method to `MergedAnnotation` that allows an instance to
be created for an explicit collection of root annotations. This method
will allow ASM based readers to expose a `MergedAnnotation` instance
that has root annotations loaded from bytecode, and meta-annotations
loaded u... | spring-core/src/test/java/org/springframework/core/annotation/MergedAnnotationsCollectionTests.java | @@ -0,0 +1,312 @@
+/*
+ * 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 | 3b145a5a73ae4418d7d5ad2b0f10b0dd48ab3fcf.json | Add MergedAnnotation.getTypeHierarchy method
Add a `getTypeHierarchy()` method to `MergedAnnotation` that can be used
to return the full type hierarchy information. This method is
specifically designed to be used in combination with
`MergedAnnotationPredicates.unique`.
This update also allows us to delete the `parent... | spring-core/src/main/java/org/springframework/core/annotation/AnnotatedElementUtils.java | @@ -502,7 +502,7 @@ public static MultiValueMap<String, Object> getAllAnnotationAttributes(Annotated
Adapt[] adaptations = Adapt.values(classValuesAsString, nestedAnnotationsAsMap);
return getAnnotations(element).stream(annotationName)
- .filter(MergedAnnotationPredicates.unique(AnnotatedElementUtils::parent... | true |
Other | spring-projects | spring-framework | 3b145a5a73ae4418d7d5ad2b0f10b0dd48ab3fcf.json | Add MergedAnnotation.getTypeHierarchy method
Add a `getTypeHierarchy()` method to `MergedAnnotation` that can be used
to return the full type hierarchy information. This method is
specifically designed to be used in combination with
`MergedAnnotationPredicates.unique`.
This update also allows us to delete the `parent... | spring-core/src/main/java/org/springframework/core/annotation/AnnotationTypeMapping.java | @@ -57,6 +57,8 @@ final class AnnotationTypeMapping {
private final Class<? extends Annotation> annotationType;
+ private final List<Class<? extends Annotation>> annotationTypeHierarchy;
+
@Nullable
private final Annotation annotation;
@@ -84,6 +86,9 @@ final class AnnotationTypeMapping {
this.root = (pa... | true |
Other | spring-projects | spring-framework | 3b145a5a73ae4418d7d5ad2b0f10b0dd48ab3fcf.json | Add MergedAnnotation.getTypeHierarchy method
Add a `getTypeHierarchy()` method to `MergedAnnotation` that can be used
to return the full type hierarchy information. This method is
specifically designed to be used in combination with
`MergedAnnotationPredicates.unique`.
This update also allows us to delete the `parent... | spring-core/src/main/java/org/springframework/core/annotation/MergedAnnotation.java | @@ -21,6 +21,7 @@
import java.lang.reflect.AnnotatedElement;
import java.lang.reflect.Proxy;
import java.util.EnumSet;
+import java.util.List;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Optional;
@@ -72,6 +73,15 @@
*/
Class<A> getType();
+ /**
+ * Return a complete typ... | true |
Other | spring-projects | spring-framework | 3b145a5a73ae4418d7d5ad2b0f10b0dd48ab3fcf.json | Add MergedAnnotation.getTypeHierarchy method
Add a `getTypeHierarchy()` method to `MergedAnnotation` that can be used
to return the full type hierarchy information. This method is
specifically designed to be used in combination with
`MergedAnnotationPredicates.unique`.
This update also allows us to delete the `parent... | spring-core/src/main/java/org/springframework/core/annotation/MissingMergedAnnotation.java | @@ -18,6 +18,7 @@
import java.lang.annotation.Annotation;
import java.util.Collections;
+import java.util.List;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Optional;
@@ -49,6 +50,11 @@ public Class<A> getType() {
throw new NoSuchElementException("Unable to get type for miss... | true |
Other | spring-projects | spring-framework | 3b145a5a73ae4418d7d5ad2b0f10b0dd48ab3fcf.json | Add MergedAnnotation.getTypeHierarchy method
Add a `getTypeHierarchy()` method to `MergedAnnotation` that can be used
to return the full type hierarchy information. This method is
specifically designed to be used in combination with
`MergedAnnotationPredicates.unique`.
This update also allows us to delete the `parent... | spring-core/src/main/java/org/springframework/core/annotation/TypeMappedAnnotation.java | @@ -21,6 +21,7 @@
import java.lang.reflect.Method;
import java.util.Collections;
import java.util.LinkedHashMap;
+import java.util.List;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Optional;
@@ -139,6 +140,11 @@ public Class<A> getType() {
return (Class<A>) this.mapping.getA... | true |
Other | spring-projects | spring-framework | 3b145a5a73ae4418d7d5ad2b0f10b0dd48ab3fcf.json | Add MergedAnnotation.getTypeHierarchy method
Add a `getTypeHierarchy()` method to `MergedAnnotation` that can be used
to return the full type hierarchy information. This method is
specifically designed to be used in combination with
`MergedAnnotationPredicates.unique`.
This update also allows us to delete the `parent... | spring-core/src/test/java/org/springframework/core/annotation/AnnotationTypeMappingsTests.java | @@ -245,6 +245,15 @@ public void getAnnotationTypeReturnsAnnotationType() {
assertThat(mappings.get(1).getAnnotationType()).isEqualTo(MappedTarget.class);
}
+ @Test
+ public void getAnnotationTypeHierarchyReturnsTypeHierarchy() {
+ AnnotationTypeMappings mappings = AnnotationTypeMappings.forAnnotationType(
+ ... | true |
Other | spring-projects | spring-framework | 3b145a5a73ae4418d7d5ad2b0f10b0dd48ab3fcf.json | Add MergedAnnotation.getTypeHierarchy method
Add a `getTypeHierarchy()` method to `MergedAnnotation` that can be used
to return the full type hierarchy information. This method is
specifically designed to be used in combination with
`MergedAnnotationPredicates.unique`.
This update also allows us to delete the `parent... | spring-core/src/test/java/org/springframework/core/annotation/MergedAnnotationsTests.java | @@ -170,6 +170,15 @@ public void getRootWhenDirect() {
assertThat(annotation.getRoot()).isSameAs(annotation);
}
+ @Test
+ public void getTypeHierarchy() {
+ MergedAnnotation<?> annotation = MergedAnnotations.from(
+ ComposedTransactionalComponentClass.class).get(
+ TransactionalComponent.class);
+ asse... | true |
Other | spring-projects | spring-framework | 3b145a5a73ae4418d7d5ad2b0f10b0dd48ab3fcf.json | Add MergedAnnotation.getTypeHierarchy method
Add a `getTypeHierarchy()` method to `MergedAnnotation` that can be used
to return the full type hierarchy information. This method is
specifically designed to be used in combination with
`MergedAnnotationPredicates.unique`.
This update also allows us to delete the `parent... | spring-core/src/test/java/org/springframework/core/annotation/MissingMergedAnnotationTests.java | @@ -44,6 +44,11 @@ public void getTypeThrowsNoSuchElementException() {
assertThatNoSuchElementException().isThrownBy(this.missing::getType);
}
+ @Test
+ public void getTypeHierarchyReturnsEmptyList() {
+ assertThat(this.missing.getTypeHierarchy()).isEmpty();
+ }
+
@Test
public void isPresentReturnsFalse() {... | true |
Other | spring-projects | spring-framework | f86affe404a344fda2face7f0f5aad9f36549e41.json | Extract integration test classes from package-info
Extract the inner classes from package-info into their own files to
prevent local build problems and to make them easier to find. | src/test/java/org/springframework/core/env/scan1/Config.java | @@ -0,0 +1,26 @@
+/*
+ * Copyright 2002-2019 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | f86affe404a344fda2face7f0f5aad9f36549e41.json | Extract integration test classes from package-info
Extract the inner classes from package-info into their own files to
prevent local build problems and to make them easier to find. | src/test/java/org/springframework/core/env/scan1/DevConfig.java | @@ -0,0 +1,32 @@
+/*
+ * Copyright 2002-2019 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | f86affe404a344fda2face7f0f5aad9f36549e41.json | Extract integration test classes from package-info
Extract the inner classes from package-info into their own files to
prevent local build problems and to make them easier to find. | src/test/java/org/springframework/core/env/scan1/ProdConfig.java | @@ -14,39 +14,20 @@
* limitations under the License.
*/
-/**
- * Mirrors the structure of beans and environment-specific config files
- * in EnvironmentIntegrationTests-context.xml
- */
-package org.springframework.core.env.scan1;
-import static org.springframework.core.env.EnvironmentSystemIntegrationTests.Con... | true |
Other | spring-projects | spring-framework | f86affe404a344fda2face7f0f5aad9f36549e41.json | Extract integration test classes from package-info
Extract the inner classes from package-info into their own files to
prevent local build problems and to make them easier to find. | src/test/java/org/springframework/core/env/scan2/DevBean.java | @@ -0,0 +1,25 @@
+/*
+ * Copyright 2002-2019 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | f86affe404a344fda2face7f0f5aad9f36549e41.json | Extract integration test classes from package-info
Extract the inner classes from package-info into their own files to
prevent local build problems and to make them easier to find. | src/test/java/org/springframework/core/env/scan2/ProdBean.java | @@ -14,24 +14,14 @@
* limitations under the License.
*/
-/**
- * Mirrors the structure of beans and environment-specific config files
- * in EnvironmentIntegrationTests-context.xml
- */
-package org.springframework.core.env.scan2;
-import static org.springframework.core.env.EnvironmentSystemIntegrationTests.Con... | true |
Other | spring-projects | spring-framework | 0e980324e6a9c19b43e698161ff73d0708285dd7.json | Add a space in the documentation index file | src/docs/asciidoc/index.adoc | @@ -9,7 +9,7 @@ https://github.com/spring-projects/spring-framework/wiki[*Github Wiki*].
****
[horizontal]
-<<overview.adoc#overview, Overview>> :: history, design philosophy,feedback,
+<<overview.adoc#overview, Overview>> :: history, design philosophy, feedback,
getting started.
<<core.adoc#spring-core, Core>> :... | false |
Other | spring-projects | spring-framework | 4aaec942c4a67bf96a39393bba83ec5b5ae2d040.json | Introduce HTTPS mappings in spring.schemas files
Closes gh-22903 | spring-aop/src/main/resources/META-INF/spring.schemas | @@ -8,3 +8,13 @@ http\://www.springframework.org/schema/aop/spring-aop-4.1.xsd=org/springframewor
http\://www.springframework.org/schema/aop/spring-aop-4.2.xsd=org/springframework/aop/config/spring-aop.xsd
http\://www.springframework.org/schema/aop/spring-aop-4.3.xsd=org/springframework/aop/config/spring-aop.xsd
htt... | true |
Other | spring-projects | spring-framework | 4aaec942c4a67bf96a39393bba83ec5b5ae2d040.json | Introduce HTTPS mappings in spring.schemas files
Closes gh-22903 | spring-beans/src/main/resources/META-INF/spring.schemas | @@ -28,3 +28,33 @@ http\://www.springframework.org/schema/util/spring-util-4.1.xsd=org/springframew
http\://www.springframework.org/schema/util/spring-util-4.2.xsd=org/springframework/beans/factory/xml/spring-util.xsd
http\://www.springframework.org/schema/util/spring-util-4.3.xsd=org/springframework/beans/factory/xm... | true |
Other | spring-projects | spring-framework | 4aaec942c4a67bf96a39393bba83ec5b5ae2d040.json | Introduce HTTPS mappings in spring.schemas files
Closes gh-22903 | spring-context/src/main/resources/META-INF/spring.schemas | @@ -42,3 +42,47 @@ http\://www.springframework.org/schema/cache/spring-cache-4.1.xsd=org/springfram
http\://www.springframework.org/schema/cache/spring-cache-4.2.xsd=org/springframework/cache/config/spring-cache.xsd
http\://www.springframework.org/schema/cache/spring-cache-4.3.xsd=org/springframework/cache/config/spr... | true |
Other | spring-projects | spring-framework | 4aaec942c4a67bf96a39393bba83ec5b5ae2d040.json | Introduce HTTPS mappings in spring.schemas files
Closes gh-22903 | spring-jdbc/src/main/resources/META-INF/spring.schemas | @@ -6,3 +6,11 @@ http\://www.springframework.org/schema/jdbc/spring-jdbc-4.1.xsd=org/springframew
http\://www.springframework.org/schema/jdbc/spring-jdbc-4.2.xsd=org/springframework/jdbc/config/spring-jdbc.xsd
http\://www.springframework.org/schema/jdbc/spring-jdbc-4.3.xsd=org/springframework/jdbc/config/spring-jdbc.... | true |
Other | spring-projects | spring-framework | 4aaec942c4a67bf96a39393bba83ec5b5ae2d040.json | Introduce HTTPS mappings in spring.schemas files
Closes gh-22903 | spring-jms/src/main/resources/META-INF/spring.schemas | @@ -7,3 +7,12 @@ http\://www.springframework.org/schema/jms/spring-jms-4.1.xsd=org/springframewor
http\://www.springframework.org/schema/jms/spring-jms-4.2.xsd=org/springframework/jms/config/spring-jms.xsd
http\://www.springframework.org/schema/jms/spring-jms-4.3.xsd=org/springframework/jms/config/spring-jms.xsd
htt... | true |
Other | spring-projects | spring-framework | 4aaec942c4a67bf96a39393bba83ec5b5ae2d040.json | Introduce HTTPS mappings in spring.schemas files
Closes gh-22903 | spring-oxm/src/main/resources/META-INF/spring.schemas | @@ -6,3 +6,11 @@ http\://www.springframework.org/schema/oxm/spring-oxm-4.1.xsd=org/springframewor
http\://www.springframework.org/schema/oxm/spring-oxm-4.2.xsd=org/springframework/oxm/config/spring-oxm.xsd
http\://www.springframework.org/schema/oxm/spring-oxm-4.3.xsd=org/springframework/oxm/config/spring-oxm.xsd
htt... | true |
Other | spring-projects | spring-framework | 4aaec942c4a67bf96a39393bba83ec5b5ae2d040.json | Introduce HTTPS mappings in spring.schemas files
Closes gh-22903 | spring-tx/src/main/resources/META-INF/spring.schemas | @@ -8,3 +8,13 @@ http\://www.springframework.org/schema/tx/spring-tx-4.1.xsd=org/springframework/
http\://www.springframework.org/schema/tx/spring-tx-4.2.xsd=org/springframework/transaction/config/spring-tx.xsd
http\://www.springframework.org/schema/tx/spring-tx-4.3.xsd=org/springframework/transaction/config/spring-t... | true |
Other | spring-projects | spring-framework | 4aaec942c4a67bf96a39393bba83ec5b5ae2d040.json | Introduce HTTPS mappings in spring.schemas files
Closes gh-22903 | spring-webmvc/src/main/resources/META-INF/spring.schemas | @@ -6,3 +6,11 @@ http\://www.springframework.org/schema/mvc/spring-mvc-4.1.xsd=org/springframewor
http\://www.springframework.org/schema/mvc/spring-mvc-4.2.xsd=org/springframework/web/servlet/config/spring-mvc.xsd
http\://www.springframework.org/schema/mvc/spring-mvc-4.3.xsd=org/springframework/web/servlet/config/spr... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.