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 | 58b0251af14f177a1accf08336987a149cf7e200.json | Relocate TestGenerationContext to spring-core-test
This commit moves the test implementation for GenerationContext in
spring-core-test. This also removes the copy we had in testfixtures
See gh-28877 | spring-beans/src/test/java/org/springframework/beans/factory/annotation/AutowiredAnnotationBeanRegistrationAotContributionTests.java | @@ -25,6 +25,7 @@
import org.springframework.aot.generate.MethodReference;
import org.springframework.aot.hint.predicate.RuntimeHintsPredicates;
+import org.springframework.aot.test.generate.TestGenerationContext;
import org.springframework.aot.test.generator.compile.CompileWithTargetClassAccess;
import org.sprin... | true |
Other | spring-projects | spring-framework | 58b0251af14f177a1accf08336987a149cf7e200.json | Relocate TestGenerationContext to spring-core-test
This commit moves the test implementation for GenerationContext in
spring-core-test. This also removes the copy we had in testfixtures
See gh-28877 | spring-beans/src/test/java/org/springframework/beans/factory/aot/BeanDefinitionMethodGeneratorTests.java | @@ -30,6 +30,7 @@
import org.springframework.aot.generate.GeneratedMethod;
import org.springframework.aot.generate.GenerationContext;
import org.springframework.aot.generate.MethodReference;
+import org.springframework.aot.test.generate.TestGenerationContext;
import org.springframework.aot.test.generator.compile.Co... | true |
Other | spring-projects | spring-framework | 58b0251af14f177a1accf08336987a149cf7e200.json | Relocate TestGenerationContext to spring-core-test
This commit moves the test implementation for GenerationContext in
spring-core-test. This also removes the copy we had in testfixtures
See gh-28877 | spring-beans/src/test/java/org/springframework/beans/factory/aot/BeanDefinitionPropertiesCodeGeneratorTests.java | @@ -29,6 +29,7 @@
import org.springframework.aot.generate.GeneratedClass;
import org.springframework.aot.hint.predicate.RuntimeHintsPredicates;
+import org.springframework.aot.test.generate.TestGenerationContext;
import org.springframework.aot.test.generator.compile.Compiled;
import org.springframework.aot.test.g... | true |
Other | spring-projects | spring-framework | 58b0251af14f177a1accf08336987a149cf7e200.json | Relocate TestGenerationContext to spring-core-test
This commit moves the test implementation for GenerationContext in
spring-core-test. This also removes the copy we had in testfixtures
See gh-28877 | spring-beans/src/test/java/org/springframework/beans/factory/aot/BeanDefinitionPropertyValueCodeGeneratorTests.java | @@ -34,6 +34,7 @@
import org.junit.jupiter.api.Test;
import org.springframework.aot.generate.GeneratedClass;
+import org.springframework.aot.test.generate.TestGenerationContext;
import org.springframework.aot.test.generator.compile.Compiled;
import org.springframework.aot.test.generator.compile.TestCompiler;
imp... | true |
Other | spring-projects | spring-framework | 58b0251af14f177a1accf08336987a149cf7e200.json | Relocate TestGenerationContext to spring-core-test
This commit moves the test implementation for GenerationContext in
spring-core-test. This also removes the copy we had in testfixtures
See gh-28877 | spring-beans/src/test/java/org/springframework/beans/factory/aot/BeanRegistrationsAotContributionTests.java | @@ -31,6 +31,8 @@
import org.springframework.aot.generate.ClassNameGenerator;
import org.springframework.aot.generate.GenerationContext;
import org.springframework.aot.generate.MethodReference;
+import org.springframework.aot.test.generate.TestGenerationContext;
+import org.springframework.aot.test.generate.TestTarg... | true |
Other | spring-projects | spring-framework | 58b0251af14f177a1accf08336987a149cf7e200.json | Relocate TestGenerationContext to spring-core-test
This commit moves the test implementation for GenerationContext in
spring-core-test. This also removes the copy we had in testfixtures
See gh-28877 | spring-beans/src/test/java/org/springframework/beans/factory/aot/DefaultBeanRegistrationCodeFragmentsTests.java | @@ -20,6 +20,7 @@
import org.junit.jupiter.api.Test;
+import org.springframework.aot.test.generate.TestGenerationContext;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.beans.factory.annotation.InjectAnnotationBeanPostProcessorTests.StringFactoryBean;
import org.springframework... | true |
Other | spring-projects | spring-framework | 58b0251af14f177a1accf08336987a149cf7e200.json | Relocate TestGenerationContext to spring-core-test
This commit moves the test implementation for GenerationContext in
spring-core-test. This also removes the copy we had in testfixtures
See gh-28877 | spring-beans/src/test/java/org/springframework/beans/factory/aot/InstanceSupplierCodeGeneratorTests.java | @@ -30,6 +30,7 @@
import org.springframework.aot.hint.ExecutableMode;
import org.springframework.aot.hint.ReflectionHints;
import org.springframework.aot.hint.TypeHint;
+import org.springframework.aot.test.generate.TestGenerationContext;
import org.springframework.aot.test.generator.compile.Compiled;
import org.sp... | true |
Other | spring-projects | spring-framework | 58b0251af14f177a1accf08336987a149cf7e200.json | Relocate TestGenerationContext to spring-core-test
This commit moves the test implementation for GenerationContext in
spring-core-test. This also removes the copy we had in testfixtures
See gh-28877 | spring-context/spring-context.gradle | @@ -26,10 +26,10 @@ dependencies {
optional("org.jetbrains.kotlin:kotlin-reflect")
optional("org.jetbrains.kotlin:kotlin-stdlib")
optional("org.reactivestreams:reactive-streams")
+ testImplementation(project(":spring-core-test"))
testImplementation(testFixtures(project(":spring-aop")))
testImplementation(test... | true |
Other | spring-projects | spring-framework | 58b0251af14f177a1accf08336987a149cf7e200.json | Relocate TestGenerationContext to spring-core-test
This commit moves the test implementation for GenerationContext in
spring-core-test. This also removes the copy we had in testfixtures
See gh-28877 | spring-context/src/test/java/org/springframework/context/annotation/ConfigurationClassPostProcessorAotContributionTests.java | @@ -28,6 +28,7 @@
import org.springframework.aot.generate.MethodReference;
import org.springframework.aot.hint.ResourcePatternHint;
+import org.springframework.aot.test.generate.TestGenerationContext;
import org.springframework.aot.test.generator.compile.Compiled;
import org.springframework.aot.test.generator.com... | true |
Other | spring-projects | spring-framework | 58b0251af14f177a1accf08336987a149cf7e200.json | Relocate TestGenerationContext to spring-core-test
This commit moves the test implementation for GenerationContext in
spring-core-test. This also removes the copy we had in testfixtures
See gh-28877 | spring-context/src/test/java/org/springframework/context/aot/ApplicationContextAotGeneratorTests.java | @@ -31,6 +31,7 @@
import org.springframework.aot.hint.RuntimeHints;
import org.springframework.aot.hint.TypeReference;
import org.springframework.aot.hint.predicate.RuntimeHintsPredicates;
+import org.springframework.aot.test.generate.TestGenerationContext;
import org.springframework.aot.test.generator.compile.Comp... | true |
Other | spring-projects | spring-framework | 58b0251af14f177a1accf08336987a149cf7e200.json | Relocate TestGenerationContext to spring-core-test
This commit moves the test implementation for GenerationContext in
spring-core-test. This also removes the copy we had in testfixtures
See gh-28877 | spring-context/src/test/java/org/springframework/context/aot/GeneratedClassHandlerTests.java | @@ -26,8 +26,8 @@
import org.springframework.aot.hint.MemberCategory;
import org.springframework.aot.hint.TypeReference;
import org.springframework.aot.hint.predicate.RuntimeHintsPredicates;
+import org.springframework.aot.test.generate.TestGenerationContext;
import org.springframework.core.io.InputStreamSource;
-i... | true |
Other | spring-projects | spring-framework | 58b0251af14f177a1accf08336987a149cf7e200.json | Relocate TestGenerationContext to spring-core-test
This commit moves the test implementation for GenerationContext in
spring-core-test. This also removes the copy we had in testfixtures
See gh-28877 | spring-context/src/test/java/org/springframework/context/aot/ReflectiveProcessorBeanFactoryInitializationAotProcessorTests.java | @@ -24,13 +24,13 @@
import org.springframework.aot.hint.annotation.Reflective;
import org.springframework.aot.hint.predicate.ReflectionHintsPredicates;
import org.springframework.aot.hint.predicate.RuntimeHintsPredicates;
+import org.springframework.aot.test.generate.TestGenerationContext;
import org.springframewor... | true |
Other | spring-projects | spring-framework | 58b0251af14f177a1accf08336987a149cf7e200.json | Relocate TestGenerationContext to spring-core-test
This commit moves the test implementation for GenerationContext in
spring-core-test. This also removes the copy we had in testfixtures
See gh-28877 | spring-context/src/test/java/org/springframework/context/aot/RuntimeHintsBeanFactoryInitializationAotProcessorTests.java | @@ -29,14 +29,14 @@
import org.springframework.aot.hint.ResourceBundleHint;
import org.springframework.aot.hint.RuntimeHints;
import org.springframework.aot.hint.RuntimeHintsRegistrar;
+import org.springframework.aot.test.generate.TestGenerationContext;
import org.springframework.beans.BeanInstantiationException;
... | true |
Other | spring-projects | spring-framework | 58b0251af14f177a1accf08336987a149cf7e200.json | Relocate TestGenerationContext to spring-core-test
This commit moves the test implementation for GenerationContext in
spring-core-test. This also removes the copy we had in testfixtures
See gh-28877 | spring-context/src/test/java/org/springframework/context/generator/ApplicationContextAotGeneratorRuntimeHintsTests.java | @@ -27,6 +27,7 @@
import org.springframework.aot.test.agent.EnabledIfRuntimeHintsAgent;
import org.springframework.aot.test.agent.RuntimeHintsInvocations;
import org.springframework.aot.test.agent.RuntimeHintsRecorder;
+import org.springframework.aot.test.generate.TestGenerationContext;
import org.springframework.a... | true |
Other | spring-projects | spring-framework | 58b0251af14f177a1accf08336987a149cf7e200.json | Relocate TestGenerationContext to spring-core-test
This commit moves the test implementation for GenerationContext in
spring-core-test. This also removes the copy we had in testfixtures
See gh-28877 | spring-core-test/src/main/java/org/springframework/aot/test/generate/TestGenerationContext.java | @@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.test.aot.generate;
+package org.springframework.aot.test.generate;
import org.springframework.aot.generate.ClassNameGenerator;
import org.springframework.aot.generate.DefaultGenerationContext;
@@ -31,6 +31,14 @@
*/
public cl... | true |
Other | spring-projects | spring-framework | 58b0251af14f177a1accf08336987a149cf7e200.json | Relocate TestGenerationContext to spring-core-test
This commit moves the test implementation for GenerationContext in
spring-core-test. This also removes the copy we had in testfixtures
See gh-28877 | spring-core-test/src/main/java/org/springframework/aot/test/generate/TestTarget.java | @@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.core.testfixture.aot.generate;
+package org.springframework.aot.test.generate;
/**
* A <em>default target class</em> used by tests of code generation. | true |
Other | spring-projects | spring-framework | 58b0251af14f177a1accf08336987a149cf7e200.json | Relocate TestGenerationContext to spring-core-test
This commit moves the test implementation for GenerationContext in
spring-core-test. This also removes the copy we had in testfixtures
See gh-28877 | spring-core-test/src/main/java/org/springframework/aot/test/generate/package-info.java | @@ -3,7 +3,7 @@
*/
@NonNullApi
@NonNullFields
-package org.springframework.test.aot.generate;
+package org.springframework.aot.test.generate;
import org.springframework.lang.NonNullApi;
import org.springframework.lang.NonNullFields; | true |
Other | spring-projects | spring-framework | 58b0251af14f177a1accf08336987a149cf7e200.json | Relocate TestGenerationContext to spring-core-test
This commit moves the test implementation for GenerationContext in
spring-core-test. This also removes the copy we had in testfixtures
See gh-28877 | spring-core/src/test/java/org/springframework/aot/generate/DefaultGenerationContextTests.java | @@ -16,14 +16,12 @@
package org.springframework.aot.generate;
-import java.io.IOException;
import java.util.function.Consumer;
import org.junit.jupiter.api.Test;
import org.springframework.aot.generate.GeneratedFiles.Kind;
import org.springframework.aot.hint.RuntimeHints;
-import org.springframework.core.t... | true |
Other | spring-projects | spring-framework | 58b0251af14f177a1accf08336987a149cf7e200.json | Relocate TestGenerationContext to spring-core-test
This commit moves the test implementation for GenerationContext in
spring-core-test. This also removes the copy we had in testfixtures
See gh-28877 | spring-core/src/testFixtures/java/org/springframework/core/testfixture/aot/generate/TestGenerationContext.java | @@ -1,56 +0,0 @@
-/*
- * Copyright 2002-2022 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 | 58b0251af14f177a1accf08336987a149cf7e200.json | Relocate TestGenerationContext to spring-core-test
This commit moves the test implementation for GenerationContext in
spring-core-test. This also removes the copy we had in testfixtures
See gh-28877 | spring-orm/src/test/java/org/springframework/orm/jpa/persistenceunit/PersistenceManagedTypesBeanRegistrationAotProcessorTests.java | @@ -22,6 +22,7 @@
import org.junit.jupiter.api.Test;
+import org.springframework.aot.test.generate.TestGenerationContext;
import org.springframework.aot.test.generator.compile.Compiled;
import org.springframework.aot.test.generator.compile.TestCompiler;
import org.springframework.context.ApplicationContextIniti... | true |
Other | spring-projects | spring-framework | 58b0251af14f177a1accf08336987a149cf7e200.json | Relocate TestGenerationContext to spring-core-test
This commit moves the test implementation for GenerationContext in
spring-core-test. This also removes the copy we had in testfixtures
See gh-28877 | spring-orm/src/test/java/org/springframework/orm/jpa/support/PersistenceAnnotationBeanPostProcessorAotContributionTests.java | @@ -34,6 +34,7 @@
import org.springframework.aot.hint.FieldMode;
import org.springframework.aot.hint.TypeReference;
+import org.springframework.aot.test.generate.TestGenerationContext;
import org.springframework.aot.test.generator.compile.CompileWithTargetClassAccess;
import org.springframework.aot.test.generator... | true |
Other | spring-projects | spring-framework | 58b0251af14f177a1accf08336987a149cf7e200.json | Relocate TestGenerationContext to spring-core-test
This commit moves the test implementation for GenerationContext in
spring-core-test. This also removes the copy we had in testfixtures
See gh-28877 | spring-tx/spring-tx.gradle | @@ -17,6 +17,7 @@ dependencies {
optional("org.jetbrains.kotlin:kotlin-stdlib")
optional("org.jetbrains.kotlinx:kotlinx-coroutines-core")
optional("org.jetbrains.kotlinx:kotlinx-coroutines-reactor")
+ testImplementation(project(":spring-core-test"))
testImplementation(testFixtures(project(":spring-beans")))
t... | true |
Other | spring-projects | spring-framework | 58b0251af14f177a1accf08336987a149cf7e200.json | Relocate TestGenerationContext to spring-core-test
This commit moves the test implementation for GenerationContext in
spring-core-test. This also removes the copy we had in testfixtures
See gh-28877 | spring-tx/src/test/java/org/springframework/transaction/annotation/TransactionBeanRegistrationAotProcessorTests.java | @@ -21,12 +21,12 @@
import org.springframework.aot.generate.GenerationContext;
import org.springframework.aot.hint.MemberCategory;
import org.springframework.aot.hint.predicate.RuntimeHintsPredicates;
+import org.springframework.aot.test.generate.TestGenerationContext;
import org.springframework.beans.factory.aot.B... | true |
Other | spring-projects | spring-framework | e57b5f1dfcff0b993408f5e8b26e551b345f0a5c.json | Register runtime hints for @Sql scripts
SqlScriptsTestExecutionListener now implements AotTestExecutionListener
in order to register run-time hints for SQL scripts used by test
classes and test methods annotated with @Sql if the configured or
detected SQL scripts are classpath resources.
Closes gh-29027 | spring-test/src/main/java/org/springframework/test/context/jdbc/SqlScriptsTestExecutionListener.java | @@ -17,14 +17,17 @@
package org.springframework.test.context.jdbc;
import java.lang.reflect.Method;
+import java.util.Arrays;
import java.util.List;
import java.util.Set;
+import java.util.stream.Stream;
import javax.sql.DataSource;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.L... | true |
Other | spring-projects | spring-framework | e57b5f1dfcff0b993408f5e8b26e551b345f0a5c.json | Register runtime hints for @Sql scripts
SqlScriptsTestExecutionListener now implements AotTestExecutionListener
in order to register run-time hints for SQL scripts used by test
classes and test methods annotated with @Sql if the configured or
detected SQL scripts are classpath resources.
Closes gh-29027 | spring-test/src/test/java/org/springframework/test/context/aot/TestContextAotGeneratorTests.java | @@ -191,6 +191,12 @@ private static void assertRuntimeHints(RuntimeHints runtimeHints) {
// @WebAppConfiguration(value = ...)
assertThat(resource().forResource("/META-INF/web-resources/resources/Spring.js")).accepts(runtimeHints);
assertThat(resource().forResource("/META-INF/web-resources/WEB-INF/views/home.js... | true |
Other | spring-projects | spring-framework | 111a9902acbfcaa8edeb24cfbd9fc8ad0c46e3c0.json | Fix typo in data-access section
See gh-29048 | src/docs/asciidoc/data-access.adoc | @@ -1520,7 +1520,7 @@ programming arrangements as the following listing shows:
Note that there are special considerations for the returned `Publisher` with regards to
Reactive Streams cancellation signals. See the <<tx-prog-operator-cancel>> section under
-"Using the TransactionOperator" for more details.
+"Using t... | false |
Other | spring-projects | spring-framework | a68d4ae25ca3225c1c236718330964fe116dddf6.json | Register runtime hints for ActiveProfilesResolvers
This commit introduces automatic registration of runtime hints for
custom ActiveProfilesResolver implementations configured via the
`resolver` attribute in @ActiveProfiles.
Closes gh-29022 | spring-test/src/main/java/org/springframework/test/context/aot/hint/StandardTestRuntimeHints.java | @@ -20,12 +20,17 @@
import java.util.List;
import org.springframework.aot.hint.RuntimeHints;
+import org.springframework.core.annotation.MergedAnnotations;
+import org.springframework.test.context.ActiveProfiles;
+import org.springframework.test.context.ActiveProfilesResolver;
import org.springframework.test.conte... | true |
Other | spring-projects | spring-framework | a68d4ae25ca3225c1c236718330964fe116dddf6.json | Register runtime hints for ActiveProfilesResolvers
This commit introduces automatic registration of runtime hints for
custom ActiveProfilesResolver implementations configured via the
`resolver` attribute in @ActiveProfiles.
Closes gh-29022 | spring-test/src/test/java/org/springframework/test/context/aot/TestContextAotGeneratorTests.java | @@ -35,6 +35,7 @@
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;
+import org.springframework.core.env.Profiles;
import org.springframework.javapoet.ClassName;
import org.spri... | true |
Other | spring-projects | spring-framework | a68d4ae25ca3225c1c236718330964fe116dddf6.json | Register runtime hints for ActiveProfilesResolvers
This commit introduces automatic registration of runtime hints for
custom ActiveProfilesResolver implementations configured via the
`resolver` attribute in @ActiveProfiles.
Closes gh-29022 | spring-test/src/test/java/org/springframework/test/context/aot/samples/basic/BasicSpringJupiterTests.java | @@ -23,6 +23,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.ApplicationContext;
+import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.TestExecutionListeners;
... | true |
Other | spring-projects | spring-framework | a68d4ae25ca3225c1c236718330964fe116dddf6.json | Register runtime hints for ActiveProfilesResolvers
This commit introduces automatic registration of runtime hints for
custom ActiveProfilesResolver implementations configured via the
`resolver` attribute in @ActiveProfiles.
Closes gh-29022 | spring-test/src/test/java/org/springframework/test/context/aot/samples/basic/BasicTestConfiguration.java | @@ -18,8 +18,10 @@
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Profile;
import org.springframework.test.context.aot.samples.common.DefaultMessageService;
import org.springframework.test.context.aot.... | true |
Other | spring-projects | spring-framework | a68d4ae25ca3225c1c236718330964fe116dddf6.json | Register runtime hints for ActiveProfilesResolvers
This commit introduces automatic registration of runtime hints for
custom ActiveProfilesResolver implementations configured via the
`resolver` attribute in @ActiveProfiles.
Closes gh-29022 | spring-test/src/test/java/org/springframework/test/context/aot/samples/basic/SpanishActiveProfilesResolver.java | @@ -0,0 +1,32 @@
+/*
+ * Copyright 2002-2022 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 | a68d4ae25ca3225c1c236718330964fe116dddf6.json | Register runtime hints for ActiveProfilesResolvers
This commit introduces automatic registration of runtime hints for
custom ActiveProfilesResolver implementations configured via the
`resolver` attribute in @ActiveProfiles.
Closes gh-29022 | spring-test/src/test/java/org/springframework/test/context/aot/samples/common/SpanishMessageService.java | @@ -0,0 +1,30 @@
+/*
+ * Copyright 2002-2022 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 | afff8499924f367b8e76ca88a22d49ca0f039e6b.json | Add missing package-info.java file | spring-test/src/main/java/org/springframework/test/context/aot/hint/package-info.java | @@ -0,0 +1,10 @@
+/**
+ * Support for registering hints for reflection and resources in the
+ * <em>Spring TestContext Framework</em>.
+ */
+@NonNullApi
+@NonNullFields
+package org.springframework.test.context.aot.hint;
+
+import org.springframework.lang.NonNullApi;
+import org.springframework.lang.NonNullFields; | false |
Other | spring-projects | spring-framework | 15a6373fed1b8acf6dcda7cc2a144de34e32f4cd.json | Avoid nullability warnings | spring-test/src/main/java/org/springframework/test/web/reactive/server/CookieAssertions.java | @@ -17,6 +17,7 @@
package org.springframework.test.web.reactive.server;
import java.time.Duration;
+import java.util.Objects;
import java.util.function.Consumer;
import org.hamcrest.Matcher;
@@ -210,10 +211,10 @@ public WebTestClient.ResponseSpec sameSite(String name, String expected) {
private ResponseCookie... | true |
Other | spring-projects | spring-framework | 15a6373fed1b8acf6dcda7cc2a144de34e32f4cd.json | Avoid nullability warnings | spring-test/src/main/java/org/springframework/test/web/reactive/server/HeaderAssertions.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * Copyright 2002-2021 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 java.net.URI;
import... | true |
Other | spring-projects | spring-framework | c5de5c99390a69f23e7682b7748c273b01a63907.json | Update Javadoc of LogFormatUtils
Closes gh-27632 | spring-core/src/main/java/org/springframework/core/log/LogFormatUtils.java | @@ -36,8 +36,9 @@
public abstract class LogFormatUtils {
/**
- * Variant of {@link #formatValue(Object, int, boolean)} and a convenience
- * method that truncates at 100 characters when {@code limitLength} is set.
+ * Convenience variant of {@link #formatValue(Object, int, boolean)} that
+ * limits the length ... | false |
Other | spring-projects | spring-framework | 40d84c297bd88a2c4b7979b14eb7925e5fce0170.json | Add support for custom expression parsing
See gh-27604 | spring-context/src/main/java/org/springframework/context/expression/CachedExpressionEvaluator.java | @@ -86,7 +86,7 @@ protected Expression getExpression(Map<ExpressionKey, Expression> cache,
ExpressionKey expressionKey = createKey(elementKey, expression);
Expression expr = cache.get(expressionKey);
if (expr == null) {
- expr = getParser().parseExpression(expression);
+ expr = parseExpression(expression);... | false |
Other | spring-projects | spring-framework | 0a58419df4fee5e50b6831c065c1a14bedc5f5f8.json | Add immutable MultiValueMap wrapper
This commit introduces UnmodifiableMultiValueMap, an immutable wrapper
around a MultiValueMap, similar to what is returned by
Collections.unmodifiable*.
CollectionUtils::unmodifiableMultiValueMap now returns
UnmodifiableMultiValueMap.
Closes gh-27608 | spring-core/src/main/java/org/springframework/util/CollectionUtils.java | @@ -470,13 +470,10 @@ public static <K, V> MultiValueMap<K, V> unmodifiableMultiValueMap(
MultiValueMap<? extends K, ? extends V> targetMap) {
Assert.notNull(targetMap, "'targetMap' must not be null");
- Map<K, List<V>> result = newLinkedHashMap(targetMap.size());
- targetMap.forEach((key, value) -> {
- Li... | true |
Other | spring-projects | spring-framework | 0a58419df4fee5e50b6831c065c1a14bedc5f5f8.json | Add immutable MultiValueMap wrapper
This commit introduces UnmodifiableMultiValueMap, an immutable wrapper
around a MultiValueMap, similar to what is returned by
Collections.unmodifiable*.
CollectionUtils::unmodifiableMultiValueMap now returns
UnmodifiableMultiValueMap.
Closes gh-27608 | spring-core/src/main/java/org/springframework/util/UnmodifiableMultiValueMap.java | @@ -0,0 +1,732 @@
+/*
+ * Copyright 2002-2021 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 | 0a58419df4fee5e50b6831c065c1a14bedc5f5f8.json | Add immutable MultiValueMap wrapper
This commit introduces UnmodifiableMultiValueMap, an immutable wrapper
around a MultiValueMap, similar to what is returned by
Collections.unmodifiable*.
CollectionUtils::unmodifiableMultiValueMap now returns
UnmodifiableMultiValueMap.
Closes gh-27608 | spring-core/src/test/java/org/springframework/util/UnmodifiableMultiValueMapTests.java | @@ -0,0 +1,179 @@
+/*
+ * Copyright 2002-2021 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 | 0a58419df4fee5e50b6831c065c1a14bedc5f5f8.json | Add immutable MultiValueMap wrapper
This commit introduces UnmodifiableMultiValueMap, an immutable wrapper
around a MultiValueMap, similar to what is returned by
Collections.unmodifiable*.
CollectionUtils::unmodifiableMultiValueMap now returns
UnmodifiableMultiValueMap.
Closes gh-27608 | spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java | @@ -479,8 +479,9 @@ private UriComponents buildInternal(EncodingHint hint) {
result = new OpaqueUriComponents(this.scheme, this.ssp, this.fragment);
}
else {
+ MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<>(this.queryParams);
HierarchicalUriComponents uric = new HierarchicalUriCom... | true |
Other | spring-projects | spring-framework | 6fd0615be9003a86c4ac5a0cb89e78aac4cc83f6.json | Fix JDK18 declaration in CI pipeline
See gh-27607 | ci/scripts/check-project.sh | @@ -4,6 +4,6 @@ set -e
source $(dirname $0)/common.sh
pushd git-repo > /dev/null
-./gradlew -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false -Porg.gradle.java.installations.fromEnv=JDK17 \
+./gradlew -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false -Porg.gradle.java.installations.fromEnv=JDK17,J... | false |
Other | spring-projects | spring-framework | 65bf5f7c81fb35f3291a548e9d326a65e331e5eb.json | Add JDK18 variant to CI pipeline
This commit adds a new JDK 18 variant to the CI build image and
configures a JDK18 build (sources compiled with JDK17, tests compiled
and run with JDK18) to the CI pipeline.
Closes gh-27607 | ci/images/ci-image/Dockerfile | @@ -1,10 +1,11 @@
-FROM ubuntu:focal-20210827
+FROM ubuntu:focal-20211006
ADD setup.sh /setup.sh
ADD get-jdk-url.sh /get-jdk-url.sh
RUN ./setup.sh
ENV JAVA_HOME /opt/openjdk/java17
ENV JDK17 /opt/openjdk/java17
+ENV JDK18 /opt/openjdk/java18
ENV PATH $JAVA_HOME/bin:$PATH | true |
Other | spring-projects | spring-framework | 65bf5f7c81fb35f3291a548e9d326a65e331e5eb.json | Add JDK18 variant to CI pipeline
This commit adds a new JDK 18 variant to the CI build image and
configures a JDK18 build (sources compiled with JDK17, tests compiled
and run with JDK18) to the CI pipeline.
Closes gh-27607 | ci/images/get-jdk-url.sh | @@ -2,10 +2,13 @@
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"
- ;;
+ java17)
+ echo "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17%2B35/OpenJDK17-jdk_x64_linux_hotspot... | true |
Other | spring-projects | spring-framework | 65bf5f7c81fb35f3291a548e9d326a65e331e5eb.json | Add JDK18 variant to CI pipeline
This commit adds a new JDK 18 variant to the CI build image and
configures a JDK18 build (sources compiled with JDK17, tests compiled
and run with JDK18) to the CI pipeline.
Closes gh-27607 | ci/pipeline.yml | @@ -85,6 +85,13 @@ resources:
source:
<<: *docker-resource-source
repository: ((docker-hub-organization))/spring-framework-ci-jdk17
+- name: every-morning
+ type: time
+ icon: alarm
+ source:
+ start: 8:00 AM
+ stop: 9:00 AM
+ location: Europe/Vienna
- name: artifactory-repo
type: artifacto... | true |
Other | spring-projects | spring-framework | 4ec8ae42f48da6415a3be29507c9e327dec94538.json | Add test cases to SpEL's MapAccessorTests
Closes gh-26981 | spring-context/src/test/java/org/springframework/context/expression/MapAccessorTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2019 the original author or authors.
+ * Copyright 2002-2021 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.
@@ -67,6 +67,17 @@ public void mapAccessorCompi... | false |
Other | spring-projects | spring-framework | 2c89ff934ddd5b7efa14f715c4ec6a67bab7fd69.json | Update copyright date
See gh-27560 | spring-context-support/src/main/java/org/springframework/scheduling/quartz/SchedulerFactoryBean.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2018 the original author or authors.
+ * Copyright 2002-2021 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. | true |
Other | spring-projects | spring-framework | 2c89ff934ddd5b7efa14f715c4ec6a67bab7fd69.json | Update copyright date
See gh-27560 | spring-context-support/src/test/java/org/springframework/scheduling/quartz/QuartzSupportTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * Copyright 2002-2021 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. | true |
Other | spring-projects | spring-framework | 66826ac960be20aa0df25f22f1a47612c5b91845.json | Fix typo in Javadoc in HeaderAssertions
Closes gh-27589 | spring-test/src/main/java/org/springframework/test/web/reactive/server/HeaderAssertions.java | @@ -115,7 +115,7 @@ public WebTestClient.ResponseSpec valueMatches(String name, String pattern) {
/**
* Match all values of the response header with the given regex
* patterns which are applied to the values of the header in the
- * same order. Note that the number of pattenrs must match the
+ * same order. N... | false |
Other | spring-projects | spring-framework | 9af11ad5ce137e8fe71f0ce9e980745e4c840818.json | Fix Javadoc formatting issues | spring-core/src/main/java/org/springframework/core/convert/TypeDescriptor.java | @@ -37,7 +37,7 @@
/**
* Contextual descriptor about a type to convert from or to.
- * Capable of representing arrays and generic collection types.
+ * <p>Capable of representing arrays and generic collection types.
*
* @author Keith Donald
* @author Andy Clement
@@ -345,9 +345,9 @@ public TypeDescriptor getE... | true |
Other | spring-projects | spring-framework | 9af11ad5ce137e8fe71f0ce9e980745e4c840818.json | Fix Javadoc formatting issues | spring-expression/src/main/java/org/springframework/expression/TypeConverter.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2017 the original author or authors.
+ * Copyright 2002-2021 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.
@@ -44,7 +44,7 @@ public interface TypeConverte... | true |
Other | spring-projects | spring-framework | b3eb1a2ad725ab4e8c9af7e1fe51840fa01289d0.json | Improve example in Javadoc for HttpEntity
Closes gh-27586 | spring-web/src/main/java/org/springframework/http/HttpEntity.java | @@ -28,7 +28,7 @@
* <pre class="code">
* HttpHeaders headers = new HttpHeaders();
* headers.setContentType(MediaType.TEXT_PLAIN);
- * HttpEntity<String> entity = new HttpEntity<String>(helloWorld, headers);
+ * HttpEntity<String> entity = new HttpEntity<String>("helloWorld", headers);
* ... | false |
Other | spring-projects | spring-framework | 8c3cab7eadcb07be11ed725bc82277f046a4fe7c.json | Improve usage of AdvisedSupport.getAdvisors() | spring-aop/src/main/java/org/springframework/aop/framework/Advised.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2018 the original author or authors.
+ * 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.
@@ -223,4 +223,12 @@ public interface Advised e... | true |
Other | spring-projects | spring-framework | 8c3cab7eadcb07be11ed725bc82277f046a4fe7c.json | Improve usage of AdvisedSupport.getAdvisors() | spring-aop/src/main/java/org/springframework/aop/framework/AdvisedSupport.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2019 the original author or authors.
+ * 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.
@@ -95,12 +95,6 @@ public class AdvisedSupport ... | true |
Other | spring-projects | spring-framework | 8c3cab7eadcb07be11ed725bc82277f046a4fe7c.json | Improve usage of AdvisedSupport.getAdvisors() | spring-aop/src/main/java/org/springframework/aop/framework/AopProxyUtils.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2019 the original author or authors.
+ * 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.
@@ -206,7 +206,7 @@ public static boolean equal... | true |
Other | spring-projects | spring-framework | 8c3cab7eadcb07be11ed725bc82277f046a4fe7c.json | Improve usage of AdvisedSupport.getAdvisors() | spring-aop/src/main/java/org/springframework/aop/framework/CglibAopProxy.java | @@ -125,7 +125,7 @@ class CglibAopProxy implements AopProxy, Serializable {
*/
public CglibAopProxy(AdvisedSupport config) throws AopConfigException {
Assert.notNull(config, "AdvisedSupport must not be null");
- if (config.getAdvisors().length == 0 && config.getTargetSource() == AdvisedSupport.EMPTY_TARGET_SOU... | true |
Other | spring-projects | spring-framework | 8c3cab7eadcb07be11ed725bc82277f046a4fe7c.json | Improve usage of AdvisedSupport.getAdvisors() | spring-aop/src/main/java/org/springframework/aop/framework/JdkDynamicAopProxy.java | @@ -104,7 +104,7 @@ final class JdkDynamicAopProxy implements AopProxy, InvocationHandler, Serializa
*/
public JdkDynamicAopProxy(AdvisedSupport config) throws AopConfigException {
Assert.notNull(config, "AdvisedSupport must not be null");
- if (config.getAdvisors().length == 0 && config.getTargetSource() == A... | true |
Other | spring-projects | spring-framework | 2e2d6621586304749372b3cd9888c6955bdf3b53.json | Add toEntityFlux methods
Closes gh-26023 | spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClient.java | @@ -622,6 +622,22 @@ public <T> Mono<ResponseEntity<List<T>>> toEntityList(ParameterizedTypeReference
handleBodyFlux(response, response.bodyToFlux(elementTypeRef))));
}
+ @Override
+ public <T> Mono<ResponseEntity<Flux<T>>> toEntityFlux(Class<T> elementType) {
+ return this.responseMono.map(response ->... | true |
Other | spring-projects | spring-framework | 2e2d6621586304749372b3cd9888c6955bdf3b53.json | Add toEntityFlux methods
Closes gh-26023 | spring-webflux/src/main/java/org/springframework/web/reactive/function/client/WebClient.java | @@ -846,6 +846,30 @@ ResponseSpec onRawStatus(IntPredicate statusCodePredicate,
*/
<T> Mono<ResponseEntity<T>> toEntity(ParameterizedTypeReference<T> bodyTypeReference);
+ /**
+ * Return a {@code ResponseEntity} with the body decoded to a {@code Flux}
+ * of elements of the given type. For an error respon... | true |
Other | spring-projects | spring-framework | 2e2d6621586304749372b3cd9888c6955bdf3b53.json | Add toEntityFlux methods
Closes gh-26023 | spring-webflux/src/test/java/org/springframework/web/reactive/function/client/WebClientIntegrationTests.java | @@ -279,7 +279,7 @@ void retrieveJsonArray(ClientHttpConnector connector) {
}
@ParameterizedWebClientTest
- void retrieveJsonArrayAsResponseEntity(ClientHttpConnector connector) {
+ void retrieveJsonArrayAsResponseEntityList(ClientHttpConnector connector) {
startServer(connector);
String content = "[{\"ba... | true |
Other | spring-projects | spring-framework | 0f6038af70434a20fc4112a79c00c411ab88e519.json | Log can[Se]Deserialize error in Jackson codecs
Closes gh-25892 | spring-web/src/main/java/org/springframework/http/codec/json/AbstractJackson2Decoder.java | @@ -21,6 +21,7 @@
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
+import java.util.concurrent.atomic.AtomicReference;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationFeature;
@@ -99,8 +100,20 @@ public int getMaxInMemorySi... | true |
Other | spring-projects | spring-framework | 0f6038af70434a20fc4112a79c00c411ab88e519.json | Log can[Se]Deserialize error in Jackson codecs
Closes gh-25892 | spring-web/src/main/java/org/springframework/http/codec/json/AbstractJackson2Encoder.java | @@ -23,6 +23,7 @@
import java.util.Collections;
import java.util.List;
import java.util.Map;
+import java.util.concurrent.atomic.AtomicReference;
import com.fasterxml.jackson.core.JsonEncoding;
import com.fasterxml.jackson.core.JsonGenerator;
@@ -111,8 +112,23 @@ public boolean canEncode(ResolvableType elementTy... | true |
Other | spring-projects | spring-framework | 0f6038af70434a20fc4112a79c00c411ab88e519.json | Log can[Se]Deserialize error in Jackson codecs
Closes gh-25892 | spring-web/src/main/java/org/springframework/http/codec/json/Jackson2CodecSupport.java | @@ -26,6 +26,7 @@
import com.fasterxml.jackson.annotation.JsonView;
import com.fasterxml.jackson.databind.JavaType;
+import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.commons.logging.Log;
@@ -108,7 +109,34 @@ protected List<MimeType... | true |
Other | spring-projects | spring-framework | 3eb2c5e22f3a114b8f8c989bd7ef079590b24c4a.json | Use static accessors in DefaultSimpUserRegistry
Closes gh-26010 | spring-websocket/src/main/java/org/springframework/web/socket/messaging/DefaultSimpUserRegistry.java | @@ -27,14 +27,14 @@
import org.springframework.core.Ordered;
import org.springframework.lang.Nullable;
import org.springframework.messaging.Message;
+import org.springframework.messaging.MessageHeaders;
import org.springframework.messaging.simp.SimpMessageHeaderAccessor;
import org.springframework.messaging.simp.u... | false |
Other | spring-projects | spring-framework | acbbf61be878f7924e29d71fe95fe001a8d29183.json | Preserve registration order in @ActiveProfiles
With this commit, bean definition profiles declared via @ActiveProfiles
are once again stored in registration order, in order to support use
cases in Spring Boot and other frameworks that depend on the
registration order.
This effectively reverts the changes made in conj... | spring-test/src/main/java/org/springframework/test/context/ActiveProfiles.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 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.
@@ -83,7 +83,7 @@
* <p>The default value is ... | true |
Other | spring-projects | spring-framework | acbbf61be878f7924e29d71fe95fe001a8d29183.json | Preserve registration order in @ActiveProfiles
With this commit, bean definition profiles declared via @ActiveProfiles
are once again stored in registration order, in order to support use
cases in Spring Boot and other frameworks that depend on the
registration order.
This effectively reverts the changes made in conj... | spring-test/src/main/java/org/springframework/test/context/MergedContextConfiguration.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -19,8 +19,8 @@
import java.io.Serializable;... | true |
Other | spring-projects | spring-framework | acbbf61be878f7924e29d71fe95fe001a8d29183.json | Preserve registration order in @ActiveProfiles
With this commit, bean definition profiles declared via @ActiveProfiles
are once again stored in registration order, in order to support use
cases in Spring Boot and other frameworks that depend on the
registration order.
This effectively reverts the changes made in conj... | spring-test/src/main/java/org/springframework/test/context/support/ActiveProfilesUtils.java | @@ -16,8 +16,11 @@
package org.springframework.test.context.support;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.LinkedHashSet;
+import java.util.List;
import java.util.Set;
-import java.util.TreeSet;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.Lo... | true |
Other | spring-projects | spring-framework | acbbf61be878f7924e29d71fe95fe001a8d29183.json | Preserve registration order in @ActiveProfiles
With this commit, bean definition profiles declared via @ActiveProfiles
are once again stored in registration order, in order to support use
cases in Spring Boot and other frameworks that depend on the
registration order.
This effectively reverts the changes made in conj... | spring-test/src/test/java/org/springframework/test/context/MergedContextConfigurationTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 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.
@@ -143,7 +143,7 @@ void hashCodeWithSameProfil... | true |
Other | spring-projects | spring-framework | acbbf61be878f7924e29d71fe95fe001a8d29183.json | Preserve registration order in @ActiveProfiles
With this commit, bean definition profiles declared via @ActiveProfiles
are once again stored in registration order, in order to support use
cases in Spring Boot and other frameworks that depend on the
registration order.
This effectively reverts the changes made in conj... | spring-test/src/test/java/org/springframework/test/context/cache/ContextCacheTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 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.
@@ -90,8 +90,8 @@ void verifyCacheKeyIsBasedOnA... | true |
Other | spring-projects | spring-framework | acbbf61be878f7924e29d71fe95fe001a8d29183.json | Preserve registration order in @ActiveProfiles
With this commit, bean definition profiles declared via @ActiveProfiles
are once again stored in registration order, in order to support use
cases in Spring Boot and other frameworks that depend on the
registration order.
This effectively reverts the changes made in conj... | spring-test/src/test/java/org/springframework/test/context/support/ActiveProfilesUtilsTests.java | @@ -67,12 +67,12 @@ void resolveActiveProfilesWithEmptyProfiles() {
@Test
void resolveActiveProfilesWithDuplicatedProfiles() {
- assertResolvedProfiles(DuplicatedProfiles.class, "bar", "baz", "foo");
+ assertResolvedProfiles(DuplicatedProfiles.class, "foo", "bar", "baz");
}
@Test
void resolveActiveProfi... | true |
Other | spring-projects | spring-framework | acbbf61be878f7924e29d71fe95fe001a8d29183.json | Preserve registration order in @ActiveProfiles
With this commit, bean definition profiles declared via @ActiveProfiles
are once again stored in registration order, in order to support use
cases in Spring Boot and other frameworks that depend on the
registration order.
This effectively reverts the changes made in conj... | spring-test/src/test/java/org/springframework/test/context/support/BootstrapTestUtilsMergedConfigTests.java | @@ -373,6 +373,8 @@ void buildMergedConfigWithDuplicateConfigurationOnSuperclassAndSubclass() {
void buildMergedConfigWithDuplicateConfigurationOnEnclosingClassAndNestedClass() {
compareApplesToApples(AppleConfigTestCase.class, AppleConfigTestCase.Nested.class);
compareApplesToApples(AppleConfigTestCase.Nested.... | true |
Other | spring-projects | spring-framework | 44239b2d7b6026012da176339153df29aa13f305.json | Remove rogue semicolon | src/docs/asciidoc/web/webflux-webclient.adoc | @@ -102,7 +102,7 @@ To change the limit for default codecs, use the following:
.Java
----
WebClient webClient = WebClient.builder()
- .codecs(configurer -> configurer.defaultCodecs().maxInMemorySize(2 * 1024 * 1024));
+ .codecs(configurer -> configurer.defaultCodecs().maxInMemorySize(2 * 1024 * 1024))
.buil... | false |
Other | spring-projects | spring-framework | 45032602822f4bd943e53d66578a843c7cc810c4.json | Fix Dokka warnings | gradle/docs.gradle | @@ -106,6 +106,9 @@ dokka {
externalDocumentationLink {
url = new URL("https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/")
}
+ externalDocumentationLink {
+ url = new URL("https://r2dbc.io/spec/0.8.3.RELEASE/api/")
+ }
}
}
| true |
Other | spring-projects | spring-framework | 45032602822f4bd943e53d66578a843c7cc810c4.json | Fix Dokka warnings | spring-r2dbc/src/main/kotlin/org/springframework/r2dbc/core/DatabaseClientExtensions.kt | @@ -28,7 +28,7 @@ suspend fun DatabaseClient.GenericExecuteSpec.await() {
}
/**
- * Extension for [DatabaseClient.BindSpec.bind] providing a variant leveraging reified type parameters
+ * Extension for [DatabaseClient.GenericExecuteSpec.bind] providing a variant leveraging reified type parameters
*
* @author Ma... | true |
Other | spring-projects | spring-framework | fc9650a9a658cb3636400531afe6a87440f02f99.json | Finalize API for TestContextAnnotationUtils | spring-test/src/main/java/org/springframework/test/context/TestContextAnnotationUtils.java | @@ -24,7 +24,6 @@
import org.springframework.core.SpringProperties;
import org.springframework.core.annotation.AnnotatedElementUtils;
-import org.springframework.core.annotation.AnnotationAttributes;
import org.springframework.core.annotation.AnnotationUtils;
import org.springframework.core.annotation.MergedAnnot... | true |
Other | spring-projects | spring-framework | fc9650a9a658cb3636400531afe6a87440f02f99.json | Finalize API for TestContextAnnotationUtils | spring-test/src/main/java/org/springframework/test/context/support/AbstractTestContextBootstrapper.java | @@ -131,7 +131,7 @@ public final List<TestExecutionListener> getTestExecutionListeners() {
// Traverse the class hierarchy...
while (descriptor != null) {
Class<?> declaringClass = descriptor.getDeclaringClass();
- TestExecutionListeners testExecutionListeners = descriptor.synthesizeAnnotation();
+ T... | true |
Other | spring-projects | spring-framework | fc9650a9a658cb3636400531afe6a87440f02f99.json | Finalize API for TestContextAnnotationUtils | spring-test/src/main/java/org/springframework/test/context/support/ActiveProfilesUtils.java | @@ -81,7 +81,7 @@ static String[] resolveActiveProfiles(Class<?> testClass) {
while (descriptor != null) {
Class<?> rootDeclaringClass = descriptor.getRootDeclaringClass();
- ActiveProfiles annotation = descriptor.synthesizeAnnotation();
+ ActiveProfiles annotation = descriptor.getAnnotation();
if (l... | true |
Other | spring-projects | spring-framework | fc9650a9a658cb3636400531afe6a87440f02f99.json | Finalize API for TestContextAnnotationUtils | spring-test/src/main/java/org/springframework/test/context/support/ContextLoaderUtils.java | @@ -126,7 +126,7 @@ static List<List<ContextConfigurationAttributes>> resolveContextHierarchyAttribu
List<ContextConfigurationAttributes> configAttributesList = new ArrayList<>();
if (contextConfigDeclaredLocally) {
- ContextConfiguration contextConfiguration = (ContextConfiguration) desc.synthesizeAnnotat... | true |
Other | spring-projects | spring-framework | fc9650a9a658cb3636400531afe6a87440f02f99.json | Finalize API for TestContextAnnotationUtils | spring-test/src/main/java/org/springframework/test/context/support/DefaultActiveProfilesResolver.java | @@ -67,7 +67,7 @@ public String[] resolve(Class<?> testClass) {
return EMPTY_STRING_ARRAY;
}
else {
- ActiveProfiles annotation = descriptor.synthesizeAnnotation();
+ ActiveProfiles annotation = descriptor.getAnnotation();
if (logger.isTraceEnabled()) {
logger.trace(String.format("Retrieved @Acti... | true |
Other | spring-projects | spring-framework | fc9650a9a658cb3636400531afe6a87440f02f99.json | Finalize API for TestContextAnnotationUtils | spring-test/src/test/java/org/springframework/test/context/OverriddenMetaAnnotationAttributesTestContextAnnotationUtilsTests.java | @@ -0,0 +1,133 @@
+/*
+ * 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
... | true |
Other | spring-projects | spring-framework | fc9650a9a658cb3636400531afe6a87440f02f99.json | Finalize API for TestContextAnnotationUtils | spring-test/src/test/java/org/springframework/test/context/OverriddenMetaAnnotationAttributesTests.java | @@ -1,156 +0,0 @@
-/*
- * 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
... | true |
Other | spring-projects | spring-framework | fc9650a9a658cb3636400531afe6a87440f02f99.json | Finalize API for TestContextAnnotationUtils | spring-test/src/test/java/org/springframework/test/context/TestContextAnnotationUtilsTests.java | @@ -47,8 +47,9 @@
* Unit tests for {@link TestContextAnnotationUtils}.
*
* @author Sam Brannen
- * @since 4.0
- * @see OverriddenMetaAnnotationAttributesTests
+ * @since 5.3, though originally since 4.0 for the deprecated
+ * {@link org.springframework.test.util.MetaAnnotationUtils} support
+ * @see OverriddenMet... | true |
Other | spring-projects | spring-framework | 82fa3f3fc10c578a396ed3f97a1445f640f0b2ba.json | Reinstate tests for deprecated MetaAnnotationUtils | spring-test/src/test/java/org/springframework/test/util/MetaAnnotationUtilsTests.java | @@ -0,0 +1,639 @@
+/*
+ * 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
... | true |
Other | spring-projects | spring-framework | 82fa3f3fc10c578a396ed3f97a1445f640f0b2ba.json | Reinstate tests for deprecated MetaAnnotationUtils | spring-test/src/test/java/org/springframework/test/util/OverriddenMetaAnnotationAttributesTests.java | @@ -0,0 +1,158 @@
+/*
+ * 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
... | true |
Other | spring-projects | spring-framework | 0aa3205e3865c34ee98a5d14eeca03abf8f871d4.json | Fix nullability warnings | spring-messaging/src/main/java/org/springframework/messaging/handler/invocation/reactive/AbstractEncoderMethodReturnValueHandler.java | @@ -16,6 +16,7 @@
package org.springframework.messaging.handler.invocation.reactive;
+import java.lang.reflect.Method;
import java.util.Collections;
import java.util.List;
import java.util.Map;
@@ -120,7 +121,6 @@ public Mono<Void> handleReturnValue(
handleEncodedContent(Flux.from(publisher), returnType, m... | true |
Other | spring-projects | spring-framework | 0aa3205e3865c34ee98a5d14eeca03abf8f871d4.json | Fix nullability warnings | spring-test/src/main/java/org/springframework/test/context/TestContextAnnotationUtils.java | @@ -75,8 +75,10 @@ public abstract class TestContextAnnotationUtils {
private static final ConcurrentLruCache<Class<?>, EnclosingConfiguration> cachedEnclosingConfigurationModes =
new ConcurrentLruCache<>(32, TestContextAnnotationUtils::lookUpEnclosingConfiguration);
+ @Nullable
private static volatile Enclos... | true |
Other | spring-projects | spring-framework | 0aa3205e3865c34ee98a5d14eeca03abf8f871d4.json | Fix nullability warnings | spring-test/src/main/java/org/springframework/test/context/support/TestPropertySourceUtils.java | @@ -126,16 +126,15 @@ else if (!duplicationDetected(currentAttributes, previousAttributes)) {
}
private static boolean duplicationDetected(TestPropertySourceAttributes currentAttributes,
- TestPropertySourceAttributes previousAttributes) {
+ @Nullable TestPropertySourceAttributes previousAttributes) {
bo... | true |
Other | spring-projects | spring-framework | 0aa3205e3865c34ee98a5d14eeca03abf8f871d4.json | Fix nullability warnings | spring-tx/src/main/java/org/springframework/transaction/interceptor/TransactionAspectSupport.java | @@ -851,6 +851,7 @@ private static Object asFlow(Publisher<?> publisher) {
}
@SuppressWarnings("unchecked")
+ @Nullable
private static Object awaitSingleOrNull(Publisher<?> publisher, Object continuation) {
return AwaitKt.awaitSingleOrNull(publisher, (Continuation<Object>) continuation);
} | true |
Other | spring-projects | spring-framework | d04c5f8b2cb274b8f44c47b3783e5d29f3e21b43.json | Support multiple matchers in MockMvc Kotlin DSL
Previous incarnation of MockMvc Kotlin DSL tried to reuse directly
Java APIs like ModelResultMatchers or StatusResultMatchers, but
when using multiple matchers in DSL blocks like model { } or
status { }, only the last statement was taken in account which
was very confusi... | spring-test/src/main/java/org/springframework/test/web/servlet/result/FlashAttributeResultMatchers.java | @@ -18,6 +18,7 @@
import org.hamcrest.Matcher;
+import org.springframework.lang.Nullable;
import org.springframework.test.web.servlet.ResultMatcher;
import static org.hamcrest.MatcherAssert.assertThat;
@@ -54,7 +55,7 @@ public <T> ResultMatcher attribute(String name, Matcher<? super T> matcher) {
/**
* As... | true |
Other | spring-projects | spring-framework | d04c5f8b2cb274b8f44c47b3783e5d29f3e21b43.json | Support multiple matchers in MockMvc Kotlin DSL
Previous incarnation of MockMvc Kotlin DSL tried to reuse directly
Java APIs like ModelResultMatchers or StatusResultMatchers, but
when using multiple matchers in DSL blocks like model { } or
status { }, only the last statement was taken in account which
was very confusi... | spring-test/src/main/java/org/springframework/test/web/servlet/result/JsonPathResultMatchers.java | @@ -107,7 +107,7 @@ public <T> ResultMatcher value(Matcher<? super T> matcher, Class<T> targetType)
* @see #value(Matcher)
* @see #value(Matcher, Class)
*/
- public ResultMatcher value(Object expectedValue) {
+ public ResultMatcher value(@Nullable Object expectedValue) {
return result -> this.jsonPathHelper... | true |
Other | spring-projects | spring-framework | d04c5f8b2cb274b8f44c47b3783e5d29f3e21b43.json | Support multiple matchers in MockMvc Kotlin DSL
Previous incarnation of MockMvc Kotlin DSL tried to reuse directly
Java APIs like ModelResultMatchers or StatusResultMatchers, but
when using multiple matchers in DSL blocks like model { } or
status { }, only the last statement was taken in account which
was very confusi... | spring-test/src/main/java/org/springframework/test/web/servlet/result/ModelResultMatchers.java | @@ -18,6 +18,7 @@
import org.hamcrest.Matcher;
+import org.springframework.lang.Nullable;
import org.springframework.test.web.servlet.MvcResult;
import org.springframework.test.web.servlet.ResultMatcher;
import org.springframework.ui.ModelMap;
@@ -67,7 +68,7 @@ public <T> ResultMatcher attribute(String name, Ma... | true |
Other | spring-projects | spring-framework | d04c5f8b2cb274b8f44c47b3783e5d29f3e21b43.json | Support multiple matchers in MockMvc Kotlin DSL
Previous incarnation of MockMvc Kotlin DSL tried to reuse directly
Java APIs like ModelResultMatchers or StatusResultMatchers, but
when using multiple matchers in DSL blocks like model { } or
status { }, only the last statement was taken in account which
was very confusi... | spring-test/src/main/java/org/springframework/test/web/servlet/result/RequestResultMatchers.java | @@ -23,6 +23,7 @@
import org.hamcrest.Matcher;
+import org.springframework.lang.Nullable;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.test.web.servlet.ResultMatcher;
import org.springframework.util.Assert;
@@ -98,7 +99,7 @@ public <T> ResultMatcher asyncResult(Matcher<... | true |
Other | spring-projects | spring-framework | d04c5f8b2cb274b8f44c47b3783e5d29f3e21b43.json | Support multiple matchers in MockMvc Kotlin DSL
Previous incarnation of MockMvc Kotlin DSL tried to reuse directly
Java APIs like ModelResultMatchers or StatusResultMatchers, but
when using multiple matchers in DSL blocks like model { } or
status { }, only the last statement was taken in account which
was very confusi... | spring-test/src/main/kotlin/org/springframework/test/web/servlet/MockMvcResultMatchersDsl.kt | @@ -30,29 +30,29 @@ class MockMvcResultMatchersDsl internal constructor (private val actions: Result
/**
* @see MockMvcResultMatchers.request
*/
- fun request(matcher: RequestResultMatchers.() -> ResultMatcher) {
- actions.andExpect(MockMvcResultMatchers.request().matcher())
+ fun request(dsl: RequestResultMat... | true |
Other | spring-projects | spring-framework | d04c5f8b2cb274b8f44c47b3783e5d29f3e21b43.json | Support multiple matchers in MockMvc Kotlin DSL
Previous incarnation of MockMvc Kotlin DSL tried to reuse directly
Java APIs like ModelResultMatchers or StatusResultMatchers, but
when using multiple matchers in DSL blocks like model { } or
status { }, only the last statement was taken in account which
was very confusi... | spring-test/src/main/kotlin/org/springframework/test/web/servlet/result/ContentResultMatchersDsl.kt | @@ -0,0 +1,118 @@
+/*
+ * 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
... | true |
Other | spring-projects | spring-framework | d04c5f8b2cb274b8f44c47b3783e5d29f3e21b43.json | Support multiple matchers in MockMvc Kotlin DSL
Previous incarnation of MockMvc Kotlin DSL tried to reuse directly
Java APIs like ModelResultMatchers or StatusResultMatchers, but
when using multiple matchers in DSL blocks like model { } or
status { }, only the last statement was taken in account which
was very confusi... | spring-test/src/main/kotlin/org/springframework/test/web/servlet/result/CookieResultMatchersDsl.kt | @@ -0,0 +1,143 @@
+/*
+ * 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
... | true |
Other | spring-projects | spring-framework | d04c5f8b2cb274b8f44c47b3783e5d29f3e21b43.json | Support multiple matchers in MockMvc Kotlin DSL
Previous incarnation of MockMvc Kotlin DSL tried to reuse directly
Java APIs like ModelResultMatchers or StatusResultMatchers, but
when using multiple matchers in DSL blocks like model { } or
status { }, only the last statement was taken in account which
was very confusi... | spring-test/src/main/kotlin/org/springframework/test/web/servlet/result/FlashAttributeResultMatchersDsl.kt | @@ -0,0 +1,59 @@
+/*
+ * 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
+... | true |
Other | spring-projects | spring-framework | d04c5f8b2cb274b8f44c47b3783e5d29f3e21b43.json | Support multiple matchers in MockMvc Kotlin DSL
Previous incarnation of MockMvc Kotlin DSL tried to reuse directly
Java APIs like ModelResultMatchers or StatusResultMatchers, but
when using multiple matchers in DSL blocks like model { } or
status { }, only the last statement was taken in account which
was very confusi... | spring-test/src/main/kotlin/org/springframework/test/web/servlet/result/HeaderResultMatchersDsl.kt | @@ -0,0 +1,86 @@
+/*
+ * 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
+... | true |
Other | spring-projects | spring-framework | d04c5f8b2cb274b8f44c47b3783e5d29f3e21b43.json | Support multiple matchers in MockMvc Kotlin DSL
Previous incarnation of MockMvc Kotlin DSL tried to reuse directly
Java APIs like ModelResultMatchers or StatusResultMatchers, but
when using multiple matchers in DSL blocks like model { } or
status { }, only the last statement was taken in account which
was very confusi... | spring-test/src/main/kotlin/org/springframework/test/web/servlet/result/JsonPathResultMatchersDsl.kt | @@ -0,0 +1,130 @@
+/*
+ * 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
... | true |
Other | spring-projects | spring-framework | d04c5f8b2cb274b8f44c47b3783e5d29f3e21b43.json | Support multiple matchers in MockMvc Kotlin DSL
Previous incarnation of MockMvc Kotlin DSL tried to reuse directly
Java APIs like ModelResultMatchers or StatusResultMatchers, but
when using multiple matchers in DSL blocks like model { } or
status { }, only the last statement was taken in account which
was very confusi... | spring-test/src/main/kotlin/org/springframework/test/web/servlet/result/ModelResultMatchersDsl.kt | @@ -0,0 +1,129 @@
+/*
+ * 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
... | true |
Other | spring-projects | spring-framework | d04c5f8b2cb274b8f44c47b3783e5d29f3e21b43.json | Support multiple matchers in MockMvc Kotlin DSL
Previous incarnation of MockMvc Kotlin DSL tried to reuse directly
Java APIs like ModelResultMatchers or StatusResultMatchers, but
when using multiple matchers in DSL blocks like model { } or
status { }, only the last statement was taken in account which
was very confusi... | spring-test/src/main/kotlin/org/springframework/test/web/servlet/result/RequestResultMatchersDsl.kt | @@ -0,0 +1,94 @@
+/*
+ * 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
+... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.