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 | 4368e2563f9f83ccb6952d4cdf8c1586231bbc60.json | Reinstate RuntimeHintsAgent tests
Closes gh-29062 | spring-context/spring-context.gradle | @@ -1,3 +1,7 @@
+plugins {
+ id 'org.springframework.build.runtimehints-agent'
+}
+
description = "Spring Context"
apply plugin: "kotlin" | true |
Other | spring-projects | spring-framework | cced3cba0925b3c5e4f1754a514595511fa15004.json | Register runtime hints for @TestExecutionListeners
Closes gh-29024 | spring-test/src/main/java/org/springframework/test/context/aot/TestContextAotGenerator.java | @@ -199,6 +199,9 @@ MergedContextConfiguration buildMergedContextConfiguration(Class<?> testClass) {
TestContextBootstrapper testContextBootstrapper =
BootstrapUtils.resolveTestContextBootstrapper(testClass);
registerDeclaredConstructors(testContextBootstrapper.getClass());
+ testContextBootstrapper.getTest... | true |
Other | spring-projects | spring-framework | cced3cba0925b3c5e4f1754a514595511fa15004.json | Register runtime hints for @TestExecutionListeners
Closes gh-29024 | spring-test/src/test/java/org/springframework/test/context/aot/TestContextAotGeneratorTests.java | @@ -141,6 +141,7 @@ private static void assertRuntimeHints(RuntimeHints runtimeHints) {
// TestExecutionListener
Stream.of(
+ org.springframework.test.context.aot.samples.basic.BasicSpringJupiterTests.DummyTestExecutionListener.class,
org.springframework.test.context.event.ApplicationEventsTestExecutionLi... | true |
Other | spring-projects | spring-framework | cced3cba0925b3c5e4f1754a514595511fa15004.json | Register runtime hints for @TestExecutionListeners
Closes gh-29024 | spring-test/src/test/java/org/springframework/test/context/aot/samples/basic/BasicSpringJupiterTests.java | @@ -23,11 +23,16 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.ApplicationContext;
+import org.springframework.test.context.TestExecutionListeners;
import org.springframework.test.context.TestPropertySo... | true |
Other | spring-projects | spring-framework | 41b6f4e351eec14bfd6e7a4759ed8b2cbbe7bf54.json | Commit changes to test | spring-test/src/test/java/org/springframework/test/context/aot/TestContextAotGeneratorTests.java | @@ -20,14 +20,12 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
-import java.util.function.Consumer;
import org.junit.jupiter.api.Test;
import org.springframework.aot.generate.DefaultGenerationContext;
import org.springframework.aot.generate.GeneratedFiles.Kind;
import org.spring... | false |
Other | spring-projects | spring-framework | bc0bf1fac3b2908ec4a488761f7b8cd8ad52f97a.json | Add additional shortcuts for hint registration
Add `MemberCategory` and `FieldMode` shortcuts for type registration.
Helper `builtWith` methods have also been extracted to the Hint types
to allow general reuse (for example with `registerTypes`).
See gh-29011 | spring-core/src/main/java/org/springframework/aot/hint/ExecutableHint.java | @@ -20,6 +20,7 @@
import java.lang.reflect.Executable;
import java.lang.reflect.Method;
import java.util.List;
+import java.util.function.Consumer;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
@@ -80,6 +81,15 @@ public ExecutableMode getMode() {
return this.mode;
}
+ /... | true |
Other | spring-projects | spring-framework | bc0bf1fac3b2908ec4a488761f7b8cd8ad52f97a.json | Add additional shortcuts for hint registration
Add `MemberCategory` and `FieldMode` shortcuts for type registration.
Helper `builtWith` methods have also been extracted to the Hint types
to allow general reuse (for example with `registerTypes`).
See gh-29011 | spring-core/src/main/java/org/springframework/aot/hint/FieldHint.java | @@ -17,6 +17,7 @@
package org.springframework.aot.hint;
import java.lang.reflect.Field;
+import java.util.function.Consumer;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
@@ -66,6 +67,16 @@ public boolean isAllowUnsafeAccess() {
return this.allowUnsafeAccess;
}
+ /**
+... | true |
Other | spring-projects | spring-framework | bc0bf1fac3b2908ec4a488761f7b8cd8ad52f97a.json | Add additional shortcuts for hint registration
Add `MemberCategory` and `FieldMode` shortcuts for type registration.
Helper `builtWith` methods have also been extracted to the Hint types
to allow general reuse (for example with `registerTypes`).
See gh-29011 | spring-core/src/main/java/org/springframework/aot/hint/ReflectionHints.java | @@ -86,6 +86,28 @@ public ReflectionHints registerType(TypeReference type, Consumer<TypeHint.Builde
return this;
}
+ /**
+ * Register or customize reflection hints for the specified type
+ * using the specified {@link MemberCategory MemberCategories}.
+ * @param type the type to customize
+ * @param memberCa... | true |
Other | spring-projects | spring-framework | bc0bf1fac3b2908ec4a488761f7b8cd8ad52f97a.json | Add additional shortcuts for hint registration
Add `MemberCategory` and `FieldMode` shortcuts for type registration.
Helper `builtWith` methods have also been extracted to the Hint types
to allow general reuse (for example with `registerTypes`).
See gh-29011 | spring-core/src/main/java/org/springframework/aot/hint/TypeHint.java | @@ -126,6 +126,17 @@ public String toString() {
.toString();
}
+ /**
+ * Return a {@link Consumer} that applies the given {@link MemberCategory
+ * MemberCategories} to the accepted {@link Builder}.
+ * @param memberCategories the memberCategories to apply
+ * @return a consumer to apply the member categor... | true |
Other | spring-projects | spring-framework | bc0bf1fac3b2908ec4a488761f7b8cd8ad52f97a.json | Add additional shortcuts for hint registration
Add `MemberCategory` and `FieldMode` shortcuts for type registration.
Helper `builtWith` methods have also been extracted to the Hint types
to allow general reuse (for example with `registerTypes`).
See gh-29011 | spring-core/src/test/java/org/springframework/aot/hint/ExecutableHintTests.java | @@ -0,0 +1,41 @@
+/*
+ * 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 | bc0bf1fac3b2908ec4a488761f7b8cd8ad52f97a.json | Add additional shortcuts for hint registration
Add `MemberCategory` and `FieldMode` shortcuts for type registration.
Helper `builtWith` methods have also been extracted to the Hint types
to allow general reuse (for example with `registerTypes`).
See gh-29011 | spring-core/src/test/java/org/springframework/aot/hint/FieldHintTests.java | @@ -0,0 +1,38 @@
+/*
+ * 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 | bc0bf1fac3b2908ec4a488761f7b8cd8ad52f97a.json | Add additional shortcuts for hint registration
Add `MemberCategory` and `FieldMode` shortcuts for type registration.
Helper `builtWith` methods have also been extracted to the Hint types
to allow general reuse (for example with `registerTypes`).
See gh-29011 | spring-core/src/test/java/org/springframework/aot/hint/ReflectionHintsTests.java | @@ -106,6 +106,14 @@ void registerClass() {
typeWithMemberCategories(Integer.class, MemberCategory.INVOKE_PUBLIC_CONSTRUCTORS));
}
+ @Test
+ void registerClassWitCustomizer() {
+ this.reflectionHints.registerType(Integer.class,
+ typeHint -> typeHint.withMembers(MemberCategory.INVOKE_PUBLIC_CONSTRUCTORS));... | true |
Other | spring-projects | spring-framework | bc0bf1fac3b2908ec4a488761f7b8cd8ad52f97a.json | Add additional shortcuts for hint registration
Add `MemberCategory` and `FieldMode` shortcuts for type registration.
Helper `builtWith` methods have also been extracted to the Hint types
to allow general reuse (for example with `registerTypes`).
See gh-29011 | spring-core/src/test/java/org/springframework/aot/hint/TypeHintTests.java | @@ -102,6 +102,17 @@ void createWithFieldReuseBuilder() {
});
}
+ @Test
+ void createFieldWithFieldMode() {
+ Builder builder = TypeHint.of(TypeReference.of(String.class));
+ builder.withField("value", FieldMode.READ);
+ assertFieldHint(builder, fieldHint -> {
+ assertThat(fieldHint.getName()).isEqualTo("va... | true |
Other | spring-projects | spring-framework | cfd37d948d935258c55dd403bb112328eb402cf5.json | Reduce visibility of hint factory methods
Reduce the visibility of hint factory methods that return a `Builder`.
Since the `build()` method of the `Builder` is package-private the
factory methods can also be package-private. | spring-core/src/main/java/org/springframework/aot/hint/ExecutableHint.java | @@ -48,7 +48,7 @@ private ExecutableHint(Builder builder) {
* @param parameterTypes the parameter types of the constructor
* @return a builder
*/
- public static Builder ofConstructor(List<TypeReference> parameterTypes) {
+ static Builder ofConstructor(List<TypeReference> parameterTypes) {
return new Builde... | true |
Other | spring-projects | spring-framework | cfd37d948d935258c55dd403bb112328eb402cf5.json | Reduce visibility of hint factory methods
Reduce the visibility of hint factory methods that return a `Builder`.
Since the `build()` method of the `Builder` is package-private the
factory methods can also be package-private. | spring-core/src/main/java/org/springframework/aot/hint/TypeHint.java | @@ -68,7 +68,7 @@ private TypeHint(Builder builder) {
* @param type the type to use
* @return a builder
*/
- public static Builder of(TypeReference type) {
+ static Builder of(TypeReference type) {
Assert.notNull(type, "'type' must not be null");
return new Builder(type);
}
@@ -145,7 +145,7 @@ public s... | true |
Other | spring-projects | spring-framework | c470262c8ea733fd0846a50232599715ec2d2b83.json | Rewrite ConcurrentLruCache implementation
Prior to this commit, the `ConcurrentLruCache` implementation would not
perform well under certain conditions. As long as the cache capacity was
not reached, the cache would avoid maintaining an eviction queue
(reordering entries depending with least/most recently read). When ... | spring-core/src/jmh/java/org/springframework/util/ConcurrentLruCacheBenchmark.java | @@ -0,0 +1,76 @@
+/*
+ * 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 | c470262c8ea733fd0846a50232599715ec2d2b83.json | Rewrite ConcurrentLruCache implementation
Prior to this commit, the `ConcurrentLruCache` implementation would not
perform well under certain conditions. As long as the cache capacity was
not reached, the cache would avoid maintaining an eviction queue
(reordering entries depending with least/most recently read). When ... | spring-core/src/main/java/org/springframework/util/ConcurrentLruCache.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.
@@ -16,116 +16,199 @@
package org.springfram... | true |
Other | spring-projects | spring-framework | c470262c8ea733fd0846a50232599715ec2d2b83.json | Rewrite ConcurrentLruCache implementation
Prior to this commit, the `ConcurrentLruCache` implementation would not
perform well under certain conditions. As long as the cache capacity was
not reached, the cache would avoid maintaining an eviction queue
(reordering entries depending with least/most recently read). When ... | spring-core/src/test/java/org/springframework/util/ConcurrentLruCacheTests.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.
@@ -21,6 +21,7 @@
import static org.assertj.co... | true |
Other | spring-projects | spring-framework | c470262c8ea733fd0846a50232599715ec2d2b83.json | Rewrite ConcurrentLruCache implementation
Prior to this commit, the `ConcurrentLruCache` implementation would not
perform well under certain conditions. As long as the cache capacity was
not reached, the cache would avoid maintaining an eviction queue
(reordering entries depending with least/most recently read). When ... | spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/NamedParameterJdbcTemplate.java | @@ -135,7 +135,7 @@ public void setCacheLimit(int cacheLimit) {
* Return the maximum number of entries for this template's SQL cache.
*/
public int getCacheLimit() {
- return this.parsedSqlCache.sizeLimit();
+ return this.parsedSqlCache.capacity();
}
| true |
Other | spring-projects | spring-framework | 2ecc37fbef6cf084c6c914db112785c8c6308865.json | Reintroduce exclusion of dom4j for findbugs
The removal of the exclusion prevented spring-webmvc from being imported
into Eclipse IDE due to conflicting versions of dom4j on the classpath.
See gh-29045 | spring-webmvc/spring-webmvc.gradle | @@ -10,7 +10,9 @@ dependencies {
api(project(":spring-expression"))
api(project(":spring-web"))
compileOnly("jakarta.servlet:jakarta.servlet-api")
- compileOnly("com.google.code.findbugs:findbugs") // for groovy-templates
+ compileOnly("com.google.code.findbugs:findbugs") { // for groovy-templates
+ exclude gr... | false |
Other | spring-projects | spring-framework | 2d35bbd74ec87023b9d5946896cc02cf438a922f.json | Move TestContextRuntimeHints to aot.hint package | spring-test/src/main/java/org/springframework/test/context/aot/hint/TestContextRuntimeHints.java | @@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.test.context.aot;
+package org.springframework.test.context.aot.hint;
import java.lang.annotation.Annotation;
import java.util.Arrays;
@@ -35,7 +35,7 @@
* @author Sam Brannen
* @since 6.0
*/
-public class TestContextRunti... | true |
Other | spring-projects | spring-framework | 2d35bbd74ec87023b9d5946896cc02cf438a922f.json | Move TestContextRuntimeHints to aot.hint package | spring-test/src/main/resources/META-INF/spring/aot.factories | @@ -1,2 +1,2 @@
org.springframework.aot.hint.RuntimeHintsRegistrar=\
-org.springframework.test.context.aot.TestContextRuntimeHints
+org.springframework.test.context.aot.hint.TestContextRuntimeHints | true |
Other | spring-projects | spring-framework | 5757429ea5a52464d50ac9234512231fcd38277a.json | Upgrade Mockito to 4.7.0 | framework-platform/framework-platform.gradle | @@ -18,7 +18,7 @@ dependencies {
api(platform("org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.4"))
api(platform("org.jetbrains.kotlinx:kotlinx-serialization-bom:1.4.0"))
api(platform("org.junit:junit-bom:5.9.0"))
- api(platform("org.mockito:mockito-bom:4.6.1"))
+ api(platform("org.mockito:mockito-bom:4.7.0"))
... | false |
Other | spring-projects | spring-framework | fa475d0b631610ec15a786d5bea9e23380fe1a35.json | Upgrade kotlinx dependencies | framework-platform/framework-platform.gradle | @@ -15,8 +15,8 @@ dependencies {
api(platform("org.apache.groovy:groovy-bom:4.0.4"))
api(platform("org.apache.logging.log4j:log4j-bom:2.18.0"))
api(platform("org.eclipse.jetty:jetty-bom:11.0.11"))
- api(platform("org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.2"))
- api(platform("org.jetbrains.kotlinx:kotlinx-s... | false |
Other | spring-projects | spring-framework | f877f81ae405922b8db0383d33af51e8fed94a41.json | Move Netty 5 dependency to Framework platform | framework-platform/framework-platform.gradle | @@ -9,6 +9,7 @@ javaPlatform {
dependencies {
api(platform("com.fasterxml.jackson:jackson-bom:2.13.3"))
api(platform("io.netty:netty-bom:4.1.79.Final"))
+ api(platform("io.netty:netty5-bom:5.0.0.Alpha4"))
api(platform("io.projectreactor:reactor-bom:2022.0.0-M4"))
api(platform("io.rsocket:rsocket-bom:1.1.2"))
... | true |
Other | spring-projects | spring-framework | f877f81ae405922b8db0383d33af51e8fed94a41.json | Move Netty 5 dependency to Framework platform | spring-core/spring-core.gradle | @@ -72,7 +72,7 @@ dependencies {
optional("io.reactivex.rxjava3:rxjava")
optional("io.smallrye.reactive:mutiny")
optional("io.netty:netty-buffer")
- optional("io.netty:netty5-buffer:5.0.0.Alpha4")
+ optional("io.netty:netty5-buffer")
testImplementation("jakarta.annotation:jakarta.annotation-api")
testImplemen... | true |
Other | spring-projects | spring-framework | f877f81ae405922b8db0383d33af51e8fed94a41.json | Move Netty 5 dependency to Framework platform | spring-web/spring-web.gradle | @@ -23,7 +23,7 @@ dependencies {
optional("io.netty:netty-codec-http") // Until Netty4ClientHttpRequest is removed
optional("io.netty:netty-transport") // Until Netty4ClientHttpRequest is removed
optional("io.projectreactor.netty:reactor-netty-http")
- optional("io.netty:netty5-buffer:5.0.0.Alpha4")
+ optional("... | true |
Other | spring-projects | spring-framework | f877f81ae405922b8db0383d33af51e8fed94a41.json | Move Netty 5 dependency to Framework platform | spring-webflux/spring-webflux.gradle | @@ -59,7 +59,7 @@ dependencies {
testRuntimeOnly("com.sun.xml.bind:jaxb-core")
testRuntimeOnly("com.sun.xml.bind:jaxb-impl")
testRuntimeOnly("com.sun.activation:jakarta.activation")
- testRuntimeOnly("io.netty:netty5-buffer:5.0.0.Alpha4")
+ testRuntimeOnly("io.netty:netty5-buffer")
}
test { | true |
Other | spring-projects | spring-framework | 4c0ece944aad373adea3a85874552ae982c989d7.json | Fix race condition in PartGenerator
This commit fixes a race condition in PartGenerator, used by
DefaultPartHttpMessageReader. The condition can occur when a
completion signal comes in, and the state is changed to IdleFileState
at the same time.
Closes gh-28963 | spring-web/src/main/java/org/springframework/http/codec/multipart/PartGenerator.java | @@ -746,8 +746,15 @@ public void body(DataBuffer dataBuffer) {
@Override
public void partComplete(boolean finalPart) {
- this.completed = true;
- this.finalPart = finalPart;
+ State state = PartGenerator.this.state.get();
+ // writeComplete might have changed our state to IdleFileState
+ if (state != ... | false |
Other | spring-projects | spring-framework | 3e9b57106e74b09265f247cbcd6853078c32ae49.json | Refine TypeHint.Builder#onReachableType Javadoc | spring-core/src/main/java/org/springframework/aot/hint/TypeHint.java | @@ -151,7 +151,7 @@ public Builder(TypeReference type) {
/**
* Make this hint conditional on the fact that the specified type
- * can be resolved.
+ * is in a reachable code path from a static analysis point of view.
* @param reachableType the type that should be reachable for this
* hint to apply
... | false |
Other | spring-projects | spring-framework | 7067461d711f9b830386761494fa0fdee02a025d.json | Fix exception in Jetty10RequestUpgradeStrategy
Closes gh-27899 | spring-webflux/src/main/java/org/springframework/web/reactive/socket/server/upgrade/Jetty10RequestUpgradeStrategy.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.
@@ -149,7 +149,7 @@ public WebSocketCreatorInte... | true |
Other | spring-projects | spring-framework | 7067461d711f9b830386761494fa0fdee02a025d.json | Fix exception in Jetty10RequestUpgradeStrategy
Closes gh-27899 | spring-websocket/src/main/java/org/springframework/web/socket/server/jetty/Jetty10RequestUpgradeStrategy.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.
@@ -158,7 +158,7 @@ public WebSocketCreatorInte... | true |
Other | spring-projects | spring-framework | e24043ab90235cad636fd81d17f388adf76cbde0.json | Simplify HashMap declaration in test fixture | spring-aop/src/testFixtures/java/org/springframework/aop/testfixture/advice/MethodCounter.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.
@@ -19,6 +19,7 @@
import java.io.Serializable;... | false |
Other | spring-projects | spring-framework | dca155e4381406fe43d7c02f137816cf09a3d501.json | Reintroduce references to JBoss AS Javadoc
Closes gh-27860 | build.gradle | @@ -371,6 +371,8 @@ configure([rootProject] + javaProjects) { project ->
"https://docs.oracle.com/javaee/7/api/",
"https://docs.oracle.com/cd/E13222_01/wls/docs90/javadocs/", // CommonJ
"https://www.ibm.com/docs/api/v1/content/SSEQTP_8.5.5/com.ibm.websphere.javadoc.doc/web/apidocs/",
+ "https://docs.jbos... | false |
Other | spring-projects | spring-framework | edabde8a11fbf8987787b3d4a8ab2408a889e79c.json | Fix syntax in WebFlux Validation example
Closes gh-27907 | src/docs/asciidoc/web/webflux.adoc | @@ -3845,7 +3845,7 @@ as the following example shows:
public class WebConfig implements WebFluxConfigurer {
@Override
- public Validator getValidator(); {
+ public Validator getValidator() {
// ...
}
| false |
Other | spring-projects | spring-framework | 59c6b7e44543d3fdadfb78ae3c6a7c76de2fce91.json | Fix SpEL withTypedRootObject() test | spring-expression/src/test/java/org/springframework/expression/spel/PropertyAccessTests.java | @@ -262,12 +262,12 @@ public void propertyAccessWithInstanceMethodResolver() {
@Test
public void propertyAccessWithInstanceMethodResolverAndTypedRootObject() {
- Person target = new Person("p1");
+ Person rootObject = new Person("p1");
EvaluationContext context = SimpleEvaluationContext.forReadOnlyDataBindin... | false |
Other | spring-projects | spring-framework | c462fe30ede2ee7e8d41c1a19596aaec19b3750a.json | Use Named arguments in parameterized tests | spring-core/src/test/java/org/springframework/core/io/buffer/DataBufferTests.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.
@@ -35,7 +35,7 @@
class DataBufferTests extend... | true |
Other | spring-projects | spring-framework | c462fe30ede2ee7e8d41c1a19596aaec19b3750a.json | Use Named arguments in parameterized tests | spring-core/src/test/java/org/springframework/core/io/buffer/DataBufferUtilsTests.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.
@@ -76,7 +76,7 @@ class DataBufferUtilsTests ex... | true |
Other | spring-projects | spring-framework | c462fe30ede2ee7e8d41c1a19596aaec19b3750a.json | Use Named arguments in parameterized tests | spring-core/src/test/java/org/springframework/core/io/buffer/support/DataBufferTestUtilsTests.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 @@
class DataBufferTestUtilsTes... | true |
Other | spring-projects | spring-framework | c462fe30ede2ee7e8d41c1a19596aaec19b3750a.json | Use Named arguments in parameterized tests | spring-core/src/testFixtures/java/org/springframework/core/testfixture/io/buffer/AbstractDataBufferAllocatingTests.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.
@@ -49,6 +49,7 @@
import static java.nio.cha... | true |
Other | spring-projects | spring-framework | c462fe30ede2ee7e8d41c1a19596aaec19b3750a.json | Use Named arguments in parameterized tests | spring-test/src/test/java/org/springframework/mock/http/server/reactive/MockServerHttpRequestTests.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.
@@ -19,9 +19,9 @@
import java.util.Arrays;
im... | true |
Other | spring-projects | spring-framework | c462fe30ede2ee7e8d41c1a19596aaec19b3750a.json | Use Named arguments in parameterized tests | spring-test/src/test/java/org/springframework/test/context/BootstrapUtilsTests.java | @@ -40,6 +40,7 @@
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatIllegalStateException;
+import static org.junit.jupiter.api.Named.named;
import static org.junit.jupiter.params.provider.Arguments.arguments;
import static org.mockito.Mockito.mock;
... | true |
Other | spring-projects | spring-framework | c462fe30ede2ee7e8d41c1a19596aaec19b3750a.json | Use Named arguments in parameterized tests | spring-test/src/test/java/org/springframework/test/context/support/GenericXmlContextLoaderResourceLocationsTests.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.
@@ -27,10 +27,10 @@
import org.springframework... | true |
Other | spring-projects | spring-framework | c462fe30ede2ee7e8d41c1a19596aaec19b3750a.json | Use Named arguments in parameterized tests | spring-web/src/test/java/org/springframework/http/client/reactive/ClientHttpConnectorTests.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.
@@ -37,6 +37,7 @@
import okio.Buffer;
import ... | true |
Other | spring-projects | spring-framework | c462fe30ede2ee7e8d41c1a19596aaec19b3750a.json | Use Named arguments in parameterized tests | spring-web/src/test/java/org/springframework/http/codec/ServerSentEventHttpMessageWriterTests.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.
@@ -58,7 +58,7 @@ class ServerSentEventHttpMess... | true |
Other | spring-projects | spring-framework | c462fe30ede2ee7e8d41c1a19596aaec19b3750a.json | Use Named arguments in parameterized tests | spring-web/src/test/java/org/springframework/http/codec/multipart/DefaultPartHttpMessageReaderTests.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.
@@ -55,14 +55,15 @@
import static java.util.Co... | true |
Other | spring-projects | spring-framework | c462fe30ede2ee7e8d41c1a19596aaec19b3750a.json | Use Named arguments in parameterized tests | spring-web/src/test/java/org/springframework/http/server/reactive/HeadersAdaptersTests.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 static org.assertj.... | true |
Other | spring-projects | spring-framework | c462fe30ede2ee7e8d41c1a19596aaec19b3750a.json | Use Named arguments in parameterized tests | spring-web/src/test/java/org/springframework/web/client/DefaultResponseErrorHandlerHttpStatusTests.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.
@@ -16,8 +16,11 @@
package org.springframewo... | true |
Other | spring-projects | spring-framework | c462fe30ede2ee7e8d41c1a19596aaec19b3750a.json | Use Named arguments in parameterized tests | spring-web/src/test/java/org/springframework/web/client/RestTemplateIntegrationTests.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.
@@ -31,6 +31,7 @@
import com.fasterxml.jackson... | true |
Other | spring-projects | spring-framework | c462fe30ede2ee7e8d41c1a19596aaec19b3750a.json | Use Named arguments in parameterized tests | spring-web/src/test/java/org/springframework/web/cors/UrlBasedCorsConfigurationSourceTests.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,6 +23,7 @@
import java.util.function.Fu... | true |
Other | spring-projects | spring-framework | c462fe30ede2ee7e8d41c1a19596aaec19b3750a.json | Use Named arguments in parameterized tests | spring-web/src/testFixtures/java/org/springframework/web/testfixture/http/server/reactive/bootstrap/AbstractHttpHandlerIntegrationTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2018 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.apache.commons.lo... | true |
Other | spring-projects | spring-framework | c462fe30ede2ee7e8d41c1a19596aaec19b3750a.json | Use Named arguments in parameterized tests | spring-webflux/src/test/java/org/springframework/web/reactive/function/client/WebClientDataBufferAllocatingTests.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.
@@ -96,7 +96,7 @@ private ReactorClientHttpConn... | true |
Other | spring-projects | spring-framework | c462fe30ede2ee7e8d41c1a19596aaec19b3750a.json | Use Named arguments in parameterized tests | spring-webflux/src/test/java/org/springframework/web/reactive/function/client/WebClientIntegrationTests.java | @@ -43,6 +43,7 @@
import okhttp3.mockwebserver.MockWebServer;
import okhttp3.mockwebserver.RecordedRequest;
import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.Named;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Me... | true |
Other | spring-projects | spring-framework | c462fe30ede2ee7e8d41c1a19596aaec19b3750a.json | Use Named arguments in parameterized tests | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/SseIntegrationTests.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.
@@ -21,9 +21,11 @@
import java.lang.annotation... | true |
Other | spring-projects | spring-framework | c462fe30ede2ee7e8d41c1a19596aaec19b3750a.json | Use Named arguments in parameterized tests | spring-webmvc/src/test/java/org/springframework/web/servlet/handler/HandlerMappingTests.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.
@@ -16,9 +16,7 @@
package org.springframewor... | true |
Other | spring-projects | spring-framework | c462fe30ede2ee7e8d41c1a19596aaec19b3750a.json | Use Named arguments in parameterized tests | spring-webmvc/src/test/java/org/springframework/web/servlet/handler/MappedInterceptorTests.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.
@@ -24,6 +24,7 @@
import javax.servlet.http.Ht... | true |
Other | spring-projects | spring-framework | c462fe30ede2ee7e8d41c1a19596aaec19b3750a.json | Use Named arguments in parameterized tests | spring-webmvc/src/test/java/org/springframework/web/servlet/handler/PathPatternsParameterizedTest.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.
@@ -21,6 +21,9 @@
import java.lang.annotation.... | true |
Other | spring-projects | spring-framework | c462fe30ede2ee7e8d41c1a19596aaec19b3750a.json | Use Named arguments in parameterized tests | spring-webmvc/src/test/java/org/springframework/web/servlet/handler/PathPatternsTestUtils.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.
@@ -20,11 +20,15 @@
import java.util.function.... | true |
Other | spring-projects | spring-framework | c462fe30ede2ee7e8d41c1a19596aaec19b3750a.json | Use Named arguments in parameterized tests | spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/UrlFilenameViewControllerTests.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.
@@ -19,6 +19,7 @@
import java.util.function.Fu... | true |
Other | spring-projects | spring-framework | c462fe30ede2ee7e8d41c1a19596aaec19b3750a.json | Use Named arguments in parameterized tests | spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/WebContentInterceptorTests.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.
@@ -20,6 +20,7 @@
import java.util.function.Fu... | true |
Other | spring-projects | spring-framework | c462fe30ede2ee7e8d41c1a19596aaec19b3750a.json | Use Named arguments in parameterized tests | spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/HandlerMethodAnnotationDetectionTests.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.
@@ -19,8 +19,10 @@
import java.lang.reflect.Me... | true |
Other | spring-projects | spring-framework | c462fe30ede2ee7e8d41c1a19596aaec19b3750a.json | Use Named arguments in parameterized tests | spring-webmvc/src/test/java/org/springframework/web/servlet/view/DefaultRequestToViewNameTranslatorTests.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.
@@ -19,6 +19,8 @@
import java.util.function.Fu... | true |
Other | spring-projects | spring-framework | c462fe30ede2ee7e8d41c1a19596aaec19b3750a.json | Use Named arguments in parameterized tests | spring-websocket/src/test/java/org/springframework/web/socket/AbstractWebSocketIntegrationTests.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.w... | true |
Other | spring-projects | spring-framework | c462fe30ede2ee7e8d41c1a19596aaec19b3750a.json | Use Named arguments in parameterized tests | src/checkstyle/checkstyle-suppressions.xml | @@ -104,6 +104,7 @@
<suppress files="ExtractingResponseErrorHandlerTests" checks="MutableException" />
<suppress files="ServletAnnotationControllerHandlerMethodTests" checks="InterfaceIsType" />
<suppress files="src[\\/]test[\\/]java[\\/]org[\\/]springframework[\\/]web[\\/]servlet[\\/]resource[\\/]GzipSupport" ch... | true |
Other | spring-projects | spring-framework | c1261f2860176bf3091e51b772fa35bf558d38bb.json | Fix accidental exclusion of BeanMapEmitter class
Closes gh-28110 | spring-core/spring-core.gradle | @@ -76,7 +76,8 @@ jar {
dependsOn cglibRepackJar
from(zipTree(cglibRepackJar.archivePath)) {
include "org/springframework/cglib/**"
- exclude "org/springframework/cglib/beans/BeanMap*.class"
+ exclude "org/springframework/cglib/beans/BeanMap.class"
+ exclude "org/springframework/cglib/beans/BeanMap\$*.class"
... | false |
Other | spring-projects | spring-framework | 12244b2e51bfde11209211c3ee56eef905cd96a7.json | Provide more control over factory failure handling
Add an additional `FactoryInstantiationFailureHandler` strategy
interface to `SpringFactoriesLoader` to allows instantiation
failures to be handled on a per-factory bases.
For example, to log trace messages for only factories that can't
be created the following can b... | spring-core/src/main/java/org/springframework/core/io/support/SpringFactoriesLoader.java | @@ -29,6 +29,8 @@
import java.util.List;
import java.util.Map;
import java.util.Properties;
+import java.util.function.BiConsumer;
+import java.util.function.BiFunction;
import java.util.function.Function;
import java.util.function.Supplier;
@@ -95,6 +97,8 @@ public final class SpringFactoriesLoader {
privat... | true |
Other | spring-projects | spring-framework | 12244b2e51bfde11209211c3ee56eef905cd96a7.json | Provide more control over factory failure handling
Add an additional `FactoryInstantiationFailureHandler` strategy
interface to `SpringFactoriesLoader` to allows instantiation
failures to be handled on a per-factory bases.
For example, to log trace messages for only factories that can't
be created the following can b... | spring-core/src/test/java/org/springframework/core/io/support/SpringFactoriesLoaderTests.java | @@ -21,19 +21,27 @@
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
+import java.util.ArrayList;
import java.util.List;
+import org.apache.commons.logging.Log;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api... | true |
Other | spring-projects | spring-framework | 9fbf5dc945688f879c6b3d112b631f54447eae03.json | Use String#lastIndexOf(int) where possible | spring-beans/src/main/java/org/springframework/beans/factory/support/RootBeanDefinition.java | @@ -508,7 +508,7 @@ boolean hasAnyExternallyManagedInitMethod(String initMethod) {
}
if (this.externallyManagedInitMethods != null) {
for (String candidate : this.externallyManagedInitMethods) {
- int indexOfDot = candidate.lastIndexOf(".");
+ int indexOfDot = candidate.lastIndexOf('.');
if (... | true |
Other | spring-projects | spring-framework | 9fbf5dc945688f879c6b3d112b631f54447eae03.json | Use String#lastIndexOf(int) where possible | spring-core/src/main/java/org/springframework/util/StringUtils.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.
@@ -65,6 +65,8 @@ public abstract class StringU... | true |
Other | spring-projects | spring-framework | 9fbf5dc945688f879c6b3d112b631f54447eae03.json | Use String#lastIndexOf(int) where possible | spring-webmvc/src/test/java/org/springframework/web/servlet/tags/form/AbstractHtmlElementTagTests.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.
@@ -136,7 +136,7 @@ protected final void assert... | true |
Other | spring-projects | spring-framework | 6e2e45d18f7b016fba15d73db08a05fe530813a2.json | Apply @SafeVarargs to ManagedMap.ofEntries(...) | spring-beans/src/main/java/org/springframework/beans/factory/support/ManagedMap.java | @@ -67,6 +67,7 @@ public ManagedMap(int initialCapacity) {
* @return a {@code Map} containing the specified mappings
* @since 5.3.16
*/
+ @SafeVarargs
@SuppressWarnings("unchecked")
public static <K,V> ManagedMap<K,V> ofEntries(Entry<? extends K, ? extends V>... entries) {
ManagedMap<K,V > map = new Man... | false |
Other | spring-projects | spring-framework | 542b6427c3b4682ab25e829756ae72c4d49e662f.json | Revise documentation for TestSocketUtils | spring-core/src/testFixtures/java/org/springframework/core/testfixture/net/TestSocketUtils.java | @@ -16,7 +16,6 @@
package org.springframework.core.testfixture.net;
-import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.util.Random;
@@ -26,21 +25,20 @@
import org.springframework.util.Assert;
/**
- * Removed from spring-core and introduced as an internal ... | false |
Other | spring-projects | spring-framework | 672555a568445d27ab3d1efc0d87dd9bde779acc.json | Add support of init and destroy methods
This commit updates InitDestroyBeanPostProcessor so that it contributes
init or destroy method names to the `RootBeanDefinition`. This is then
used by the generator to provide these methods to the optimized AOT
context.
Invocation of those init methods still happen using reflec... | spring-beans/src/main/java/org/springframework/beans/factory/annotation/InitDestroyAnnotationBeanPostProcessor.java | @@ -32,20 +32,24 @@
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
+import java.util.stream.Stream;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.BeansException;
import org.springframework.bean... | true |
Other | spring-projects | spring-framework | 672555a568445d27ab3d1efc0d87dd9bde779acc.json | Add support of init and destroy methods
This commit updates InitDestroyBeanPostProcessor so that it contributes
init or destroy method names to the `RootBeanDefinition`. This is then
used by the generator to provide these methods to the optimized AOT
context.
Invocation of those init methods still happen using reflec... | spring-beans/src/main/java/org/springframework/beans/factory/generator/BeanRegistrationBeanFactoryContribution.java | @@ -55,6 +55,7 @@
import org.springframework.lang.Nullable;
import org.springframework.util.ClassUtils;
import org.springframework.util.ObjectUtils;
+import org.springframework.util.ReflectionUtils;
import org.springframework.util.StringUtils;
/**
@@ -121,6 +122,14 @@ public void applyTo(BeanFactoryInitializatio... | true |
Other | spring-projects | spring-framework | 672555a568445d27ab3d1efc0d87dd9bde779acc.json | Add support of init and destroy methods
This commit updates InitDestroyBeanPostProcessor so that it contributes
init or destroy method names to the `RootBeanDefinition`. This is then
used by the generator to provide these methods to the optimized AOT
context.
Invocation of those init methods still happen using reflec... | spring-beans/src/test/java/org/springframework/beans/factory/annotation/InitDestroyAnnotationBeanPostProcessorTests.java | @@ -0,0 +1,101 @@
+/*
+ * 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 | 672555a568445d27ab3d1efc0d87dd9bde779acc.json | Add support of init and destroy methods
This commit updates InitDestroyBeanPostProcessor so that it contributes
init or destroy method names to the `RootBeanDefinition`. This is then
used by the generator to provide these methods to the optimized AOT
context.
Invocation of those init methods still happen using reflec... | spring-beans/src/test/java/org/springframework/beans/factory/generator/BeanRegistrationBeanFactoryContributionTests.java | @@ -56,6 +56,7 @@
import org.springframework.beans.testfixture.beans.factory.generator.SimpleConfiguration;
import org.springframework.beans.testfixture.beans.factory.generator.factory.SampleFactory;
import org.springframework.beans.testfixture.beans.factory.generator.injection.InjectionComponent;
+import org.spring... | true |
Other | spring-projects | spring-framework | 672555a568445d27ab3d1efc0d87dd9bde779acc.json | Add support of init and destroy methods
This commit updates InitDestroyBeanPostProcessor so that it contributes
init or destroy method names to the `RootBeanDefinition`. This is then
used by the generator to provide these methods to the optimized AOT
context.
Invocation of those init methods still happen using reflec... | spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/lifecycle/Destroy.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 | 672555a568445d27ab3d1efc0d87dd9bde779acc.json | Add support of init and destroy methods
This commit updates InitDestroyBeanPostProcessor so that it contributes
init or destroy method names to the `RootBeanDefinition`. This is then
used by the generator to provide these methods to the optimized AOT
context.
Invocation of those init methods still happen using reflec... | spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/lifecycle/Init.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 | 672555a568445d27ab3d1efc0d87dd9bde779acc.json | Add support of init and destroy methods
This commit updates InitDestroyBeanPostProcessor so that it contributes
init or destroy method names to the `RootBeanDefinition`. This is then
used by the generator to provide these methods to the optimized AOT
context.
Invocation of those init methods still happen using reflec... | spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/lifecycle/InitDestroyBean.java | @@ -0,0 +1,35 @@
+/*
+ * 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 | 672555a568445d27ab3d1efc0d87dd9bde779acc.json | Add support of init and destroy methods
This commit updates InitDestroyBeanPostProcessor so that it contributes
init or destroy method names to the `RootBeanDefinition`. This is then
used by the generator to provide these methods to the optimized AOT
context.
Invocation of those init methods still happen using reflec... | spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/lifecycle/MultiInitDestroyBean.java | @@ -0,0 +1,29 @@
+/*
+ * 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 | 672555a568445d27ab3d1efc0d87dd9bde779acc.json | Add support of init and destroy methods
This commit updates InitDestroyBeanPostProcessor so that it contributes
init or destroy method names to the `RootBeanDefinition`. This is then
used by the generator to provide these methods to the optimized AOT
context.
Invocation of those init methods still happen using reflec... | spring-context/src/test/java/org/springframework/context/generator/ApplicationContextAotGeneratorTests.java | @@ -43,9 +43,11 @@
import org.springframework.beans.factory.support.RootBeanDefinition;
import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.annotation.AnnotationConfigUtils;
+import org.springframework.context.annotation.CommonAnnotationBeanPostProcessor;
import org.... | true |
Other | spring-projects | spring-framework | 672555a568445d27ab3d1efc0d87dd9bde779acc.json | Add support of init and destroy methods
This commit updates InitDestroyBeanPostProcessor so that it contributes
init or destroy method names to the `RootBeanDefinition`. This is then
used by the generator to provide these methods to the optimized AOT
context.
Invocation of those init methods still happen using reflec... | spring-context/src/testFixtures/java/org/springframework/context/testfixture/context/generator/annotation/InitDestroyComponent.java | @@ -0,0 +1,47 @@
+/*
+ * 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 | a0061b7fb944b70d6d1e581ff46c4e16ed1071e8.json | Remove cast on AbstractFactoryBean
Closes gh-28153 | spring-beans/src/main/java/org/springframework/beans/factory/generator/BeanRegistrationBeanFactoryContribution.java | @@ -46,7 +46,7 @@
import org.springframework.beans.factory.config.ConstructorArgumentValues;
import org.springframework.beans.factory.config.ConstructorArgumentValues.ValueHolder;
import org.springframework.beans.factory.generator.config.BeanDefinitionRegistrar;
-import org.springframework.beans.factory.support.Abst... | true |
Other | spring-projects | spring-framework | a0061b7fb944b70d6d1e581ff46c4e16ed1071e8.json | Remove cast on AbstractFactoryBean
Closes gh-28153 | spring-beans/src/main/java/org/springframework/beans/factory/generator/InnerBeanRegistrationBeanFactoryContribution.java | @@ -16,8 +16,8 @@
package org.springframework.beans.factory.generator;
-import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.generator.config.BeanDefinitionRegistrar;
+import org.springframework.beans.factory.support.RootBeanDefinition;
import org.springframewo... | true |
Other | spring-projects | spring-framework | a0061b7fb944b70d6d1e581ff46c4e16ed1071e8.json | Remove cast on AbstractFactoryBean
Closes gh-28153 | spring-beans/src/test/java/org/springframework/beans/factory/generator/BeanRegistrationBeanFactoryContributionTests.java | @@ -537,12 +537,13 @@ private BeanRegistrationBeanFactoryContribution getContribution(DefaultListableB
}
private BeanFactoryContribution getContribution(BeanDefinition beanDefinition, Executable instanceCreator) {
- return new BeanRegistrationBeanFactoryContribution("test", beanDefinition,
+ return new BeanRegi... | true |
Other | spring-projects | spring-framework | 1bbcd706befde60676a220f5040b725ec0da40c2.json | Upgrade Ubuntu version in CI image | ci/images/ci-image/Dockerfile | @@ -1,4 +1,4 @@
-FROM ubuntu:focal-20220113
+FROM ubuntu:focal-20220302
ADD setup.sh /setup.sh
ADD get-jdk-url.sh /get-jdk-url.sh | false |
Other | spring-projects | spring-framework | 67b7c16bc0b5e9f21d38173676d52db4541a997f.json | Fix visibility of DefaultSockJsSchedulerContainer
Closes gh-28146 | spring-websocket/src/main/java/org/springframework/web/socket/config/annotation/WebSocketConfigurationSupport.java | @@ -95,7 +95,7 @@ private ThreadPoolTaskScheduler initDefaultSockJsScheduler() {
}
- private static class DefaultSockJsSchedulerContainer implements InitializingBean, DisposableBean {
+ static class DefaultSockJsSchedulerContainer implements InitializingBean, DisposableBean {
@Nullable
private final Threa... | false |
Other | spring-projects | spring-framework | 899761f0a8890353dc01f10d2af96ae192f3e655.json | Avoid unnecessary parsing of path params
See gh-25690 | spring-web/src/main/java/org/springframework/web/util/UrlPathHelper.java | @@ -556,8 +556,7 @@ protected String determineEncoding(HttpServletRequest request) {
* @return the updated URI string
*/
public String removeSemicolonContent(String requestUri) {
- return (this.removeSemicolonContent ?
- removeSemicolonContentInternal(requestUri) : removeJsessionid(requestUri));
+ return (... | true |
Other | spring-projects | spring-framework | 899761f0a8890353dc01f10d2af96ae192f3e655.json | Avoid unnecessary parsing of path params
See gh-25690 | spring-web/src/main/java/org/springframework/web/util/WebUtils.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.
@@ -733,6 +733,9 @@ public static MultiValueMap... | true |
Other | spring-projects | spring-framework | 899761f0a8890353dc01f10d2af96ae192f3e655.json | Avoid unnecessary parsing of path params
See gh-25690 | spring-web/src/test/java/org/springframework/web/util/UrlPathHelperTests.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.
@@ -126,22 +126,14 @@ public void getRequestRem... | true |
Other | spring-projects | spring-framework | 899761f0a8890353dc01f10d2af96ae192f3e655.json | Avoid unnecessary parsing of path params
See gh-25690 | spring-web/src/test/java/org/springframework/web/util/WebUtilsTests.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.
@@ -16,7 +16,6 @@
package org.springframewor... | true |
Other | spring-projects | spring-framework | a93af329fc84845c26cdde8ae9388c85ee01d390.json | Fix javadoc typos (from ASM master)
See gh-24872 | spring-core/src/main/java/org/springframework/asm/ClassReader.java | @@ -2965,7 +2965,7 @@ private int readElementValues(
// Parse the array_value array.
while (numElementValuePairs-- > 0) {
currentOffset =
- readElementValue(annotationVisitor, currentOffset, /* named = */ null, charBuffer);
+ readElementValue(annotationVisitor, currentOffset... | true |
Other | spring-projects | spring-framework | a93af329fc84845c26cdde8ae9388c85ee01d390.json | Fix javadoc typos (from ASM master)
See gh-24872 | spring-core/src/main/java/org/springframework/asm/ClassVisitor.java | @@ -30,7 +30,7 @@
/**
* A visitor to visit a Java class. The methods of this class must be called in the following order:
* {@code visit} [ {@code visitSource} ] [ {@code visitModule} ][ {@code visitNestHost} ][ {@code
- * visitPermittedclass} ][ {@code visitOuterClass} ] ( {@code visitAnnotation} | {@code
+ * vis... | true |
Other | spring-projects | spring-framework | 3fd89c3ac1e3f8b6c98aae89a3f43afb4f36e976.json | Fix merge result
See gh-25706 | spring-expression/src/test/java/org/springframework/expression/spel/standard/SpelCompilerTests.java | @@ -83,61 +83,6 @@ public int getOrder() {
return 42;
}
}
-
- @Test // gh-25706
- void defaultMethodInvocation() {
- SpelParserConfiguration config = new SpelParserConfiguration(SpelCompilerMode.IMMEDIATE, null);
- SpelExpressionParser parser = new SpelExpressionParser(config);
-
- StandardEvaluationContex... | false |
Other | spring-projects | spring-framework | d550d344d55e0b410f517069bb7d6e4cd816617e.json | Respect context path in WebMvc.fn & WebFlux.fn
This commit makes several changes in both WebMvc.fn as well as
WebFlux.fn.
- ServerRequest now exposes a RequestPath through requestPath(), and
pathContainer() has been deprecated.
- The PathPredicate and PathResourceLookupFunction now respects this
RequestPath'... | spring-test/src/main/java/org/springframework/mock/web/reactive/function/server/MockServerRequest.java | @@ -41,7 +41,6 @@
import org.springframework.http.MediaType;
import org.springframework.http.codec.HttpMessageReader;
import org.springframework.http.codec.multipart.Part;
-import org.springframework.http.server.PathContainer;
import org.springframework.http.server.RequestPath;
import org.springframework.http.serv... | true |
Other | spring-projects | spring-framework | d550d344d55e0b410f517069bb7d6e4cd816617e.json | Respect context path in WebMvc.fn & WebFlux.fn
This commit makes several changes in both WebMvc.fn as well as
WebFlux.fn.
- ServerRequest now exposes a RequestPath through requestPath(), and
pathContainer() has been deprecated.
- The PathPredicate and PathResourceLookupFunction now respects this
RequestPath'... | spring-web/src/main/java/org/springframework/web/util/pattern/PathPattern.java | @@ -249,7 +249,7 @@ else if (!hasLength(pathContainer)) {
@Nullable
public PathRemainingMatchInfo matchStartOfPath(PathContainer pathContainer) {
if (this.head == null) {
- return new PathRemainingMatchInfo(pathContainer);
+ return new PathRemainingMatchInfo(EMPTY_PATH, pathContainer);
}
else if (!hasL... | true |
Other | spring-projects | spring-framework | d550d344d55e0b410f517069bb7d6e4cd816617e.json | Respect context path in WebMvc.fn & WebFlux.fn
This commit makes several changes in both WebMvc.fn as well as
WebFlux.fn.
- ServerRequest now exposes a RequestPath through requestPath(), and
pathContainer() has been deprecated.
- The PathPredicate and PathResourceLookupFunction now respects this
RequestPath'... | spring-web/src/test/java/org/springframework/web/util/pattern/PathPatternTests.java | @@ -557,18 +557,21 @@ public void pathRemainingEnhancements_spr15419() {
pp = parse("/{this}/{one}/{here}");
pri = getPathRemaining(pp, "/foo/bar/goo/boo");
assertThat(pri.getPathRemaining().value()).isEqualTo("/boo");
+ assertThat(pri.getPathMatched().value()).isEqualTo("/foo/bar/goo");
assertThat(pri.get... | true |
Other | spring-projects | spring-framework | d550d344d55e0b410f517069bb7d6e4cd816617e.json | Respect context path in WebMvc.fn & WebFlux.fn
This commit makes several changes in both WebMvc.fn as well as
WebFlux.fn.
- ServerRequest now exposes a RequestPath through requestPath(), and
pathContainer() has been deprecated.
- The PathPredicate and PathResourceLookupFunction now respects this
RequestPath'... | spring-webflux/src/main/java/org/springframework/web/reactive/function/server/DefaultServerRequest.java | @@ -43,7 +43,7 @@
import org.springframework.http.MediaType;
import org.springframework.http.codec.HttpMessageReader;
import org.springframework.http.codec.multipart.Part;
-import org.springframework.http.server.PathContainer;
+import org.springframework.http.server.RequestPath;
import org.springframework.http.serv... | true |
Other | spring-projects | spring-framework | d550d344d55e0b410f517069bb7d6e4cd816617e.json | Respect context path in WebMvc.fn & WebFlux.fn
This commit makes several changes in both WebMvc.fn as well as
WebFlux.fn.
- ServerRequest now exposes a RequestPath through requestPath(), and
pathContainer() has been deprecated.
- The PathPredicate and PathResourceLookupFunction now respects this
RequestPath'... | spring-webflux/src/main/java/org/springframework/web/reactive/function/server/PathResourceLookupFunction.java | @@ -56,7 +56,7 @@ public PathResourceLookupFunction(String pattern, Resource location) {
@Override
public Mono<Resource> apply(ServerRequest request) {
- PathContainer pathContainer = request.pathContainer();
+ PathContainer pathContainer = request.requestPath().pathWithinApplication();
if (!this.pattern.mat... | true |
Other | spring-projects | spring-framework | d550d344d55e0b410f517069bb7d6e4cd816617e.json | Respect context path in WebMvc.fn & WebFlux.fn
This commit makes several changes in both WebMvc.fn as well as
WebFlux.fn.
- ServerRequest now exposes a RequestPath through requestPath(), and
pathContainer() has been deprecated.
- The PathPredicate and PathResourceLookupFunction now respects this
RequestPath'... | spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RequestPredicates.java | @@ -19,7 +19,6 @@
import java.net.InetSocketAddress;
import java.net.URI;
import java.security.Principal;
-import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.EnumSet;
@@ -47,6 +46,7 @@
import org.springframework.http.codec.HttpMessageReader;
import org.springfram... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.