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
62a3e414734b24d1801b34223df5faaae9e32b5f.json
Deprecate mutable methods of MethodParameter Deprecate all mutation methods in `MethodParameter` in favor of factory methods that return a new instance. Existing code that previously relied on mutation has been updated to use the replacement methods. Closes gh-23385
spring-messaging/src/main/java/org/springframework/messaging/handler/HandlerMethod.java
@@ -26,7 +26,6 @@ import org.springframework.beans.factory.BeanFactory; import org.springframework.core.BridgeMethodResolver; -import org.springframework.core.GenericTypeResolver; import org.springframework.core.MethodParameter; import org.springframework.core.annotation.AnnotatedElementUtils; import org.springf...
true
Other
spring-projects
spring-framework
62a3e414734b24d1801b34223df5faaae9e32b5f.json
Deprecate mutable methods of MethodParameter Deprecate all mutation methods in `MethodParameter` in favor of factory methods that return a new instance. Existing code that previously relied on mutation has been updated to use the replacement methods. Closes gh-23385
spring-web/src/main/java/org/springframework/web/method/HandlerMethod.java
@@ -30,7 +30,6 @@ import org.springframework.beans.factory.BeanFactory; import org.springframework.core.BridgeMethodResolver; -import org.springframework.core.GenericTypeResolver; import org.springframework.core.MethodParameter; import org.springframework.core.ResolvableType; import org.springframework.core.anno...
true
Other
spring-projects
spring-framework
89d150d3981aaec43bc17f195adfee80786560ab.json
Resolve factoryBeanClass if necessary Update `AbstractAutowireCapableBeanFactory.getTypeForFactoryBean` to use fallback to `determineTargetType` if the factory bean definition does not have a resolved class. This is required for the case where a `@Configuration` class is picked up via component scanning and has a bea...
spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractAutowireCapableBeanFactory.java
@@ -858,9 +858,16 @@ protected ResolvableType getTypeForFactoryBean(String beanName, // Try to obtain the FactoryBean's object type from its factory method // declaration without instantiating the containing bean at all. BeanDefinition factoryBeanDefinition = getBeanDefinition(factoryBeanName); - if (...
true
Other
spring-projects
spring-framework
89d150d3981aaec43bc17f195adfee80786560ab.json
Resolve factoryBeanClass if necessary Update `AbstractAutowireCapableBeanFactory.getTypeForFactoryBean` to use fallback to `determineTargetType` if the factory bean definition does not have a resolved class. This is required for the case where a `@Configuration` class is picked up via component scanning and has a bea...
spring-context/src/test/java/org/springframework/context/annotation/ConfigurationWithFactoryBeanBeanEarlyDeductionTests.java
@@ -28,6 +28,8 @@ import org.springframework.beans.factory.support.AbstractBeanFactory; import org.springframework.beans.factory.support.BeanDefinitionBuilder; import org.springframework.beans.factory.support.BeanDefinitionRegistry; +import org.springframework.beans.factory.support.GenericBeanDefinition; +import org...
true
Other
spring-projects
spring-framework
b03dd475984bd668bf48e3916d5fb0dacbec7dea.json
Remove duplicate assertion
spring-core/src/test/java/org/springframework/core/annotation/MergedAnnotationClassLoaderTests.java
@@ -82,7 +82,6 @@ public void synthesizedUsesCorrectClassLoader() throws Exception { Annotation utilsMeta = AnnotatedElementUtils.getMergedAnnotation(source, TestMetaAnnotation.class); assertThat(utilsMeta.getClass().getClassLoader()).isEqualTo(parent); - assertThat(utilsMeta.getClass().getClassLoader()).is...
false
Other
spring-projects
spring-framework
a0e462581fe1d27d5926809fbb21441a6685ef45.json
Consider generics for predicting FactoryBean types Update the `FactoryBean` type prediction logic (primarily in the `DefaultListableBeanFactory`) so that generic type information is considered when calling `getBeanNamesForType` on a non-frozen configuration. Calling `getBeanNamesForType` with `allowEagerInit` disable...
spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractAutowireCapableBeanFactory.java
@@ -71,7 +71,6 @@ import org.springframework.beans.factory.config.SmartInstantiationAwareBeanPostProcessor; import org.springframework.beans.factory.config.TypedStringValue; import org.springframework.core.DefaultParameterNameDiscoverer; -import org.springframework.core.GenericTypeResolver; import org.springframewo...
true
Other
spring-projects
spring-framework
a0e462581fe1d27d5926809fbb21441a6685ef45.json
Consider generics for predicting FactoryBean types Update the `FactoryBean` type prediction logic (primarily in the `DefaultListableBeanFactory`) so that generic type information is considered when calling `getBeanNamesForType` on a non-frozen configuration. Calling `getBeanNamesForType` with `allowEagerInit` disable...
spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java
@@ -69,6 +69,7 @@ import org.springframework.core.NamedThreadLocal; import org.springframework.core.ResolvableType; import org.springframework.core.convert.ConversionService; +import org.springframework.core.log.LogMessage; import org.springframework.lang.Nullable; import org.springframework.util.Assert; import o...
true
Other
spring-projects
spring-framework
a0e462581fe1d27d5926809fbb21441a6685ef45.json
Consider generics for predicting FactoryBean types Update the `FactoryBean` type prediction logic (primarily in the `DefaultListableBeanFactory`) so that generic type information is considered when calling `getBeanNamesForType` on a non-frozen configuration. Calling `getBeanNamesForType` with `allowEagerInit` disable...
spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultListableBeanFactory.java
@@ -77,6 +77,7 @@ import org.springframework.core.annotation.MergedAnnotation; import org.springframework.core.annotation.MergedAnnotations; import org.springframework.core.annotation.MergedAnnotations.SearchStrategy; +import org.springframework.core.log.LogMessage; import org.springframework.lang.Nullable; import...
true
Other
spring-projects
spring-framework
a0e462581fe1d27d5926809fbb21441a6685ef45.json
Consider generics for predicting FactoryBean types Update the `FactoryBean` type prediction logic (primarily in the `DefaultListableBeanFactory`) so that generic type information is considered when calling `getBeanNamesForType` on a non-frozen configuration. Calling `getBeanNamesForType` with `allowEagerInit` disable...
spring-context/src/test/java/org/springframework/context/annotation/ConfigurationWithFactoryBeanBeanEarlyDeductionTests.java
@@ -0,0 +1,172 @@ +/* + * 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
2ee1ce61c038c27fb163316961d3180de42f8297.json
Add missing variants of getBeanNamesForType Update `ListableBeanFactory` and `BeanFactoryUtils` to add the missing `getBeanNamesForType` methods that accept a `ResolvableType` rather than a `Class`. This completes the work started in 778a01943b. Closes gh-23335
spring-beans/src/main/java/org/springframework/beans/factory/BeanFactoryUtils.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. @@ -172,6 +172,44 @@ public static String[] bea...
true
Other
spring-projects
spring-framework
2ee1ce61c038c27fb163316961d3180de42f8297.json
Add missing variants of getBeanNamesForType Update `ListableBeanFactory` and `BeanFactoryUtils` to add the missing `getBeanNamesForType` methods that accept a `ResolvableType` rather than a `Class`. This completes the work started in 778a01943b. Closes gh-23335
spring-beans/src/main/java/org/springframework/beans/factory/ListableBeanFactory.java
@@ -116,6 +116,40 @@ public interface ListableBeanFactory extends BeanFactory { */ String[] getBeanNamesForType(ResolvableType type); + /** + * Return the names of beans matching the given type (including subclasses), + * judging from either bean definitions or the value of {@code getObjectType} + * in the ca...
true
Other
spring-projects
spring-framework
2ee1ce61c038c27fb163316961d3180de42f8297.json
Add missing variants of getBeanNamesForType Update `ListableBeanFactory` and `BeanFactoryUtils` to add the missing `getBeanNamesForType` methods that accept a `ResolvableType` rather than a `Class`. This completes the work started in 778a01943b. Closes gh-23335
spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultListableBeanFactory.java
@@ -463,12 +463,17 @@ public String[] getBeanDefinitionNames() { @Override public String[] getBeanNamesForType(ResolvableType type) { + return getBeanNamesForType(type, true, true); + } + + @Override + public String[] getBeanNamesForType(ResolvableType type, boolean includeNonSingletons, boolean allowEagerInit) ...
true
Other
spring-projects
spring-framework
2ee1ce61c038c27fb163316961d3180de42f8297.json
Add missing variants of getBeanNamesForType Update `ListableBeanFactory` and `BeanFactoryUtils` to add the missing `getBeanNamesForType` methods that accept a `ResolvableType` rather than a `Class`. This completes the work started in 778a01943b. Closes gh-23335
spring-beans/src/main/java/org/springframework/beans/factory/support/StaticListableBeanFactory.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. @@ -329,26 +329,32 @@ public String[] getBeanDe...
true
Other
spring-projects
spring-framework
2ee1ce61c038c27fb163316961d3180de42f8297.json
Add missing variants of getBeanNamesForType Update `ListableBeanFactory` and `BeanFactoryUtils` to add the missing `getBeanNamesForType` methods that accept a `ResolvableType` rather than a `Class`. This completes the work started in 778a01943b. Closes gh-23335
spring-beans/src/test/java/org/springframework/beans/factory/DefaultListableBeanFactoryTests.java
@@ -1751,6 +1751,8 @@ public void testGetBeanWithArgsNotCreatedForFactoryBeanChecking() { assertThat(lbf.getBeanNamesForType(ConstructorDependencyFactoryBean.class).length).isEqualTo(1); assertThat(lbf.getBeanNamesForType(ResolvableType.forClassWithGenerics(FactoryBean.class, Object.class)).length).isEqualTo(1); ...
true
Other
spring-projects
spring-framework
2ee1ce61c038c27fb163316961d3180de42f8297.json
Add missing variants of getBeanNamesForType Update `ListableBeanFactory` and `BeanFactoryUtils` to add the missing `getBeanNamesForType` methods that accept a `ResolvableType` rather than a `Class`. This completes the work started in 778a01943b. Closes gh-23335
spring-context/src/main/java/org/springframework/context/support/AbstractApplicationContext.java
@@ -1208,6 +1208,12 @@ public String[] getBeanNamesForType(ResolvableType type) { return getBeanFactory().getBeanNamesForType(type); } + @Override + public String[] getBeanNamesForType(ResolvableType type, boolean includeNonSingletons, boolean allowEagerInit) { + assertBeanFactoryActive(); + return getBeanFact...
true
Other
spring-projects
spring-framework
2ee1ce61c038c27fb163316961d3180de42f8297.json
Add missing variants of getBeanNamesForType Update `ListableBeanFactory` and `BeanFactoryUtils` to add the missing `getBeanNamesForType` methods that accept a `ResolvableType` rather than a `Class`. This completes the work started in 778a01943b. Closes gh-23335
spring-test/src/main/java/org/springframework/test/web/servlet/setup/StubWebApplicationContext.java
@@ -251,6 +251,11 @@ public String[] getBeanNamesForType(@Nullable ResolvableType type) { return this.beanFactory.getBeanNamesForType(type); } + @Override + public String[] getBeanNamesForType(@Nullable ResolvableType type, boolean includeNonSingletons, boolean allowEagerInit) { + return this.beanFactory.getBea...
true
Other
spring-projects
spring-framework
29ef985411b480c0fbdb2b858585c3826e5e7b5b.json
Add support for non-standard status codes Added support for status codes that do not occur in HttpStatus in DefaultClientResponseBuilder and made ClientResponse::statusCode ClientHttpResponse::getStatusCode @Nullable. Closed gh-23366
spring-test/src/main/java/org/springframework/mock/http/client/reactive/MockClientHttpResponse.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. @@ -47,7 +47,7 @@ */ public class MockClient...
true
Other
spring-projects
spring-framework
29ef985411b480c0fbdb2b858585c3826e5e7b5b.json
Add support for non-standard status codes Added support for status codes that do not occur in HttpStatus in DefaultClientResponseBuilder and made ClientResponse::statusCode ClientHttpResponse::getStatusCode @Nullable. Closed gh-23366
spring-web/src/main/java/org/springframework/http/client/reactive/ClientHttpResponse.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. @@ -19,6 +19,7 @@ import org.springframework.h...
true
Other
spring-projects
spring-framework
29ef985411b480c0fbdb2b858585c3826e5e7b5b.json
Add support for non-standard status codes Added support for status codes that do not occur in HttpStatus in DefaultClientResponseBuilder and made ClientResponse::statusCode ClientHttpResponse::getStatusCode @Nullable. Closed gh-23366
spring-web/src/main/java/org/springframework/http/client/reactive/JettyClientHttpResponse.java
@@ -53,7 +53,7 @@ public JettyClientHttpResponse(ReactiveResponse reactiveResponse, Publisher<Data @Override public HttpStatus getStatusCode() { - return HttpStatus.valueOf(getRawStatusCode()); + return HttpStatus.resolve(getRawStatusCode()); } @Override
true
Other
spring-projects
spring-framework
29ef985411b480c0fbdb2b858585c3826e5e7b5b.json
Add support for non-standard status codes Added support for status codes that do not occur in HttpStatus in DefaultClientResponseBuilder and made ClientResponse::statusCode ClientHttpResponse::getStatusCode @Nullable. Closed gh-23366
spring-web/src/main/java/org/springframework/http/client/reactive/ReactorClientHttpResponse.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. @@ -87,7 +87,7 @@ public HttpHeaders getHeaders...
true
Other
spring-projects
spring-framework
29ef985411b480c0fbdb2b858585c3826e5e7b5b.json
Add support for non-standard status codes Added support for status codes that do not occur in HttpStatus in DefaultClientResponseBuilder and made ClientResponse::statusCode ClientHttpResponse::getStatusCode @Nullable. Closed gh-23366
spring-web/src/test/java/org/springframework/mock/http/client/reactive/test/MockClientHttpResponse.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. @@ -47,7 +47,7 @@ */ public class MockClient...
true
Other
spring-projects
spring-framework
29ef985411b480c0fbdb2b858585c3826e5e7b5b.json
Add support for non-standard status codes Added support for status codes that do not occur in HttpStatus in DefaultClientResponseBuilder and made ClientResponse::statusCode ClientHttpResponse::getStatusCode @Nullable. Closed gh-23366
spring-webflux/src/main/java/org/springframework/web/reactive/function/client/ClientResponse.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -35,6 +35,7 @@ import org.springframework.h...
true
Other
spring-projects
spring-framework
29ef985411b480c0fbdb2b858585c3826e5e7b5b.json
Add support for non-standard status codes Added support for status codes that do not occur in HttpStatus in DefaultClientResponseBuilder and made ClientResponse::statusCode ClientHttpResponse::getStatusCode @Nullable. Closed gh-23366
spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultClientResponseBuilder.java
@@ -44,7 +44,7 @@ final class DefaultClientResponseBuilder implements ClientResponse.Builder { private ExchangeStrategies strategies; - private HttpStatus statusCode = HttpStatus.OK; + private int statusCode = 200; private final HttpHeaders headers = new HttpHeaders(); @@ -61,15 +61,20 @@ public DefaultClie...
true
Other
spring-projects
spring-framework
29ef985411b480c0fbdb2b858585c3826e5e7b5b.json
Add support for non-standard status codes Added support for status codes that do not occur in HttpStatus in DefaultClientResponseBuilder and made ClientResponse::statusCode ClientHttpResponse::getStatusCode @Nullable. Closed gh-23366
spring-webflux/src/test/java/org/springframework/web/reactive/function/client/DefaultClientResponseBuilderTests.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. @@ -30,7 +30,9 @@ import org.springframework.h...
true
Other
spring-projects
spring-framework
6cb4b8bd43be9c741377f52cc98b43abde27dbc8.json
Add onRawStatus to WebClient - Add onRawStatus to WebClient.ResponseSpec, allowing users to deal with raw status codes that are not in HttpStatus. - No longer throw an exception status codes not in HttpStatus. Closes gh-23367
spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClient.java
@@ -28,6 +28,7 @@ import java.util.function.BiFunction; import java.util.function.Consumer; import java.util.function.Function; +import java.util.function.IntPredicate; import java.util.function.Predicate; import java.util.function.Supplier; @@ -396,8 +397,10 @@ public HttpHeaders getHeaders() { private stat...
true
Other
spring-projects
spring-framework
6cb4b8bd43be9c741377f52cc98b43abde27dbc8.json
Add onRawStatus to WebClient - Add onRawStatus to WebClient.ResponseSpec, allowing users to deal with raw status codes that are not in HttpStatus. - No longer throw an exception status codes not in HttpStatus. Closes gh-23367
spring-webflux/src/main/java/org/springframework/web/reactive/function/client/WebClient.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. @@ -23,6 +23,7 @@ import java.util.Map; impor...
true
Other
spring-projects
spring-framework
6cb4b8bd43be9c741377f52cc98b43abde27dbc8.json
Add onRawStatus to WebClient - Add onRawStatus to WebClient.ResponseSpec, allowing users to deal with raw status codes that are not in HttpStatus. - No longer throw an exception status codes not in HttpStatus. Closes gh-23367
spring-webflux/src/test/java/org/springframework/web/reactive/function/client/WebClientIntegrationTests.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. @@ -56,7 +56,11 @@ import org.springframework....
true
Other
spring-projects
spring-framework
bccc7a62f461d62f4fa98ea4f68f1e24da548b16.json
Remove duplicate assertion in matchWithNullPath() See gh-23382
spring-core/src/test/java/org/springframework/util/AntPathMatcherTests.java
@@ -136,7 +136,6 @@ public void match() { public void matchWithNullPath() { assertThat(pathMatcher.match("/test", null)).isFalse(); assertThat(pathMatcher.match("/", null)).isFalse(); - assertThat(pathMatcher.match("/", null)).isFalse(); assertThat(pathMatcher.match(null, null)).isFalse(); }
false
Other
spring-projects
spring-framework
c9479ff20f9e4ad2641928cd6a842ec55f2260d0.json
Refine @TestPropertySource merged annotation calls See gh-23320
spring-test/src/main/java/org/springframework/test/context/support/TestPropertySourceAttributes.java
@@ -16,12 +16,22 @@ package org.springframework.test.context.support; +import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + +import org.springframework.core.annotation.MergedAnnotation; +import org.s...
true
Other
spring-projects
spring-framework
c9479ff20f9e4ad2641928cd6a842ec55f2260d0.json
Refine @TestPropertySource merged annotation calls See gh-23320
spring-test/src/main/java/org/springframework/test/context/support/TestPropertySourceUtils.java
@@ -20,14 +20,10 @@ import java.io.StringReader; import java.util.ArrayList; import java.util.Arrays; -import java.util.Collections; -import java.util.Comparator; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Properties; -import java.util.TreeMap; -import java.util...
true
Other
spring-projects
spring-framework
0a822ddf2de6f75c0f27480bca3851667b990df6.json
Fix typo in reference manual
src/docs/asciidoc/web/webmvc-cors.adoc
@@ -172,7 +172,7 @@ public class AccountController { In addition to fine-grained, controller method level configuration, you probably want to define some global CORS configuration, too. You can set URL-based `CorsConfiguration` mappings individually on any `HandlerMapping`. Most applications, however, use the -MVC J...
false
Other
spring-projects
spring-framework
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/main/java/org/springframework/test/context/TestPropertySource.java
@@ -68,6 +68,8 @@ * <ul> * <li>Typically, {@code @TestPropertySource} will be used in conjunction with * {@link ContextConfiguration @ContextConfiguration}.</li> + * <li>As of Spring Framework 5.2, {@code @TestPropertySource} can be used as a + * <em>{@linkplain Repeatable repeatable}</em> annotation.</li> * <l...
true
Other
spring-projects
spring-framework
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/main/java/org/springframework/test/context/TestPropertySources.java
@@ -16,24 +16,23 @@ package org.springframework.test.context; - import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Inherited; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; - ...
true
Other
spring-projects
spring-framework
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/main/java/org/springframework/test/context/support/TestPropertySourceAttributes.java
@@ -16,25 +16,19 @@ package org.springframework.test.context.support; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; +import java.util.List; -import org.springframework.core.io.ClassPathResource; import org.springframework.core.style.ToStringCreator; -import org.springfra...
true
Other
spring-projects
spring-framework
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/main/java/org/springframework/test/context/support/TestPropertySourceUtils.java
@@ -20,10 +20,13 @@ import java.io.StringReader; import java.util.ArrayList; import java.util.Arrays; +import java.util.Collections; +import java.util.Comparator; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Properties; +import java.util.TreeMap; import java.util...
true
Other
spring-projects
spring-framework
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/java/org/springframework/test/context/env/TestPropertySourceTestSuite.java
@@ -0,0 +1,44 @@ +/* + * 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
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/java/org/springframework/test/context/env/repeatable/AbstractClassWithTestProperty.java
@@ -19,12 +19,13 @@ import org.springframework.test.context.TestPropertySource; /** - * Abstract parent class with multiple properties definition for tests. + * Abstract base class which declares an inlined property via + * {@link TestPropertySource @TestPropertySource}. * * @author Anatoliy Korovin + * @author...
true
Other
spring-projects
spring-framework
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/java/org/springframework/test/context/env/repeatable/AbstractRepeatableTestPropertySourceTests.java
@@ -16,49 +16,39 @@ package org.springframework.test.context.env.repeatable; -import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Configu...
true
Other
spring-projects
spring-framework
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/java/org/springframework/test/context/env/repeatable/DefaultPropertiesFileDetectionRepeatedTestPropertySourceTests.java
@@ -0,0 +1,42 @@ +/* + * 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
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/java/org/springframework/test/context/env/repeatable/ExplicitPropertiesFilesRepeatedTestPropertySourceTests.java
@@ -0,0 +1,45 @@ +/* + * 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
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/java/org/springframework/test/context/env/repeatable/LocalInlinedPropertyAndInheritedInlinedPropertyTests.java
@@ -16,22 +16,25 @@ package org.springframework.test.context.env.repeatable; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; +import org.junit.Test; import org.springframework.test.context.Test...
true
Other
spring-projects
spring-framework
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/java/org/springframework/test/context/env/repeatable/LocalInlinedPropertyAndMetaInlinedPropertyTests.java
@@ -16,14 +16,26 @@ package org.springframework.test.context.env.repeatable; +import org.junit.Test; + import org.springframework.test.context.TestPropertySource; /** - * Abstract parent class with foo property definition for tests. + * Integration tests for {@link TestPropertySource @TestPropertySource} as a ...
true
Other
spring-projects
spring-framework
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/java/org/springframework/test/context/env/repeatable/LocalInlinedPropertyOverridesInheritedAndMetaInlinedPropertiesTests.java
@@ -0,0 +1,52 @@ +/* + * 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
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/java/org/springframework/test/context/env/repeatable/LocalInlinedPropertyOverridesInheritedInlinedPropertyTests.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 + * + * https://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/java/org/springframework/test/context/env/repeatable/LocalInlinedPropertyOverridesMetaInlinedPropertyTests.java
@@ -16,22 +16,25 @@ package org.springframework.test.context.env.repeatable; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; +import org.junit.Test; import org.springframework.test.context.Test...
true
Other
spring-projects
spring-framework
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/java/org/springframework/test/context/env/repeatable/LocalPropertiesFileAndMetaPropertiesFileTests.java
@@ -0,0 +1,62 @@ +/* + * 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
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/java/org/springframework/test/context/env/repeatable/MetaInlinedTestProperty.java
@@ -16,7 +16,6 @@ package org.springframework.test.context.env.repeatable; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; @@ -25,13 +24,14 @@ import org.springframework.test.context.TestPropertySource; /** - * A custom annotatio...
true
Other
spring-projects
spring-framework
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/java/org/springframework/test/context/env/repeatable/ParentClassWithTestProperties.java
@@ -1,30 +0,0 @@ -/* - * 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
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/java/org/springframework/test/context/env/repeatable/RepeatedTestPropertySourceTests.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 + * + * https://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/java/org/springframework/test/context/env/repeatable/ReversedExplicitPropertiesFilesRepeatedTestPropertySourceTests.java
@@ -0,0 +1,41 @@ +/* + * 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
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/java/org/springframework/test/context/env/repeatable/TestPropertySourceInheritTests.java
@@ -1,71 +0,0 @@ -/* - * 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
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/java/org/springframework/test/context/env/repeatable/TestPropertySourceInheritedFromMetaAnnotationOverridesLocallyTests.java
@@ -1,67 +0,0 @@ -/* - * 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
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/java/org/springframework/test/context/env/repeatable/TestPropertySourceInheritedFromMetaAnnotationTests.java
@@ -1,73 +0,0 @@ -/* - * 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
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/java/org/springframework/test/context/env/repeatable/TestPropertySourceInheritedFromMetaAnnotationWithPropertiesFileTests.java
@@ -1,76 +0,0 @@ -/* - * 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
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/java/org/springframework/test/context/env/repeatable/TestPropertySourcePartialOverridesInheritedPropertyTests.java
@@ -1,63 +0,0 @@ -/* - * 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
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/java/org/springframework/test/context/env/repeatable/TestPropertySourceRepeatableOverridesTests.java
@@ -1,58 +0,0 @@ -/* - * 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
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/java/org/springframework/test/context/env/repeatable/TestPropertySourceRepeatableTests.java
@@ -1,73 +0,0 @@ -/* - * 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
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/java/org/springframework/test/context/env/repeatable/TestPropertySourceRepeatableWithDefaultPropertiesFileTests.java
@@ -1,73 +0,0 @@ -/* - * 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
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/java/org/springframework/test/context/env/repeatable/TestPropertySourceRepeatableWithPropertiesFileTests.java
@@ -1,73 +0,0 @@ -/* - * 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
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/java/org/springframework/test/context/support/TestPropertySourceUtilsTests.java
@@ -57,23 +57,40 @@ public class TestPropertySourceUtilsTests { private static final String[] FOO_LOCATIONS = new String[] {"classpath:/foo.properties"}; - @Test public void emptyAnnotation() { - assertThatIllegalStateException().isThrownBy(() -> - buildMergedTestPropertySources(EmptyPropertySources.class...
true
Other
spring-projects
spring-framework
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/resources/log4j2-test.xml
@@ -25,6 +25,7 @@ <Logger name="org.springframework.test.context.support.DelegatingSmartContextLoader" level="info" /> <Logger name="org.springframework.test.context.support.AbstractGenericContextLoader" level="info" /> <Logger name="org.springframework.test.context.support.AnnotationConfigContextLoader" level...
true
Other
spring-projects
spring-framework
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/resources/org/springframework/test/context/env/repeatable/DefaultPropertiesFileDetectionRepeatedTestPropertySourceTests.properties
@@ -0,0 +1 @@ +default.value = default file
true
Other
spring-projects
spring-framework
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/resources/org/springframework/test/context/env/repeatable/TestPropertySourceRepeatableWithDefaultPropertiesFileTests.properties
@@ -1 +0,0 @@ -default.value = a value from default properties file \ No newline at end of file
true
Other
spring-projects
spring-framework
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/resources/org/springframework/test/context/env/repeatable/first.properties
@@ -1 +1,3 @@ -first = 1111 \ No newline at end of file +alpha = beta +first = 1111 +second = 1111
true
Other
spring-projects
spring-framework
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/resources/org/springframework/test/context/env/repeatable/local.properties
@@ -1 +1 @@ -key = local value \ No newline at end of file +key1 = local file
true
Other
spring-projects
spring-framework
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/resources/org/springframework/test/context/env/repeatable/meta.properties
@@ -1 +1 @@ -meta = a value from file in the meta-annotation \ No newline at end of file +key2 = meta file
true
Other
spring-projects
spring-framework
136af0b1643ac43f3be87ca11a10a22047632965.json
Overhaul repeatable @TestPropertySource support Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySou...
spring-test/src/test/resources/org/springframework/test/context/env/repeatable/second.properties
@@ -1 +1,2 @@ -second = 2222 \ No newline at end of file +alpha = omega +second = 2222
true
Other
spring-projects
spring-framework
2c53e9e308dc39c5988c014a12d32917f0b5528d.json
Expose prestartAllCoreThreads on ExecutorService See gh-1246
spring-context/src/main/java/org/springframework/scheduling/concurrent/ThreadPoolExecutorFactoryBean.java
@@ -73,12 +73,14 @@ public class ThreadPoolExecutorFactoryBean extends ExecutorConfigurationSupport private int keepAliveSeconds = 60; - private boolean allowCoreThreadTimeOut = false; - private int queueCapacity = Integer.MAX_VALUE; + private boolean allowCoreThreadTimeOut = false; + private boolean expose...
true
Other
spring-projects
spring-framework
2c53e9e308dc39c5988c014a12d32917f0b5528d.json
Expose prestartAllCoreThreads on ExecutorService See gh-1246
spring-context/src/test/java/org/springframework/scheduling/concurrent/ThreadPoolExecutorFactoryBeanTests.java
@@ -16,17 +16,25 @@ package org.springframework.scheduling.concurrent; +import java.util.concurrent.BlockingQueue; import java.util.concurrent.ExecutorService; import java.util.concurrent.FutureTask; +import java.util.concurrent.RejectedExecutionHandler; +import java.util.concurrent.ThreadFactory; +import java.u...
true
Other
spring-projects
spring-framework
bcb9f159ca602fb3437123ee3f3fffdaf3572251.json
Add tests for AbstractRoutingDataSource See gh-1330
spring-jdbc/src/test/java/org/springframework/jdbc/datasource/lookup/AbstractRoutingDataSourceTests.java
@@ -0,0 +1,185 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
false
Other
spring-projects
spring-framework
1e0bdf95d051912c327e9781673d9690941a8d4b.json
Fix simple data format in appendix See gh-1025
src/docs/asciidoc/core/core-appendix.adoc
@@ -749,7 +749,7 @@ essentially the same as the following XML snippet: [source,xml,indent=0,subs="verbatim,quotes"] ---- <bean id="dateFormat" class="java.text.SimpleDateFormat"> - <constructor-arg value="yyyy-HH-dd HH:mm"/> + <constructor-arg value="yyyy-MM-dd HH:mm"/> <property name="lenient" value="true"/> ...
false
Other
spring-projects
spring-framework
62a4a4c0bf03a9ab534ef90d038007d0a5601cd4.json
Upgrade JDK versions in CI images
ci/images/get-jdk-url.sh
@@ -3,10 +3,10 @@ set -e case "$1" in java17) - echo "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17%2B35/OpenJDK17-jdk_x64_linux_hotspot_17_35.tar.gz" + echo "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.1%2B12/OpenJDK17U-jdk_x64_linux_hotspot_17.0.1_12...
false
Other
spring-projects
spring-framework
6e640c806f90b1d116f8613c5aa7ddb7c5af8f39.json
Improve support for Content-Disposition types See gh-25647
spring-web/src/main/java/org/springframework/http/ContentDisposition.java
@@ -48,6 +48,18 @@ public final class ContentDisposition { private static final String INVALID_HEADER_FIELD_PARAMETER_FORMAT = "Invalid header field parameter format (as defined in RFC 5987)"; + /** + * The {@literal attachment} content-disposition type. + */ + private static final String ATTACHMENT = "attach...
true
Other
spring-projects
spring-framework
6e640c806f90b1d116f8613c5aa7ddb7c5af8f39.json
Improve support for Content-Disposition types See gh-25647
spring-web/src/main/java/org/springframework/http/HttpHeaders.java
@@ -860,7 +860,7 @@ public List<String> getConnection() { */ public void setContentDispositionFormData(String name, @Nullable String filename) { Assert.notNull(name, "Name must not be null"); - ContentDisposition.Builder disposition = ContentDisposition.builder("form-data").name(name); + ContentDisposition.Bu...
true
Other
spring-projects
spring-framework
6e640c806f90b1d116f8613c5aa7ddb7c5af8f39.json
Improve support for Content-Disposition types See gh-25647
spring-web/src/test/java/org/springframework/http/ContentDispositionTests.java
@@ -25,7 +25,8 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException; -import static org.springframework.http.ContentDisposition.builder; +import static org.springframework.http.ContentDisposition.attachment; +import static org....
true
Other
spring-projects
spring-framework
6e640c806f90b1d116f8613c5aa7ddb7c5af8f39.json
Improve support for Content-Disposition types See gh-25647
spring-web/src/test/java/org/springframework/http/HttpHeadersTests.java
@@ -384,7 +384,7 @@ void contentDisposition() { assertThat(disposition).isNotNull(); assertThat(headers.getContentDisposition()).as("Invalid Content-Disposition header").isEqualTo(ContentDisposition.empty()); - disposition = ContentDisposition.builder("attachment").name("foo").filename("foo.txt").size(123L).bu...
true
Other
spring-projects
spring-framework
6e640c806f90b1d116f8613c5aa7ddb7c5af8f39.json
Improve support for Content-Disposition types See gh-25647
spring-web/src/test/java/org/springframework/http/codec/ResourceHttpMessageReaderTests.java
@@ -48,7 +48,7 @@ void readResourceAsMono() throws IOException { String body = "Test resource content"; ContentDisposition contentDisposition = - ContentDisposition.builder("attachment").name("file").filename(filename).build(); + ContentDisposition.attachment().name("file").filename(filename).build(); ...
true
Other
spring-projects
spring-framework
6e640c806f90b1d116f8613c5aa7ddb7c5af8f39.json
Improve support for Content-Disposition types See gh-25647
spring-web/src/test/java/org/springframework/http/converter/ResourceHttpMessageConverterTests.java
@@ -67,7 +67,7 @@ public void shouldReadImageResource() throws IOException { MockHttpInputMessage inputMessage = new MockHttpInputMessage(body); inputMessage.getHeaders().setContentType(MediaType.IMAGE_JPEG); inputMessage.getHeaders().setContentDisposition( - ContentDisposition.builder("attachment").filenam...
true
Other
spring-projects
spring-framework
7af726480f8da22f533b37d6ad01781aafeefa35.json
Add queryParamIfPresent to UriComponentsBuilder See gh-25951
spring-web/src/main/java/org/springframework/web/util/DefaultUriBuilderFactory.java
@@ -21,6 +21,7 @@ import java.util.Collections; import java.util.HashMap; import java.util.Map; +import java.util.Optional; import org.springframework.lang.Nullable; import org.springframework.util.MultiValueMap; @@ -334,6 +335,12 @@ public DefaultUriBuilder queryParam(String name, Object... values) { return...
true
Other
spring-projects
spring-framework
7af726480f8da22f533b37d6ad01781aafeefa35.json
Add queryParamIfPresent to UriComponentsBuilder See gh-25951
spring-web/src/main/java/org/springframework/web/util/UriBuilder.java
@@ -19,6 +19,7 @@ import java.net.URI; import java.util.Collection; import java.util.Map; +import java.util.Optional; import org.springframework.lang.Nullable; import org.springframework.util.MultiValueMap; @@ -185,6 +186,15 @@ public interface UriBuilder { */ UriBuilder queryParam(String name, Object... va...
true
Other
spring-projects
spring-framework
7af726480f8da22f533b37d6ad01781aafeefa35.json
Add queryParamIfPresent to UriComponentsBuilder See gh-25951
spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java
@@ -27,6 +27,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Optional; import java.util.regex.Matcher; import java.util.regex.Pattern; @@ -708,6 +709,20 @@ public UriComponentsBuilder queryParam(String name, Object... values) { return this; } + @Override + pub...
true
Other
spring-projects
spring-framework
7af726480f8da22f533b37d6ad01781aafeefa35.json
Add queryParamIfPresent to UriComponentsBuilder See gh-25951
spring-web/src/test/java/org/springframework/web/util/UriComponentsBuilderTests.java
@@ -18,11 +18,13 @@ import java.net.URI; import java.net.URISyntaxException; +import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.Map; +import java.util.Optional; import org.junit.jupiter.api.Test; @@ -2...
true
Other
spring-projects
spring-framework
51fb49be344524abd4a92098a8a62c83d62ecb9a.json
Correct outdated error message
spring-messaging/src/main/java/org/springframework/messaging/rsocket/annotation/support/MessagingRSocket.java
@@ -177,8 +177,7 @@ private Flux<Payload> handleAndReply(Payload firstPayload, FrameType frameType, } }) .thenMany(Flux.defer(() -> responseRef.get() != null ? - responseRef.get() : - Mono.error(new IllegalStateException("Something went wrong: reply Mono not set")))); + responseRef.get() ...
false
Other
spring-projects
spring-framework
1ec6843913d0286ea79edf4193e0d71424d5145a.json
Upgrade CGLIB to ASM9 level as well See gh-24872
spring-core/src/main/java/org/springframework/asm/Opcodes.java
@@ -53,7 +53,7 @@ public interface Opcodes { /** * <i>Experimental, use at your own risk. This field will be renamed when it becomes stable, this * will break existing code using it. Only code compiled with --enable-preview can use this.</i> - * <p>SPRING PATCH: no preview mode check for ASM 9 experimental...
true
Other
spring-projects
spring-framework
1ec6843913d0286ea79edf4193e0d71424d5145a.json
Upgrade CGLIB to ASM9 level as well See gh-24872
spring-core/src/main/java/org/springframework/cglib/core/AsmApi.java
@@ -21,10 +21,10 @@ final class AsmApi { /** - * SPRING PATCH: always returns ASM7. + * SPRING PATCH: always returns ASM9. */ static int value() { - return Opcodes.ASM7; + return Opcodes.ASM9; } private AsmApi() {
true
Other
spring-projects
spring-framework
784d72cc56a95a11ed8058dec5a703e4dc8fbbe2.json
Fix checkstyle violations
spring-core/src/jmh/java/org/springframework/core/codec/StringDecoderBenchmark.java
@@ -84,12 +84,12 @@ public void setup() { "data:abcdefg-$1-hijklmnop-$1-qrstuvw-$1-xyz-$1\n\n"; int eventLength = String.format(eventTemplate, String.format("%05d", 1)).length(); - int eventCount = totalSize / eventLength; + int eventCount = this.totalSize / eventLength; DataBufferFactory bufferFact...
false
Other
spring-projects
spring-framework
cfc3522641e000946876ecca61d2d3ffe88d7c62.json
Add jmh benchmark for StringDecoder See gh-25915
spring-core/src/jmh/java/org/springframework/core/codec/StringDecoderBenchmark.java
@@ -0,0 +1,107 @@ +/* + * Copyright 2002-2020 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 ...
false
Other
spring-projects
spring-framework
0df6d60fea416f1d5fda06995d5e3ca5ab6aba28.json
Fix GitHub icon in build pipeline
ci/pipeline.yml
@@ -55,7 +55,7 @@ resource_types: resources: - name: git-repo type: git - icon: github-circle + icon: github source: uri: ((github-repo)) username: ((github-username)) @@ -70,7 +70,7 @@ resources: location: Europe/Vienna - name: ci-images-git-repo type: git - icon: github-circle + icon: g...
false
Other
spring-projects
spring-framework
970afbc6140f0dd382eeaee29a2a02bc7c2005f2.json
Remove Slack "here" mentions for failed builds This was introduced by mistake in 6b978cb5dc4
ci/pipeline.yml
@@ -18,7 +18,7 @@ anchors: GRADLE_ENTERPRISE_CACHE_PASSWORD: ((gradle_enterprise_cache_user.password)) slack-fail-params: &slack-fail-params text: > - :concourse-failed: <!here> <https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}|...
false
Other
spring-projects
spring-framework
9c3417f7037b407a17ae9832a81f8d0c55677bfc.json
Convert non-unicode input when reading w/ Jackson This commit makes sure that Jackson-based message converters and decoders can deal with non-unicode input. It does so by reading non-unicode input messages with a InputStreamReader. This commit also adds additional tests forthe canRead/canWrite methods on both codecs ...
spring-web/src/main/java/org/springframework/http/codec/json/AbstractJackson2Encoder.java
@@ -69,10 +69,18 @@ public abstract class AbstractJackson2Encoder extends Jackson2CodecSupport imple private static final Map<MediaType, byte[]> STREAM_SEPARATORS; + private static final Map<Charset, JsonEncoding> ENCODINGS; + static { STREAM_SEPARATORS = new HashMap<>(4); STREAM_SEPARATORS.put(MediaType....
true
Other
spring-projects
spring-framework
9c3417f7037b407a17ae9832a81f8d0c55677bfc.json
Convert non-unicode input when reading w/ Jackson This commit makes sure that Jackson-based message converters and decoders can deal with non-unicode input. It does so by reading non-unicode input messages with a InputStreamReader. This commit also adds additional tests forthe canRead/canWrite methods on both codecs ...
spring-web/src/main/java/org/springframework/http/codec/json/Jackson2CodecSupport.java
@@ -18,18 +18,13 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import java.nio.charset.Charset; import java.util.Arrays; import java.util.Collections; -import java.util.EnumSet; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.function.Functi...
true
Other
spring-projects
spring-framework
9c3417f7037b407a17ae9832a81f8d0c55677bfc.json
Convert non-unicode input when reading w/ Jackson This commit makes sure that Jackson-based message converters and decoders can deal with non-unicode input. It does so by reading non-unicode input messages with a InputStreamReader. This commit also adds additional tests forthe canRead/canWrite methods on both codecs ...
spring-web/src/main/java/org/springframework/http/converter/json/AbstractJackson2HttpMessageConverter.java
@@ -17,8 +17,11 @@ package org.springframework.http.converter.json; import java.io.IOException; +import java.io.InputStreamReader; +import java.io.Reader; import java.lang.reflect.Type; import java.nio.charset.Charset; +import java.nio.charset.StandardCharsets; import java.util.Arrays; import java.util.Collecti...
true
Other
spring-projects
spring-framework
9c3417f7037b407a17ae9832a81f8d0c55677bfc.json
Convert non-unicode input when reading w/ Jackson This commit makes sure that Jackson-based message converters and decoders can deal with non-unicode input. It does so by reading non-unicode input messages with a InputStreamReader. This commit also adds additional tests forthe canRead/canWrite methods on both codecs ...
spring-web/src/test/java/org/springframework/http/codec/cbor/Jackson2CborDecoderTests.java
@@ -16,7 +16,6 @@ package org.springframework.http.codec.cbor; -import java.nio.charset.StandardCharsets; import java.util.Arrays; import java.util.List; @@ -28,7 +27,6 @@ import org.springframework.core.ResolvableType; import org.springframework.core.io.buffer.DataBuffer; import org.springframework.core.te...
true
Other
spring-projects
spring-framework
9c3417f7037b407a17ae9832a81f8d0c55677bfc.json
Convert non-unicode input when reading w/ Jackson This commit makes sure that Jackson-based message converters and decoders can deal with non-unicode input. It does so by reading non-unicode input messages with a InputStreamReader. This commit also adds additional tests forthe canRead/canWrite methods on both codecs ...
spring-web/src/test/java/org/springframework/http/codec/cbor/Jackson2CborEncoderTests.java
@@ -18,7 +18,6 @@ import java.io.IOException; import java.io.UncheckedIOException; -import java.nio.charset.StandardCharsets; import java.util.function.Consumer; import com.fasterxml.jackson.databind.ObjectMapper; @@ -29,7 +28,6 @@ import org.springframework.core.io.buffer.DataBuffer; import org.springframewo...
true
Other
spring-projects
spring-framework
9c3417f7037b407a17ae9832a81f8d0c55677bfc.json
Convert non-unicode input when reading w/ Jackson This commit makes sure that Jackson-based message converters and decoders can deal with non-unicode input. It does so by reading non-unicode input messages with a InputStreamReader. This commit also adds additional tests forthe canRead/canWrite methods on both codecs ...
spring-web/src/test/java/org/springframework/http/codec/json/Jackson2JsonDecoderTests.java
@@ -88,7 +88,7 @@ public void canDecode() { assertThat(this.decoder.canDecode(ResolvableType.forClass(Pojo.class), new MediaType("application", "json", StandardCharsets.UTF_8))).isTrue(); assertThat(this.decoder.canDecode(ResolvableType.forClass(Pojo.class), - new MediaType("application", "json", Standard...
true
Other
spring-projects
spring-framework
9c3417f7037b407a17ae9832a81f8d0c55677bfc.json
Convert non-unicode input when reading w/ Jackson This commit makes sure that Jackson-based message converters and decoders can deal with non-unicode input. It does so by reading non-unicode input messages with a InputStreamReader. This commit also adds additional tests forthe canRead/canWrite methods on both codecs ...
spring-web/src/test/java/org/springframework/http/codec/json/Jackson2SmileDecoderTests.java
@@ -16,7 +16,6 @@ package org.springframework.http.codec.json; -import java.nio.charset.StandardCharsets; import java.util.Arrays; import java.util.List; @@ -28,7 +27,6 @@ import org.springframework.core.ResolvableType; import org.springframework.core.io.buffer.DataBuffer; import org.springframework.core.te...
true
Other
spring-projects
spring-framework
9c3417f7037b407a17ae9832a81f8d0c55677bfc.json
Convert non-unicode input when reading w/ Jackson This commit makes sure that Jackson-based message converters and decoders can deal with non-unicode input. It does so by reading non-unicode input messages with a InputStreamReader. This commit also adds additional tests forthe canRead/canWrite methods on both codecs ...
spring-web/src/test/java/org/springframework/http/codec/json/Jackson2SmileEncoderTests.java
@@ -18,7 +18,6 @@ import java.io.IOException; import java.io.UncheckedIOException; -import java.nio.charset.StandardCharsets; import java.util.Arrays; import java.util.List; @@ -33,7 +32,6 @@ import org.springframework.core.io.buffer.DataBuffer; import org.springframework.core.io.buffer.DataBufferUtils; impo...
true
Other
spring-projects
spring-framework
9c3417f7037b407a17ae9832a81f8d0c55677bfc.json
Convert non-unicode input when reading w/ Jackson This commit makes sure that Jackson-based message converters and decoders can deal with non-unicode input. It does so by reading non-unicode input messages with a InputStreamReader. This commit also adds additional tests forthe canRead/canWrite methods on both codecs ...
spring-web/src/test/java/org/springframework/http/converter/json/MappingJackson2HttpMessageConverterTests.java
@@ -18,6 +18,7 @@ import java.io.IOException; import java.lang.reflect.Type; +import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.HashMap; @@ -44,6 +45,7 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.assertj....
true
Other
spring-projects
spring-framework
9c3417f7037b407a17ae9832a81f8d0c55677bfc.json
Convert non-unicode input when reading w/ Jackson This commit makes sure that Jackson-based message converters and decoders can deal with non-unicode input. It does so by reading non-unicode input messages with a InputStreamReader. This commit also adds additional tests forthe canRead/canWrite methods on both codecs ...
spring-web/src/test/java/org/springframework/http/converter/smile/MappingJackson2SmileHttpMessageConverterTests.java
@@ -17,7 +17,6 @@ package org.springframework.http.converter.smile; import java.io.IOException; -import java.nio.charset.StandardCharsets; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.dataformat.smile.SmileFactory; @@ -46,17 +45,13 @@ public void canRead() { assertThat(con...
true
Other
spring-projects
spring-framework
9c3417f7037b407a17ae9832a81f8d0c55677bfc.json
Convert non-unicode input when reading w/ Jackson This commit makes sure that Jackson-based message converters and decoders can deal with non-unicode input. It does so by reading non-unicode input messages with a InputStreamReader. This commit also adds additional tests forthe canRead/canWrite methods on both codecs ...
spring-web/src/test/java/org/springframework/http/converter/xml/MappingJackson2XmlHttpMessageConverterTests.java
@@ -17,6 +17,7 @@ package org.springframework.http.converter.xml; import java.io.IOException; +import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import com.fasterxml.jackson.annotation.JsonView; @@ -51,7 +52,7 @@ public void canRead() { assertThat(converter.canRead(MyBean.class, new ...
true