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 | 8af1496b376165c3bfadacfa8e0da8746aa5774c.json | Expand hints conditions support in RuntimeHints
Prior to this commit, the hints conditions were only supported for the
`TypeHint` case. GraalVM generally expanded this concept to all hints
and we should do the same.
Right now, only the `typeReachable` condition is available but we should
design for possible future ad... | spring-core/src/main/java/org/springframework/aot/nativex/ResourceHintsWriter.java | @@ -25,9 +25,11 @@
import java.util.stream.Collectors;
import java.util.stream.Stream;
+import org.springframework.aot.hint.ConditionalHint;
import org.springframework.aot.hint.ResourceBundleHint;
import org.springframework.aot.hint.ResourceHints;
import org.springframework.aot.hint.ResourcePatternHint;
+import ... | true |
Other | spring-projects | spring-framework | 8af1496b376165c3bfadacfa8e0da8746aa5774c.json | Expand hints conditions support in RuntimeHints
Prior to this commit, the hints conditions were only supported for the
`TypeHint` case. GraalVM generally expanded this concept to all hints
and we should do the same.
Right now, only the `typeReachable` condition is available but we should
design for possible future ad... | spring-core/src/main/java/org/springframework/aot/nativex/SerializationHintsWriter.java | @@ -0,0 +1,60 @@
+/*
+ * 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 | 8af1496b376165c3bfadacfa8e0da8746aa5774c.json | Expand hints conditions support in RuntimeHints
Prior to this commit, the hints conditions were only supported for the
`TypeHint` case. GraalVM generally expanded this concept to all hints
and we should do the same.
Right now, only the `typeReachable` condition is available but we should
design for possible future ad... | spring-core/src/test/java/org/springframework/aot/hint/ClassProxyHintTests.java | @@ -32,24 +32,25 @@
* Tests for {@link ClassProxyHint}.
*
* @author Stephane Nicoll
+ * @author Brian Clozel
*/
class ClassProxyHintTests {
@Test
- void equalsWithWithSameInstanceIsTrue() {
+ void equalsWithSameInstanceIsTrue() {
ClassProxyHint hint = ClassProxyHint.of(Properties.class).build();
asse... | true |
Other | spring-projects | spring-framework | 8af1496b376165c3bfadacfa8e0da8746aa5774c.json | Expand hints conditions support in RuntimeHints
Prior to this commit, the hints conditions were only supported for the
`TypeHint` case. GraalVM generally expanded this concept to all hints
and we should do the same.
Right now, only the `typeReachable` condition is available but we should
design for possible future ad... | spring-core/src/test/java/org/springframework/aot/hint/JdkProxyHintTests.java | @@ -33,29 +33,38 @@
class JdkProxyHintTests {
@Test
- void equalsWithWithSameInstanceIsTrue() {
+ void equalsWithSameInstanceIsTrue() {
JdkProxyHint hint = new Builder().proxiedInterfaces(Function.class, Consumer.class).build();
assertThat(hint).isEqualTo(hint);
}
@Test
- void equalsWithWithSameProxied... | true |
Other | spring-projects | spring-framework | 8af1496b376165c3bfadacfa8e0da8746aa5774c.json | Expand hints conditions support in RuntimeHints
Prior to this commit, the hints conditions were only supported for the
`TypeHint` case. GraalVM generally expanded this concept to all hints
and we should do the same.
Right now, only the `typeReachable` condition is available but we should
design for possible future ad... | spring-core/src/test/java/org/springframework/aot/hint/ResourceHintsTests.java | @@ -84,8 +84,8 @@ void registerPattern() {
@Test
void registerPatternWithIncludesAndExcludes() {
- this.resourceHints.registerPattern("com/example/*.properties",
- resourceHint -> resourceHint.excludes("com/example/to-ignore.properties"));
+ this.resourceHints.registerPattern(resourceHint ->
+ resourceHin... | true |
Other | spring-projects | spring-framework | 8af1496b376165c3bfadacfa8e0da8746aa5774c.json | Expand hints conditions support in RuntimeHints
Prior to this commit, the hints conditions were only supported for the
`TypeHint` case. GraalVM generally expanded this concept to all hints
and we should do the same.
Right now, only the `typeReachable` condition is available but we should
design for possible future ad... | spring-core/src/test/java/org/springframework/aot/hint/RuntimeHintsTests.java | @@ -48,15 +48,16 @@ void reflectionHintWithClass() {
void resourceHintWithClass() {
this.hints.resources().registerType(String.class);
assertThat(this.hints.resources().resourcePatterns()).singleElement().satisfies(resourceHint -> {
- assertThat(resourceHint.getIncludes()).containsExactly("java/lang/String.cl... | true |
Other | spring-projects | spring-framework | 8af1496b376165c3bfadacfa8e0da8746aa5774c.json | Expand hints conditions support in RuntimeHints
Prior to this commit, the hints conditions were only supported for the
`TypeHint` case. GraalVM generally expanded this concept to all hints
and we should do the same.
Right now, only the `typeReachable` condition is available but we should
design for possible future ad... | spring-core/src/test/java/org/springframework/aot/hint/SerializationHintsTests.java | @@ -23,20 +23,20 @@
import static org.assertj.core.api.Assertions.assertThat;
/**
- * Tests for {@link JavaSerializationHints}.
+ * Tests for {@link SerializationHints}.
*
* @author Stephane Nicoll
*/
-class JavaSerializationHintsTests {
+class SerializationHintsTests {
- private final JavaSerializationHint... | true |
Other | spring-projects | spring-framework | 8af1496b376165c3bfadacfa8e0da8746aa5774c.json | Expand hints conditions support in RuntimeHints
Prior to this commit, the hints conditions were only supported for the
`TypeHint` case. GraalVM generally expanded this concept to all hints
and we should do the same.
Right now, only the `typeReachable` condition is available but we should
design for possible future ad... | spring-core/src/test/java/org/springframework/aot/nativex/FileNativeConfigurationWriterTests.java | @@ -32,12 +32,12 @@
import org.skyscreamer.jsonassert.JSONCompareMode;
import org.springframework.aot.hint.ExecutableMode;
-import org.springframework.aot.hint.JavaSerializationHints;
import org.springframework.aot.hint.MemberCategory;
import org.springframework.aot.hint.ProxyHints;
import org.springframework.ao... | true |
Other | spring-projects | spring-framework | 8af1496b376165c3bfadacfa8e0da8746aa5774c.json | Expand hints conditions support in RuntimeHints
Prior to this commit, the hints conditions were only supported for the
`TypeHint` case. GraalVM generally expanded this concept to all hints
and we should do the same.
Right now, only the `typeReachable` condition is available but we should
design for possible future ad... | spring-core/src/test/java/org/springframework/aot/nativex/ProxyHintsWriterTests.java | @@ -26,6 +26,7 @@
import org.skyscreamer.jsonassert.JSONCompareMode;
import org.springframework.aot.hint.ProxyHints;
+import org.springframework.aot.hint.TypeReference;
/**
* Tests for {@link ProxyHintsWriter}.
@@ -41,7 +42,7 @@ void empty() throws JSONException {
}
@Test
- void one() throws JSONExceptio... | true |
Other | spring-projects | spring-framework | 8af1496b376165c3bfadacfa8e0da8746aa5774c.json | Expand hints conditions support in RuntimeHints
Prior to this commit, the hints conditions were only supported for the
`TypeHint` case. GraalVM generally expanded this concept to all hints
and we should do the same.
Right now, only the `typeReachable` condition is available but we should
design for possible future ad... | spring-core/src/test/java/org/springframework/aot/nativex/ResourceHintsWriterTests.java | @@ -24,11 +24,13 @@
import org.skyscreamer.jsonassert.JSONCompareMode;
import org.springframework.aot.hint.ResourceHints;
+import org.springframework.aot.hint.TypeReference;
/**
* Tests for {@link ResourceHintsWriter}.
*
* @author Sebastien Deleuze
+ * @author Brian Clozel
*/
public class ResourceHintsW... | true |
Other | spring-projects | spring-framework | 8af1496b376165c3bfadacfa8e0da8746aa5774c.json | Expand hints conditions support in RuntimeHints
Prior to this commit, the hints conditions were only supported for the
`TypeHint` case. GraalVM generally expanded this concept to all hints
and we should do the same.
Right now, only the `typeReachable` condition is available but we should
design for possible future ad... | spring-core/src/test/java/org/springframework/aot/nativex/SerializationHintsWriterTests.java | @@ -23,35 +23,35 @@
import org.skyscreamer.jsonassert.JSONAssert;
import org.skyscreamer.jsonassert.JSONCompareMode;
-import org.springframework.aot.hint.JavaSerializationHints;
+import org.springframework.aot.hint.SerializationHints;
import org.springframework.aot.hint.TypeReference;
import org.springframework.c... | true |
Other | spring-projects | spring-framework | 8af1496b376165c3bfadacfa8e0da8746aa5774c.json | Expand hints conditions support in RuntimeHints
Prior to this commit, the hints conditions were only supported for the
`TypeHint` case. GraalVM generally expanded this concept to all hints
and we should do the same.
Right now, only the `typeReachable` condition is available but we should
design for possible future ad... | spring-core/src/test/java/org/springframework/core/io/support/SpringFactoriesLoaderRuntimeHintsRegistrarTests.java | @@ -20,6 +20,7 @@
import org.junit.jupiter.api.Test;
import org.springframework.aot.hint.MemberCategory;
+import org.springframework.aot.hint.ResourcePatternHint;
import org.springframework.aot.hint.RuntimeHints;
import org.springframework.aot.hint.RuntimeHintsRegistrar;
import org.springframework.aot.hint.TypeH... | true |
Other | spring-projects | spring-framework | e2798560c76a99c7e43e7c8f7468f82c59333f2b.json | Add BackportBot as GitHub Action | .github/workflows/backport-bot.yml | @@ -0,0 +1,21 @@
+name: Backport Bot
+
+on:
+ issues:
+ types: [labeled]
+ pull_request:
+ types: [labeled]
+ push:
+ branches:
+ - '*.x'
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - uses: actions/setup-java@v3
+ with:
+ distributi... | false |
Other | spring-projects | spring-framework | d9d45cc0b1fc498a4a95477b7712be7478fbb1d9.json | Treat Reactive Publishers the same as Kotlin Flows
This commit makes sure that CoroutinesUtils::invokeSuspendingFunction
treats Reactive Publisher instances the same as Kotlin Flows, i.e.
it flatmaps them.
Closes gh-27011 | spring-core/src/main/java/org/springframework/core/CoroutinesUtils.java | @@ -22,6 +22,7 @@
import kotlin.Unit;
import kotlin.jvm.JvmClassMappingKt;
+import kotlin.reflect.KClass;
import kotlin.reflect.KClassifier;
import kotlin.reflect.KFunction;
import kotlin.reflect.full.KCallables;
@@ -75,13 +76,23 @@ public static Publisher<?> invokeSuspendingFunction(Method method, Object target... | false |
Other | spring-projects | spring-framework | aa8802a81d1312386b71786711dbef8639cd35f3.json | Avoid new AssertJ deprecations | spring-context/src/test/java/org/springframework/format/datetime/DateFormattingTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2021 the original author or authors.
+ * 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.
@@ -132,11 +132,11 @@ void styleDateWithInvalid... | true |
Other | spring-projects | spring-framework | aa8802a81d1312386b71786711dbef8639cd35f3.json | Avoid new AssertJ deprecations | spring-context/src/test/java/org/springframework/format/datetime/standard/DateTimeFormattingTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2021 the original author or authors.
+ * 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.
@@ -332,21 +332,21 @@ void isoLocalDateWithInva... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | integration-tests/src/test/java/org/springframework/aop/config/AopNamespaceHandlerAdviceOrderIntegrationTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * 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.
@@ -28,7 +28,7 @@
import org.springframework.t... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | integration-tests/src/test/java/org/springframework/aop/framework/autoproxy/AspectJAutoProxyAdviceOrderIntegrationTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * 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.
@@ -38,7 +38,7 @@
import org.springframework.t... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | integration-tests/src/test/java/org/springframework/cache/annotation/EnableCachingIntegrationTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2019 the original author or authors.
+ * 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.
@@ -34,7 +34,7 @@
import org.springframework.s... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | integration-tests/src/test/java/org/springframework/transaction/annotation/EnableTransactionManagementIntegrationTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2019 the original author or authors.
+ * 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.
@@ -45,7 +45,7 @@
import org.springframework.t... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-aop/src/test/java/org/springframework/aop/framework/ProxyFactoryTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2021 the original author or authors.
+ * 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.
@@ -44,7 +44,7 @@
import org.springframework.c... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-aop/src/test/java/org/springframework/aop/framework/adapter/ThrowsAdviceInterceptorTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2019 the original author or authors.
+ * 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.
@@ -26,6 +26,7 @@
import org.springframework.a... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-aspects/src/test/java/org/springframework/transaction/aspectj/TransactionAspectTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2019 the original author or authors.
+ * 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.
@@ -22,7 +22,9 @@
import org.springframework.t... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-beans/src/test/java/org/springframework/beans/factory/support/security/CallbacksSecurityTests.java | @@ -58,6 +58,7 @@
import org.springframework.core.testfixture.security.TestPrincipal;
import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatException;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
/**
@@ -303,14 +304,14 @@ p... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-beans/src/test/java/org/springframework/beans/factory/xml/DuplicateBeanIdTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2019 the original author or authors.
+ * 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.
@@ -23,8 +23,7 @@
import org.springframework.c... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-context-support/src/test/java/org/springframework/cache/jcache/config/JCacheCustomInterceptorTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2019 the original author or authors.
+ * 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.
@@ -40,7 +40,7 @@
import org.springframework.c... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-context/src/test/java/org/springframework/aop/aspectj/autoproxy/spr3064/SPR3064Tests.java | @@ -26,7 +26,7 @@
import org.springframework.context.support.ClassPathXmlApplicationContext;
-import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
+import static org.assertj.core.api.Assertions.assertThatRuntimeException;
/**
* @author Adrian Colyer
@@ -35,12 +35,12 @@
class SPR3064Tests ... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-context/src/test/java/org/springframework/aop/framework/AbstractAopProxyTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * 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.
@@ -74,9 +74,11 @@
import org.springframework.... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-context/src/test/java/org/springframework/aop/framework/ProxyFactoryBeanTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2021 the original author or authors.
+ * 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.
@@ -61,6 +61,7 @@
import org.springframework.l... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-context/src/test/java/org/springframework/cache/config/CustomInterceptorTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2019 the original author or authors.
+ * 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.
@@ -37,7 +37,7 @@
import org.springframework.c... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-context/src/test/java/org/springframework/context/event/ApplicationContextEventTests.java | @@ -52,7 +52,7 @@
import org.springframework.util.ReflectionUtils;
import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
+import static org.assertj.core.api.Assertions.assertThatRuntimeException;
import static org.mockito.ArgumentMatcher... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-context/src/test/java/org/springframework/ejb/access/LocalSlsbInvokerInterceptorTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2019 the original author or authors.
+ * 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.
@@ -28,6 +28,7 @@
import org.springframework.j... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-context/src/test/java/org/springframework/ejb/access/SimpleRemoteSlsbInvokerInterceptorTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * 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.
@@ -32,6 +32,7 @@
import org.springframework.r... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-context/src/test/java/org/springframework/jmx/export/MBeanExporterTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2021 the original author or authors.
+ * 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.
@@ -59,6 +59,7 @@
import static org.assertj.co... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-context/src/test/java/org/springframework/scripting/groovy/GroovyAspectIntegrationTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2019 the original author or authors.
+ * 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.
@@ -22,73 +22,72 @@
import org.springframework... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-context/src/test/java/org/springframework/scripting/groovy/GroovyScriptFactoryTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2019 the original author or authors.
+ * 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.
@@ -46,6 +46,7 @@
import org.springframework.u... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-core/src/test/java/org/springframework/core/io/buffer/DataBufferTests.java | @@ -25,6 +25,7 @@
import org.springframework.core.testfixture.io.buffer.AbstractDataBufferAllocatingTests;
import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatException;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
import s... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-expression/src/test/java/org/springframework/expression/spel/ConstructorInvocationTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2019 the original author or authors.
+ * 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.
@@ -33,7 +33,7 @@
import org.springframework.e... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-expression/src/test/java/org/springframework/expression/spel/MethodInvocationTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2021 the original author or authors.
+ * 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.
@@ -39,6 +39,7 @@
import org.springframework.e... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-expression/src/test/java/org/springframework/expression/spel/SpelCompilationCoverageTests.java | @@ -46,6 +46,7 @@
import org.springframework.expression.spel.testdata.PersonInOtherPackage;
import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatException;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
import static org.asser... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-expression/src/test/java/org/springframework/expression/spel/SpelReproTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2021 the original author or authors.
+ * 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.
@@ -62,6 +62,7 @@
import org.springframework.u... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-jdbc/src/test/java/org/springframework/jdbc/core/JdbcTemplateTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * 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.
@@ -54,6 +54,7 @@
import static org.assertj.... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-jdbc/src/test/java/org/springframework/jdbc/datasource/DataSourceTransactionManagerTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * 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.
@@ -52,6 +52,7 @@
import static org.assertj.co... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-jdbc/src/test/java/org/springframework/jdbc/support/JdbcTransactionManagerTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * 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.
@@ -58,6 +58,7 @@
import static org.assertj.co... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-messaging/src/test/java/org/springframework/messaging/handler/invocation/InvocableHandlerMethodTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2019 the original author or authors.
+ * 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.
@@ -25,9 +25,11 @@
import org.springframework.... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-orm/src/test/java/org/springframework/orm/jpa/AbstractContainerEntityManagerFactoryIntegrationTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2021 the original author or authors.
+ * 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.
@@ -31,8 +31,10 @@
import org.springframework.... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-orm/src/test/java/org/springframework/orm/jpa/JpaTransactionManagerTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * 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.
@@ -39,6 +39,7 @@
import static org.assertj.... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-orm/src/test/java/org/springframework/orm/jpa/persistenceunit/PersistenceXmlParsingTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2019 the original author or authors.
+ * 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.
@@ -38,7 +38,7 @@
import org.springframework.j... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-test/src/test/java/org/springframework/test/context/event/EventPublishingTestExecutionListenerIntegrationTests.java | @@ -52,7 +52,7 @@
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
+import static org.assertj.core.api.Assertions.asser... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-test/src/test/java/org/springframework/test/context/junit4/SpringJUnit4ClassRunnerTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2019 the original author or authors.
+ * 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.
@@ -26,7 +26,7 @@
import org.springframework.t... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-tx/src/test/java/org/springframework/dao/annotation/PersistenceExceptionTranslationAdvisorTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2019 the original author or authors.
+ * 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.
@@ -33,6 +33,7 @@
import org.springframework.s... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-tx/src/test/java/org/springframework/transaction/TransactionSupportTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2019 the original author or authors.
+ * 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.
@@ -28,6 +28,7 @@
import static org.assertj.co... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-tx/src/test/java/org/springframework/transaction/annotation/AnnotationTransactionInterceptorTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * 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.
@@ -32,7 +32,7 @@
import org.springframework.t... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-tx/src/test/java/org/springframework/transaction/annotation/EnableTransactionManagementTests.java | @@ -45,7 +45,7 @@
import org.springframework.transaction.testfixture.CallCountingTransactionManager;
import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
+import static org.assertj.core.api.Assertions.assertThatException;
/**
* Test... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-tx/src/test/java/org/springframework/transaction/event/TransactionalApplicationListenerAdapterTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * 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.
@@ -23,7 +23,7 @@
import org.springframework.t... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-tx/src/test/java/org/springframework/transaction/event/TransactionalApplicationListenerMethodAdapterTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * 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.
@@ -30,7 +30,7 @@
import org.springframework.u... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-web/src/test/java/org/springframework/remoting/jaxws/JaxWsSupportTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2019 the original author or authors.
+ * 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.
@@ -38,7 +38,7 @@
import org.springframework.r... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-web/src/test/java/org/springframework/web/context/request/async/WebAsyncManagerTests.java | @@ -29,7 +29,7 @@
import org.springframework.web.testfixture.servlet.MockHttpServletRequest;
import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
+import static org.assertj.core.api.Assertions.assertThatException;
import static org.asse... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-web/src/test/java/org/springframework/web/method/annotation/WebArgumentResolverAdapterTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2019 the original author or authors.
+ * 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.
@@ -28,7 +28,7 @@
import org.springframework.w... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-web/src/test/java/org/springframework/web/method/support/InvocableHandlerMethodTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2019 the original author or authors.
+ * 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.
@@ -30,9 +30,11 @@
import org.springframework.... | true |
Other | spring-projects | spring-framework | 1beb7068f62d0d75683e2d701d5cbfa9c2459ee8.json | Use new AssertJ exception assertions | spring-webmvc/src/test/java/org/springframework/web/servlet/config/annotation/ViewResolutionIntegrationTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2019 the original author or authors.
+ * 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.
@@ -40,7 +40,7 @@
import org.springframework.w... | true |
Other | spring-projects | spring-framework | 6e3b3c5419244785aee2bf6419d05677ee011c03.json | Fix typo in webflux.adoc
See gh-28542 | src/docs/asciidoc/web/webflux.adoc | @@ -1669,7 +1669,7 @@ specific value (`myParam=myValue`). The following examples tests for a parameter
----
<1> Check that `myParam` equals `myValue`.
-You can also use the same with request header conditions, as the follwing example shows:
+You can also use the same with request header conditions, as the following... | false |
Other | spring-projects | spring-framework | 720261db26ea917cd979bbac2cd7db1ff70928ee.json | Use List.of() and Set.of() where feasible | spring-beans/src/main/java/org/springframework/beans/factory/config/YamlProcessor.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2021 the original author or authors.
+ * 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.
@@ -97,7 +97,7 @@ public abstract class YamlPro... | true |
Other | spring-projects | spring-framework | 720261db26ea917cd979bbac2cd7db1ff70928ee.json | Use List.of() and Set.of() where feasible | spring-beans/src/main/java/org/springframework/beans/factory/groovy/GroovyBeanDefinitionReader.java | @@ -552,7 +552,7 @@ else if (constructorArgs[i] instanceof Map<?, ?> map){
constructorArgs[i] = manageMapIfNecessary(map);
}
}
- return Arrays.asList(constructorArgs);
+ return List.of(constructorArgs);
}
/** | true |
Other | spring-projects | spring-framework | 720261db26ea917cd979bbac2cd7db1ff70928ee.json | Use List.of() and Set.of() where feasible | spring-context/src/main/java/org/springframework/cache/annotation/EnableCaching.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2021 the original author or authors.
+ * 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.
@@ -47,7 +47,7 @@
* public CacheManager c... | true |
Other | spring-projects | spring-framework | 720261db26ea917cd979bbac2cd7db1ff70928ee.json | Use List.of() and Set.of() where feasible | spring-context/src/main/java/org/springframework/cache/interceptor/NamedCacheResolver.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2017 the original author or authors.
+ * 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.
@@ -16,9 +16,8 @@
package org.springframewor... | true |
Other | spring-projects | spring-framework | 720261db26ea917cd979bbac2cd7db1ff70928ee.json | Use List.of() and Set.of() where feasible | spring-context/src/main/java/org/springframework/scheduling/annotation/ScheduledAnnotationBeanPostProcessor.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2021 the original author or authors.
+ * 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.
@@ -19,7 +19,6 @@
import java.lang.reflect.Met... | true |
Other | spring-projects | spring-framework | 720261db26ea917cd979bbac2cd7db1ff70928ee.json | Use List.of() and Set.of() where feasible | spring-core/src/main/java/org/springframework/core/codec/StringDecoder.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2021 the original author or authors.
+ * 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.
@@ -20,7 +20,6 @@
import java.nio.charset.Char... | true |
Other | spring-projects | spring-framework | 720261db26ea917cd979bbac2cd7db1ff70928ee.json | Use List.of() and Set.of() where feasible | spring-test/src/main/java/org/springframework/mock/web/MockFilterChain.java | @@ -17,7 +17,6 @@
package org.springframework.mock.web;
import java.io.IOException;
-import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
@@ -94,7 +93,7 @@ public MockFilterChain(Servlet servlet, Filter... filters) {
private static List<Filter> initFilterLi... | true |
Other | spring-projects | spring-framework | 720261db26ea917cd979bbac2cd7db1ff70928ee.json | Use List.of() and Set.of() where feasible | spring-test/src/main/java/org/springframework/test/context/junit/jupiter/SpringExtension.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2021 the original author or authors.
+ * 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.
@@ -97,7 +97,7 @@ public class SpringExtension ... | true |
Other | spring-projects | spring-framework | 720261db26ea917cd979bbac2cd7db1ff70928ee.json | Use List.of() and Set.of() where feasible | spring-test/src/main/java/org/springframework/test/web/reactive/server/ExchangeResult.java | @@ -20,7 +20,6 @@
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.time.Duration;
-import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
@@ -59,7 +58,7 @@ public class ExchangeResult {
private static final Log logger = LogFactory.getLog(Exch... | true |
Other | spring-projects | spring-framework | 720261db26ea917cd979bbac2cd7db1ff70928ee.json | Use List.of() and Set.of() where feasible | spring-tx/src/main/java/org/springframework/transaction/annotation/SpringTransactionAnnotationParser.java | @@ -19,8 +19,8 @@
import java.io.Serializable;
import java.lang.reflect.AnnotatedElement;
import java.util.ArrayList;
-import java.util.Arrays;
import java.util.List;
+import java.util.Set;
import org.springframework.core.annotation.AnnotatedElementUtils;
import org.springframework.core.annotation.AnnotationAtt... | true |
Other | spring-projects | spring-framework | 720261db26ea917cd979bbac2cd7db1ff70928ee.json | Use List.of() and Set.of() where feasible | spring-web/src/testFixtures/java/org/springframework/web/testfixture/servlet/MockFilterChain.java | @@ -17,7 +17,6 @@
package org.springframework.web.testfixture.servlet;
import java.io.IOException;
-import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
@@ -94,7 +93,7 @@ public MockFilterChain(Servlet servlet, Filter... filters) {
private static List<Filte... | true |
Other | spring-projects | spring-framework | 0348a7bf2e712ad8488f24a289fb2a1c487db17d.json | Improve API for RFC 7807 in functional endpoints
Closes gh-29462 | spring-web/src/main/java/org/springframework/http/ResponseEntity.java | @@ -263,13 +263,13 @@ public static <T> ResponseEntity<T> of(Optional<T> body) {
}
/**
- * Create a builder for a {@code ResponseEntity} with the given
- * {@link ProblemDetail} as the body, and its
- * {@link ProblemDetail#getStatus() status} as the status.
- * <p>Note that {@code ProblemDetail} is supported... | true |
Other | spring-projects | spring-framework | 0348a7bf2e712ad8488f24a289fb2a1c487db17d.json | Improve API for RFC 7807 in functional endpoints
Closes gh-29462 | spring-web/src/main/java/org/springframework/web/DefaultErrorResponseBuilder.java | @@ -0,0 +1,209 @@
+/*
+ * 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 | 0348a7bf2e712ad8488f24a289fb2a1c487db17d.json | Improve API for RFC 7807 in functional endpoints
Closes gh-29462 | spring-web/src/main/java/org/springframework/web/ErrorResponse.java | @@ -16,7 +16,9 @@
package org.springframework.web;
+import java.net.URI;
import java.util.Locale;
+import java.util.function.Consumer;
import org.springframework.context.MessageSource;
import org.springframework.http.HttpHeaders;
@@ -148,35 +150,124 @@ static String getDefaultTitleMessageCode(Class<?> excepti... | true |
Other | spring-projects | spring-framework | 0348a7bf2e712ad8488f24a289fb2a1c487db17d.json | Improve API for RFC 7807 in functional endpoints
Closes gh-29462 | spring-webflux/src/main/java/org/springframework/web/reactive/function/server/ServerResponse.java | @@ -42,6 +42,7 @@
import org.springframework.http.codec.json.Jackson2CodecSupport;
import org.springframework.http.server.reactive.ServerHttpResponse;
import org.springframework.util.MultiValueMap;
+import org.springframework.web.ErrorResponse;
import org.springframework.web.reactive.function.BodyInserter;
import ... | true |
Other | spring-projects | spring-framework | 0348a7bf2e712ad8488f24a289fb2a1c487db17d.json | Improve API for RFC 7807 in functional endpoints
Closes gh-29462 | spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/ResponseEntityExceptionHandler.java | @@ -309,10 +309,14 @@ protected ProblemDetail createProblemDetail(
Exception ex, HttpStatusCode status, String defaultDetail, @Nullable String detailMessageCode,
@Nullable Object[] detailMessageArguments, ServerWebExchange exchange) {
- ErrorResponse response = ErrorResponse.createFor(
- ex, status, null,... | true |
Other | spring-projects | spring-framework | 0348a7bf2e712ad8488f24a289fb2a1c487db17d.json | Improve API for RFC 7807 in functional endpoints
Closes gh-29462 | spring-webmvc/src/main/java/org/springframework/web/servlet/function/ServerResponse.java | @@ -47,6 +47,7 @@
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.lang.Nullable;
import org.springframework.util.MultiValueMap;
+import org.springframework.web.ErrorResponse;
import org.springframework.web.servlet.ModelAndView;
/**
@@ -106,6 +107,18 @@ static BodyBuilde... | true |
Other | spring-projects | spring-framework | 0348a7bf2e712ad8488f24a289fb2a1c487db17d.json | Improve API for RFC 7807 in functional endpoints
Closes gh-29462 | spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ResponseEntityExceptionHandler.java | @@ -508,10 +508,14 @@ protected ProblemDetail createProblemDetail(
Exception ex, HttpStatusCode status, String defaultDetail, @Nullable String detailMessageCode,
@Nullable Object[] detailMessageArguments, WebRequest request) {
- ErrorResponse errorResponse = ErrorResponse.createFor(
- ex, status, null, de... | true |
Other | spring-projects | spring-framework | 09b19d7aa6344998fffac70cb9fdf9a3dd775558.json | Update RestTemplate Javadoc
Closes gh-29311 | spring-web/src/main/java/org/springframework/http/client/support/InterceptingHttpAccessor.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * 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.
@@ -54,6 +54,10 @@ public abstract class Interc... | true |
Other | spring-projects | spring-framework | 09b19d7aa6344998fffac70cb9fdf9a3dd775558.json | Update RestTemplate Javadoc
Closes gh-29311 | spring-web/src/main/java/org/springframework/web/client/RestTemplate.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2021 the original author or authors.
+ * 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.
@@ -68,11 +68,17 @@
/**
* Synchronous client... | true |
Other | spring-projects | spring-framework | db9e89fba98047309f68a862ebde66b013944553.json | Update docs on web controller method return values
Closes gh-29349 | src/docs/asciidoc/web/webflux.adoc | @@ -1985,10 +1985,9 @@ generally supported for all return values.
to be written (however, `text/event-stream` must be requested or declared in the mapping
through the `produces` attribute).
-| Any other return value
-| If a return value is not matched to any of the above, it is, by default, treated as a view
- ... | true |
Other | spring-projects | spring-framework | db9e89fba98047309f68a862ebde66b013944553.json | Update docs on web controller method return values
Closes gh-29349 | src/docs/asciidoc/web/webmvc.adoc | @@ -2262,23 +2262,18 @@ supported for all return values.
| Write to the response `OutputStream` asynchronously. Also supported as the body of a
`ResponseEntity`. See <<mvc-ann-async>> and <<mvc-ann-async-http-streaming>>.
-| Reactive types -- Reactor, RxJava, or others through `ReactiveAdapterRegistry`
-| Alterna... | true |
Other | spring-projects | spring-framework | 307247b6a36be96dccecefc6ec650ca6fa7639b1.json | Use DispatchExceptionHandler in HandlerResult
Commit #2878ad added the DispatchExceptionHandler contract for
mapping an error before a handler is selected to a HandlerResult.
The same is also convenient for use in HandlerResult itself which
currently uses a java.util.Function essentially for the same.
See gh-22991 | spring-webflux/src/main/java/org/springframework/web/reactive/DispatcherHandler.java | @@ -189,24 +189,29 @@ private Mono<Void> handleRequestWith(ServerWebExchange exchange, Object handler)
}
private Mono<Void> handleResult(ServerWebExchange exchange, HandlerResult result) {
- return getResultHandler(result).handleResult(exchange, result)
- .checkpoint("Handler " + result.getHandler() + " [Disp... | true |
Other | spring-projects | spring-framework | 307247b6a36be96dccecefc6ec650ca6fa7639b1.json | Use DispatchExceptionHandler in HandlerResult
Commit #2878ad added the DispatchExceptionHandler contract for
mapping an error before a handler is selected to a HandlerResult.
The same is also convenient for use in HandlerResult itself which
currently uses a java.util.Function essentially for the same.
See gh-22991 | spring-webflux/src/main/java/org/springframework/web/reactive/HandlerAdapter.java | @@ -16,8 +16,6 @@
package org.springframework.web.reactive;
-import java.util.function.Function;
-
import reactor.core.publisher.Mono;
import org.springframework.web.server.ServerWebExchange;
@@ -27,7 +25,7 @@
* invoking a handler and makes it possible to support any handler type.
*
* <p>A {@code Handler... | true |
Other | spring-projects | spring-framework | 307247b6a36be96dccecefc6ec650ca6fa7639b1.json | Use DispatchExceptionHandler in HandlerResult
Commit #2878ad added the DispatchExceptionHandler contract for
mapping an error before a handler is selected to a HandlerResult.
The same is also convenient for use in HandlerResult itself which
currently uses a java.util.Function essentially for the same.
See gh-22991 | spring-webflux/src/main/java/org/springframework/web/reactive/HandlerResult.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2017 the original author or authors.
+ * 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.
@@ -44,7 +44,10 @@ public class HandlerResult {... | true |
Other | spring-projects | spring-framework | 307247b6a36be96dccecefc6ec650ca6fa7639b1.json | Use DispatchExceptionHandler in HandlerResult
Commit #2878ad added the DispatchExceptionHandler contract for
mapping an error before a handler is selected to a HandlerResult.
The same is also convenient for use in HandlerResult itself which
currently uses a java.util.Function essentially for the same.
See gh-22991 | spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/RequestMappingHandlerAdapter.java | @@ -19,7 +19,6 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
-import java.util.function.Function;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -194,15 +193,15 @@ public Mono<HandlerResult> handle(ServerWebExchange exchange, Object h... | true |
Other | spring-projects | spring-framework | 9e4cddf5db33a44675bba2a00cd25032b84ab87d.json | Fix precondition assertions | spring-orm/src/main/java/org/springframework/orm/jpa/support/InjectionCodeGenerator.java | @@ -53,7 +53,7 @@ class InjectionCodeGenerator {
InjectionCodeGenerator(ClassName targetClassName, RuntimeHints hints) {
- Assert.notNull(hints, "ClassName must not be null");
+ Assert.notNull(targetClassName, "ClassName must not be null");
Assert.notNull(hints, "RuntimeHints must not be null");
this.targ... | true |
Other | spring-projects | spring-framework | 9e4cddf5db33a44675bba2a00cd25032b84ab87d.json | Fix precondition assertions | spring-web/src/main/java/org/springframework/http/ContentDisposition.java | @@ -535,8 +535,8 @@ private static boolean isRFC5987AttrChar(byte c) {
* @see <a href="https://tools.ietf.org/html/rfc2047">RFC 2047</a>
*/
private static String decodeQuotedPrintableFilename(String filename, Charset charset) {
- Assert.notNull(filename, "'input' String should not be null");
- Assert.notNull(... | true |
Other | spring-projects | spring-framework | e5878ab15b46079e29043426d38ac7f1543ca377.json | Fix precondition assertions | spring-tx/src/main/java/org/springframework/transaction/reactive/TransactionalOperatorImpl.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2019 the original author or authors.
+ * 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.
@@ -57,7 +57,7 @@ final class TransactionalOper... | true |
Other | spring-projects | spring-framework | e5878ab15b46079e29043426d38ac7f1543ca377.json | Fix precondition assertions | spring-web/src/main/java/org/springframework/http/ContentDisposition.java | @@ -465,8 +465,9 @@ else if (!escaped && ch == '"') {
* @see <a href="https://tools.ietf.org/html/rfc5987">RFC 5987</a>
*/
private static String decodeFilename(String filename, Charset charset) {
- Assert.notNull(filename, "'input' String should not be null");
- Assert.notNull(charset, "'charset' should not b... | true |
Other | spring-projects | spring-framework | e5878ab15b46079e29043426d38ac7f1543ca377.json | Fix precondition assertions | spring-web/src/main/java/org/springframework/http/server/reactive/UndertowServerHttpResponse.java | @@ -63,12 +63,12 @@ class UndertowServerHttpResponse extends AbstractListenerServerHttpResponse impl
HttpServerExchange exchange, DataBufferFactory bufferFactory, UndertowServerHttpRequest request) {
super(bufferFactory, createHeaders(exchange));
- Assert.notNull(exchange, "HttpServerExchange must not be null... | true |
Other | spring-projects | spring-framework | e5878ab15b46079e29043426d38ac7f1543ca377.json | Fix precondition assertions | spring-webmvc/src/main/java/org/springframework/web/servlet/handler/RequestMatchResult.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * 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.
@@ -59,7 +59,7 @@ public class RequestMatchResu... | true |
Other | spring-projects | spring-framework | dedbbf0a7908c33a27e717ff3ffbc46848ff9b02.json | Avoid warnings in tests | spring-context/src/test/java/org/springframework/context/annotation/Gh29105Tests.java | @@ -30,7 +30,7 @@
*
* @author Stephane Nicoll
*/
-public class Gh29105Tests {
+class Gh29105Tests {
@Test
void beanProviderWithParentContextReuseOrder() {
@@ -47,6 +47,7 @@ void beanProviderWithParentContextReuseOrder() {
List<Class<?>> orderedTypes = child.getBeanProvider(MyService.class)
.orderedS... | false |
Other | spring-projects | spring-framework | 4383a673bbdb5e4dd141df112fe5909fdc1a62c2.json | Add missing closing parenthesis
See gh-28867 | src/docs/asciidoc/web/webmvc.adoc | @@ -2176,7 +2176,7 @@ and others) and is equivalent to `required=false`.
| Any other argument
| If a method argument is not matched to any of the earlier values in this table and it is
a simple type (as determined by
- {api-spring-framework}/beans/BeanUtils.html#isSimpleProperty-java.lang.Class-[BeanUtils#isSimple... | false |
Other | spring-projects | spring-framework | cfb61d2a172559af3fec69b9cce5a40d4b66eaa5.json | Add generics to BeanInstanceSupplier
Update `BeanInstanceSupplier` to support a generic type.
See gh-28748 | spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanInstanceSupplier.java | @@ -79,21 +79,22 @@
* @author Phillip Webb
* @author Stephane Nicoll
* @since 6.0
+ * @param <T> the type of instance supplied by this supplier
* @see AutowiredArguments
*/
-public final class BeanInstanceSupplier extends AutowiredElementResolver implements InstanceSupplier<Object> {
+public final class BeanI... | true |
Other | spring-projects | spring-framework | cfb61d2a172559af3fec69b9cce5a40d4b66eaa5.json | Add generics to BeanInstanceSupplier
Update `BeanInstanceSupplier` to support a generic type.
See gh-28748 | spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanRegistrationsAotContribution.java | @@ -41,10 +41,8 @@
class BeanRegistrationsAotContribution
implements BeanFactoryInitializationAotContribution {
-
private static final String BEAN_FACTORY_PARAMETER_NAME = "beanFactory";
-
private final Map<String, BeanDefinitionMethodGenerator> registrations;
| true |
Other | spring-projects | spring-framework | cfb61d2a172559af3fec69b9cce5a40d4b66eaa5.json | Add generics to BeanInstanceSupplier
Update `BeanInstanceSupplier` to support a generic type.
See gh-28748 | spring-beans/src/main/java/org/springframework/beans/factory/aot/InstanceSupplierCodeGenerator.java | @@ -37,6 +37,7 @@
import org.springframework.javapoet.CodeBlock;
import org.springframework.javapoet.CodeBlock.Builder;
import org.springframework.javapoet.MethodSpec;
+import org.springframework.javapoet.ParameterizedTypeName;
import org.springframework.util.ClassUtils;
import org.springframework.util.function.Th... | true |
Other | spring-projects | spring-framework | cfb61d2a172559af3fec69b9cce5a40d4b66eaa5.json | Add generics to BeanInstanceSupplier
Update `BeanInstanceSupplier` to support a generic type.
See gh-28748 | spring-beans/src/test/java/org/springframework/beans/factory/aot/BeanDefinitionMethodGeneratorTests.java | @@ -158,6 +158,45 @@ void generateBeanDefinitionMethodWhenHasInstancePostProcessorGeneratesMethod() {
});
}
+ @Test // gh-28748
+ void generateBeanDefinitionMethodWhenHasInstancePostProcessorAndFactoryMethodGeneratesMethod() {
+ this.beanFactory.registerBeanDefinition("testBeanConfiguration", new RootBeanDefini... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.