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
efaee61f3117aa1fce1db7ab0d15fd39216d24b4.json
Harmonize accessors of RuntimeHints API Closes gh-29269
spring-core/src/main/java/org/springframework/aot/hint/SerializationHints.java
@@ -45,7 +45,7 @@ public SerializationHints() { * that need to be serialized using Java serialization at runtime. * @return a stream of {@link JavaSerializationHint java serialization hints} */ - public Stream<JavaSerializationHint> javaSerialization() { + public Stream<JavaSerializationHint> javaSerialization...
true
Other
spring-projects
spring-framework
efaee61f3117aa1fce1db7ab0d15fd39216d24b4.json
Harmonize accessors of RuntimeHints API Closes gh-29269
spring-core/src/main/java/org/springframework/aot/hint/predicate/ProxyHintsPredicates.java
@@ -61,7 +61,7 @@ public Predicate<RuntimeHints> forInterfaces(Class<?>... interfaces) { public Predicate<RuntimeHints> forInterfaces(TypeReference... interfaces) { Assert.notEmpty(interfaces, "'interfaces' should not be empty"); List<TypeReference> interfaceList = Arrays.asList(interfaces); - return hints -> ...
true
Other
spring-projects
spring-framework
efaee61f3117aa1fce1db7ab0d15fd39216d24b4.json
Harmonize accessors of RuntimeHints API Closes gh-29269
spring-core/src/main/java/org/springframework/aot/hint/predicate/ResourceHintsPredicates.java
@@ -51,7 +51,7 @@ public class ResourceHintsPredicates { */ public Predicate<RuntimeHints> forBundle(String bundleName) { Assert.hasText(bundleName, "resource bundle name should not be empty"); - return runtimeHints -> runtimeHints.resources().resourceBundles() + return runtimeHints -> runtimeHints.resources(...
true
Other
spring-projects
spring-framework
efaee61f3117aa1fce1db7ab0d15fd39216d24b4.json
Harmonize accessors of RuntimeHints API Closes gh-29269
spring-core/src/main/java/org/springframework/aot/hint/predicate/SerializationHintsPredicates.java
@@ -56,7 +56,7 @@ public Predicate<RuntimeHints> onType(Class<?> type) { */ public Predicate<RuntimeHints> onType(TypeReference typeReference) { Assert.notNull(typeReference, "'typeReference' should not be null"); - return hints -> hints.serialization().javaSerialization().anyMatch( + return hints -> hints.se...
true
Other
spring-projects
spring-framework
efaee61f3117aa1fce1db7ab0d15fd39216d24b4.json
Harmonize accessors of RuntimeHints API Closes gh-29269
spring-core/src/main/java/org/springframework/aot/nativex/NativeConfigurationWriter.java
@@ -40,17 +40,17 @@ public abstract class NativeConfigurationWriter { * @param hints the hints to handle */ public void write(RuntimeHints hints) { - if (hints.serialization().javaSerialization().findAny().isPresent()) { - writeJavaSerializationHints(hints.serialization()); + if (hints.serialization().javaS...
true
Other
spring-projects
spring-framework
efaee61f3117aa1fce1db7ab0d15fd39216d24b4.json
Harmonize accessors of RuntimeHints API Closes gh-29269
spring-core/src/main/java/org/springframework/aot/nativex/ProxyHintsWriter.java
@@ -39,7 +39,7 @@ class ProxyHintsWriter { public static final ProxyHintsWriter INSTANCE = new ProxyHintsWriter(); public void write(BasicJsonWriter writer, ProxyHints hints) { - writer.writeArray(hints.jdkProxies().map(this::toAttributes).toList()); + writer.writeArray(hints.jdkProxyHints().map(this::toAttribu...
true
Other
spring-projects
spring-framework
efaee61f3117aa1fce1db7ab0d15fd39216d24b4.json
Harmonize accessors of RuntimeHints API Closes gh-29269
spring-core/src/main/java/org/springframework/aot/nativex/ResourceHintsWriter.java
@@ -47,15 +47,15 @@ class ResourceHintsWriter { public void write(BasicJsonWriter writer, ResourceHints hints) { Map<String, Object> attributes = new LinkedHashMap<>(); addIfNotEmpty(attributes, "resources", toAttributes(hints)); - handleResourceBundles(attributes, hints.resourceBundles()); + handleResourceBu...
true
Other
spring-projects
spring-framework
efaee61f3117aa1fce1db7ab0d15fd39216d24b4.json
Harmonize accessors of RuntimeHints API Closes gh-29269
spring-core/src/main/java/org/springframework/aot/nativex/SerializationHintsWriter.java
@@ -39,7 +39,7 @@ class SerializationHintsWriter { public static final SerializationHintsWriter INSTANCE = new SerializationHintsWriter(); public void write(BasicJsonWriter writer, SerializationHints hints) { - writer.writeArray(hints.javaSerialization().map(this::toAttributes).toList()); + writer.writeArray(hi...
true
Other
spring-projects
spring-framework
efaee61f3117aa1fce1db7ab0d15fd39216d24b4.json
Harmonize accessors of RuntimeHints API Closes gh-29269
spring-core/src/test/java/org/springframework/aot/hint/ProxyHintsTests.java
@@ -53,20 +53,20 @@ void registerJdkProxyWithConcreteClass() { @Test void registerJdkProxyWithInterface() { this.proxyHints.registerJdkProxy(Function.class); - assertThat(this.proxyHints.jdkProxies()).singleElement().satisfies(proxiedInterfaces(Function.class)); + assertThat(this.proxyHints.jdkProxyHints()).si...
true
Other
spring-projects
spring-framework
efaee61f3117aa1fce1db7ab0d15fd39216d24b4.json
Harmonize accessors of RuntimeHints API Closes gh-29269
spring-core/src/test/java/org/springframework/aot/hint/ResourceHintsTests.java
@@ -45,37 +45,37 @@ class ResourceHintsTests { @Test void registerType() { this.resourceHints.registerType(String.class); - assertThat(this.resourceHints.resourcePatterns()).singleElement().satisfies( + assertThat(this.resourceHints.resourcePatternHints()).singleElement().satisfies( patternOf("java/lang/S...
true
Other
spring-projects
spring-framework
efaee61f3117aa1fce1db7ab0d15fd39216d24b4.json
Harmonize accessors of RuntimeHints API Closes gh-29269
spring-core/src/test/java/org/springframework/aot/hint/RuntimeHintsTests.java
@@ -46,7 +46,7 @@ void reflectionHintWithClass() { @Test void resourceHintWithClass() { this.hints.resources().registerType(String.class); - assertThat(this.hints.resources().resourcePatterns()).singleElement().satisfies(resourceHint -> { + assertThat(this.hints.resources().resourcePatternHints()).singleElemen...
true
Other
spring-projects
spring-framework
efaee61f3117aa1fce1db7ab0d15fd39216d24b4.json
Harmonize accessors of RuntimeHints API Closes gh-29269
spring-core/src/test/java/org/springframework/aot/hint/SerializationHintsTests.java
@@ -35,7 +35,7 @@ class SerializationHintsTests { void registerTypeTwiceExposesOneHint() { this.serializationHints.registerType(URL.class); this.serializationHints.registerType(TypeReference.of(URL.class.getName())); - assertThat(this.serializationHints.javaSerialization()).singleElement() + assertThat(this.s...
true
Other
spring-projects
spring-framework
efaee61f3117aa1fce1db7ab0d15fd39216d24b4.json
Harmonize accessors of RuntimeHints API Closes gh-29269
spring-core/src/test/java/org/springframework/aot/hint/support/FilePatternResourceHintsRegistrarTests.java
@@ -55,63 +55,63 @@ void createWithInvalidExtension() { void registerWithSinglePattern() { new FilePatternResourceHintsRegistrar(List.of("test"), List.of(""), List.of(".txt")) .registerHints(this.hints, null); - assertThat(this.hints.resourcePatterns()).singleElement() + assertThat(this.hints.resourcePatter...
true
Other
spring-projects
spring-framework
935265048a9d18843c0606c2e065116594fa4d6d.json
Simplify TestRuntimeHintsRegistrar API Prior to this commit, the TestRuntimeHintsRegistrar API combined processing of MergedContextConfiguration and test classes. However, it appears that only spring-test internals have a need for registering hints based on the MergedContextConfiguration. For example, Spring Boot's AO...
spring-test/src/main/java/org/springframework/test/context/aot/MergedContextConfigurationRuntimeHints.java
@@ -0,0 +1,135 @@ +/* + * 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
935265048a9d18843c0606c2e065116594fa4d6d.json
Simplify TestRuntimeHintsRegistrar API Prior to this commit, the TestRuntimeHintsRegistrar API combined processing of MergedContextConfiguration and test classes. However, it appears that only spring-test internals have a need for registering hints based on the MergedContextConfiguration. For example, Spring Boot's AO...
spring-test/src/main/java/org/springframework/test/context/aot/TestContextAotGenerator.java
@@ -16,7 +16,6 @@ package org.springframework.test.context.aot; -import java.util.Collections; import java.util.Map; import java.util.concurrent.atomic.AtomicInteger; import java.util.stream.Stream; @@ -67,6 +66,9 @@ public class TestContextAotGenerator { private final AotServices<TestRuntimeHintsRegistrar>...
true
Other
spring-projects
spring-framework
935265048a9d18843c0606c2e065116594fa4d6d.json
Simplify TestRuntimeHintsRegistrar API Prior to this commit, the TestRuntimeHintsRegistrar API combined processing of MergedContextConfiguration and test classes. However, it appears that only spring-test internals have a need for registering hints based on the MergedContextConfiguration. For example, Spring Boot's AO...
spring-test/src/main/java/org/springframework/test/context/aot/TestRuntimeHintsRegistrar.java
@@ -16,10 +16,7 @@ package org.springframework.test.context.aot; -import java.util.List; - import org.springframework.aot.hint.RuntimeHints; -import org.springframework.test.context.MergedContextConfiguration; /** * Contract for registering {@link RuntimeHints} for integration tests run with @@ -34,8 +31,8 @...
true
Other
spring-projects
spring-framework
935265048a9d18843c0606c2e065116594fa4d6d.json
Simplify TestRuntimeHintsRegistrar API Prior to this commit, the TestRuntimeHintsRegistrar API combined processing of MergedContextConfiguration and test classes. However, it appears that only spring-test internals have a need for registering hints based on the MergedContextConfiguration. For example, Spring Boot's AO...
spring-test/src/main/java/org/springframework/test/context/aot/hint/StandardTestRuntimeHints.java
@@ -16,23 +16,15 @@ package org.springframework.test.context.aot.hint; -import java.util.Arrays; -import java.util.List; - import org.springframework.aot.hint.RuntimeHints; import org.springframework.core.annotation.MergedAnnotations; -import org.springframework.core.io.DefaultResourceLoader; import org.springf...
true
Other
spring-projects
spring-framework
7ad65b8dff197c0cd44dd19790a754bdfdc79f8f.json
Allocate more memory to Checkstyle tasks
build.gradle
@@ -93,6 +93,14 @@ configure([rootProject] + javaProjects) { project -> configDirectory.set(rootProject.file("src/checkstyle")) } + tasks.named("checkstyleMain").configure { + maxHeapSize = "1g" + } + + tasks.named("checkstyleTest").configure { + maxHeapSize = "1g" + } + dependencies { dependencyManagemen...
false
Other
spring-projects
spring-framework
084d7d1bdc8ef24b7c045efcfb67ea09b0aedd85.json
Remove duplicate ClassPathResourceTests class
spring-core/src/test/java/org/springframework/core/io/ClassPathResourceTests.java
@@ -22,6 +22,7 @@ import java.io.IOException; import java.net.URL; import java.net.URLClassLoader; +import java.util.HashSet; import java.util.zip.ZipEntry; import java.util.zip.ZipOutputStream; @@ -50,6 +51,43 @@ class ClassPathResourceTests { private static final String ABSOLUTE_PATH_TO_NONEXISTENT_RESOURCE_...
true
Other
spring-projects
spring-framework
084d7d1bdc8ef24b7c045efcfb67ea09b0aedd85.json
Remove duplicate ClassPathResourceTests class
spring-core/src/test/java/org/springframework/core/io/ResourceTests.java
@@ -30,7 +30,6 @@ import java.nio.channels.ReadableByteChannel; import java.nio.file.Path; import java.nio.file.Paths; -import java.util.HashSet; import java.util.stream.Stream; import okhttp3.mockwebserver.Dispatcher; @@ -205,40 +204,6 @@ void hasDescription() { } } - - @Nested - class ClassPathResourceT...
true
Other
spring-projects
spring-framework
75dea9881126b1a9424c71cb25cba1fb41474780.json
Revise docs on RFC 7807 See gh-28814
src/docs/asciidoc/web/webflux.adoc
@@ -3495,47 +3495,49 @@ include::webflux-cors.adoc[leveloffset=+1] == REST API exceptions [.small]#<<web.adoc#mvc-ann-rest-exceptions, Web MVC>># -A common requirement for REST services is to include error details in the body of the -response. The Spring Framework provides support for -https://www.rfc-editor.org/rf...
true
Other
spring-projects
spring-framework
75dea9881126b1a9424c71cb25cba1fb41474780.json
Revise docs on RFC 7807 See gh-28814
src/docs/asciidoc/web/webmvc.adoc
@@ -4827,47 +4827,50 @@ include::webmvc-cors.adoc[leveloffset=+1] == REST API exceptions [.small]#<<web-reactive.adoc#webflux-ann-rest-exceptions, WebFlux>># -A common requirement for REST services is to include error details in the body of the -response. The Spring Framework provides support for -https://www.rfc-e...
true
Other
spring-projects
spring-framework
681cf0dae7c739125479168b5a7ce7e716eba2f5.json
Provide full request URL for "http.url" keyvalue Prior to this commit, the Observation filter for Servlet applications would only use the request pathInfo as an "http.url" high cardinality keyvalue. This commit ensures that we're using the full request URL as a value there. This also polishes gh-29254. Fixes gh-2925...
spring-web/src/main/java/org/springframework/http/client/observation/DefaultClientHttpObservationConvention.java
@@ -46,7 +46,7 @@ public class DefaultClientHttpObservationConvention implements ClientHttpObserva private static final KeyValue EXCEPTION_NONE = KeyValue.of(ClientHttpObservation.LowCardinalityKeyNames.EXCEPTION, "none"); - private static final KeyValue URI_EXPANDED_NONE = KeyValue.of(ClientHttpObservation.HighC...
true
Other
spring-projects
spring-framework
681cf0dae7c739125479168b5a7ce7e716eba2f5.json
Provide full request URL for "http.url" keyvalue Prior to this commit, the Observation filter for Servlet applications would only use the request pathInfo as an "http.url" high cardinality keyvalue. This commit ensures that we're using the full request URL as a value there. This also polishes gh-29254. Fixes gh-2925...
spring-web/src/main/java/org/springframework/web/observation/DefaultHttpRequestsObservationConvention.java
@@ -47,7 +47,7 @@ public class DefaultHttpRequestsObservationConvention implements HttpRequestsObs private static final KeyValue EXCEPTION_NONE = KeyValue.of(HttpRequestsObservation.LowCardinalityKeyNames.EXCEPTION, "none"); - private static final KeyValue URI_EXPANDED_UNKNOWN = KeyValue.of(HttpRequestsObservatio...
true
Other
spring-projects
spring-framework
681cf0dae7c739125479168b5a7ce7e716eba2f5.json
Provide full request URL for "http.url" keyvalue Prior to this commit, the Observation filter for Servlet applications would only use the request pathInfo as an "http.url" high cardinality keyvalue. This commit ensures that we're using the full request URL as a value there. This also polishes gh-29254. Fixes gh-2925...
spring-web/src/main/java/org/springframework/web/observation/reactive/DefaultHttpRequestsObservationConvention.java
@@ -48,7 +48,7 @@ public class DefaultHttpRequestsObservationConvention implements HttpRequestsObs private static final KeyValue EXCEPTION_NONE = KeyValue.of(HttpRequestsObservation.LowCardinalityKeyNames.EXCEPTION, "none"); - private static final KeyValue URI_EXPANDED_UNKNOWN = KeyValue.of(HttpRequestsObservatio...
true
Other
spring-projects
spring-framework
681cf0dae7c739125479168b5a7ce7e716eba2f5.json
Provide full request URL for "http.url" keyvalue Prior to this commit, the Observation filter for Servlet applications would only use the request pathInfo as an "http.url" high cardinality keyvalue. This commit ensures that we're using the full request URL as a value there. This also polishes gh-29254. Fixes gh-2925...
spring-web/src/test/java/org/springframework/web/observation/DefaultHttpRequestsObservationConventionTests.java
@@ -60,7 +60,6 @@ void supportsOnlyHttpRequestsObservationContext() { void addsKeyValuesForExchange() { this.request.setMethod("POST"); this.request.setRequestURI("/test/resource"); - this.request.setPathInfo("/test/resource"); assertThat(this.convention.getLowCardinalityKeyValues(this.context)).hasSize(5...
true
Other
spring-projects
spring-framework
681cf0dae7c739125479168b5a7ce7e716eba2f5.json
Provide full request URL for "http.url" keyvalue Prior to this commit, the Observation filter for Servlet applications would only use the request pathInfo as an "http.url" high cardinality keyvalue. This commit ensures that we're using the full request URL as a value there. This also polishes gh-29254. Fixes gh-2925...
spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultClientObservationConvention.java
@@ -47,7 +47,7 @@ public class DefaultClientObservationConvention implements ClientObservationConv private static final KeyValue EXCEPTION_NONE = KeyValue.of(ClientObservation.LowCardinalityKeyNames.EXCEPTION, "none"); - private static final KeyValue URI_EXPANDED_NONE = KeyValue.of(ClientHttpObservation.HighCardi...
true
Other
spring-projects
spring-framework
f2e9d112b1f2ce036f59746515595b47bc5613d0.json
Fix TypeReference#getName for CGLIB proxies This commit makes sure that the double '$' sign typically used by generated cglib proxies are not used as an inner class separator. Closes gh-29252
spring-core/src/main/java/org/springframework/aot/hint/SimpleTypeReference.java
@@ -49,7 +49,7 @@ static SimpleTypeReference of(String className) { if (!className.contains("$")) { return createTypeReference(className); } - String[] elements = className.split("\\$"); + String[] elements = className.split("(?<!\\$)\\$(?!\\$)"); SimpleTypeReference typeReference = createTypeReference(e...
true
Other
spring-projects
spring-framework
f2e9d112b1f2ce036f59746515595b47bc5613d0.json
Fix TypeReference#getName for CGLIB proxies This commit makes sure that the double '$' sign typically used by generated cglib proxies are not used as an inner class separator. Closes gh-29252
spring-core/src/test/java/org/springframework/aot/generate/GeneratedTypeReferenceTests.java
@@ -73,6 +73,23 @@ void createWithClassNameAndParent() { }); } + @Test + void nameOfCglibProxy() { + TypeReference reference = GeneratedTypeReference.of( + ClassName.get("com.example", "Test$$SpringCGLIB$$0")); + assertThat(reference.getSimpleName()).isEqualTo("Test$$SpringCGLIB$$0"); + assertThat(referenc...
true
Other
spring-projects
spring-framework
f2e9d112b1f2ce036f59746515595b47bc5613d0.json
Fix TypeReference#getName for CGLIB proxies This commit makes sure that the double '$' sign typically used by generated cglib proxies are not used as an inner class separator. Closes gh-29252
spring-core/src/test/java/org/springframework/aot/hint/SimpleTypeReferenceTests.java
@@ -76,6 +76,21 @@ static Stream<Arguments> arrays() { Arguments.of(SimpleTypeReference.of("com.example.Test[]"), "com.example.Test[]")); } + @Test + void nameOfCglibProxy() { + TypeReference reference = TypeReference.of("com.example.Test$$SpringCGLIB$$0"); + assertThat(reference.getSimpleName()).isEqualTo("...
true
Other
spring-projects
spring-framework
9820e3341d8691eddcadc0adc33e2a90bde1b37e.json
Fix handling of protected visibility Previously, InstanceSupplierCodeGenerator used reflection if the target visibility is either protected or private, and use direct access if the target visibility is public or package private. The previous arrangement already assumed that the code is generateed in the same package ...
spring-beans/src/main/java/org/springframework/beans/factory/aot/InstanceSupplierCodeGenerator.java
@@ -113,8 +113,7 @@ private CodeBlock generateCodeForConstructor(RegisteredBean registeredBean, .getUserClass(constructor.getDeclaringClass()); boolean dependsOnBean = ClassUtils.isInnerClass(declaringClass); Visibility accessVisibility = getAccessVisibility(registeredBean, constructor); - if (accessVisibil...
false
Other
spring-projects
spring-framework
113db2fb2f6a1ad73d37bfe83c5dbbb22edb296e.json
Fix regression in AbstractJackson2Decoder Closes gh-29307
spring-web/src/main/java/org/springframework/http/codec/json/AbstractJackson2Decoder.java
@@ -292,6 +292,10 @@ public List<MimeType> getDecodableMimeTypes() { return getMimeTypes(); } + @Override + public List<MimeType> getDecodableMimeTypes(ResolvableType targetType) { + return getMimeTypes(targetType); + } // Jackson2CodecSupport
true
Other
spring-projects
spring-framework
113db2fb2f6a1ad73d37bfe83c5dbbb22edb296e.json
Fix regression in AbstractJackson2Decoder Closes gh-29307
spring-web/src/test/java/org/springframework/http/codec/json/Jackson2JsonDecoderTests.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. @@ -95,7 +95,7 @@ public void canDecode() { ...
true
Other
spring-projects
spring-framework
3f42d4de43de5d0a47f23effd34ea8fc867629e1.json
Upgrade Ubuntu version in CI image
ci/images/ci-image/Dockerfile
@@ -1,4 +1,4 @@ -FROM ubuntu:focal-20220826 +FROM ubuntu:focal-20220922 ADD setup.sh /setup.sh ADD get-jdk-url.sh /get-jdk-url.sh
false
Other
spring-projects
spring-framework
6c3a7192b726c96db7069ba3dd77bba91b999b23.json
Add classpath check for context-propagation See gh-29056
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ReactiveTypeHandler.java
@@ -47,6 +47,7 @@ import org.springframework.http.server.ServerHttpResponse; import org.springframework.lang.Nullable; import org.springframework.util.Assert; +import org.springframework.util.ClassUtils; import org.springframework.util.CollectionUtils; import org.springframework.util.MimeType; import org.springfr...
false
Other
spring-projects
spring-framework
965dd66f8cfc162de94d517c4e5515d6002ac874.json
Improve Javadoc for RepeatableContainers
spring-core/src/main/java/org/springframework/core/annotation/RepeatableContainers.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. @@ -39,6 +39,7 @@ * <p>To completely disable ...
false
Other
spring-projects
spring-framework
4bb2e2323994791d23649ac9de4faf9b306498a2.json
Resolve CGLIB core<->transform package cycle See gh-28955
spring-core/src/main/java/org/springframework/cglib/core/ClassEmitter.java
@@ -15,8 +15,6 @@ */ package org.springframework.cglib.core; -import org.springframework.cglib.transform.ClassTransformer; - import org.springframework.asm.ClassVisitor; import org.springframework.asm.FieldVisitor; import org.springframework.asm.MethodVisitor;
true
Other
spring-projects
spring-framework
4bb2e2323994791d23649ac9de4faf9b306498a2.json
Resolve CGLIB core<->transform package cycle See gh-28955
spring-core/src/main/java/org/springframework/cglib/core/ClassTransformer.java
@@ -13,9 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.springframework.cglib.transform; +package org.springframework.cglib.core; -import org.springframework.cglib.core.Constants; import org.springframework.asm.ClassVisitor; pu...
true
Other
spring-projects
spring-framework
4bb2e2323994791d23649ac9de4faf9b306498a2.json
Resolve CGLIB core<->transform package cycle See gh-28955
spring-core/src/main/java/org/springframework/cglib/transform/AbstractClassFilterTransformer.java
@@ -15,7 +15,12 @@ */ package org.springframework.cglib.transform; -import org.springframework.asm.*; +import org.springframework.asm.AnnotationVisitor; +import org.springframework.asm.Attribute; +import org.springframework.asm.ClassVisitor; +import org.springframework.asm.FieldVisitor; +import org.springframework...
true
Other
spring-projects
spring-framework
4bb2e2323994791d23649ac9de4faf9b306498a2.json
Resolve CGLIB core<->transform package cycle See gh-28955
spring-core/src/main/java/org/springframework/cglib/transform/AbstractClassTransformer.java
@@ -15,6 +15,7 @@ */ package org.springframework.cglib.transform; +import org.springframework.cglib.core.ClassTransformer; import org.springframework.cglib.core.Constants; import org.springframework.asm.ClassVisitor;
true
Other
spring-projects
spring-framework
4bb2e2323994791d23649ac9de4faf9b306498a2.json
Resolve CGLIB core<->transform package cycle See gh-28955
spring-core/src/main/java/org/springframework/cglib/transform/ClassFilterTransformer.java
@@ -16,6 +16,8 @@ package org.springframework.cglib.transform; +import org.springframework.cglib.core.ClassTransformer; + public class ClassFilterTransformer extends AbstractClassFilterTransformer { private ClassFilter filter;
true
Other
spring-projects
spring-framework
4bb2e2323994791d23649ac9de4faf9b306498a2.json
Resolve CGLIB core<->transform package cycle See gh-28955
spring-core/src/main/java/org/springframework/cglib/transform/ClassTransformerChain.java
@@ -15,7 +15,9 @@ */ package org.springframework.cglib.transform; -import org.springframework.asm.*; +import org.springframework.asm.ClassVisitor; +import org.springframework.asm.MethodVisitor; +import org.springframework.cglib.core.ClassTransformer; public class ClassTransformerChain extends AbstractClassTrans...
true
Other
spring-projects
spring-framework
4bb2e2323994791d23649ac9de4faf9b306498a2.json
Resolve CGLIB core<->transform package cycle See gh-28955
spring-core/src/main/java/org/springframework/cglib/transform/ClassTransformerFactory.java
@@ -15,6 +15,8 @@ */ package org.springframework.cglib.transform; +import org.springframework.cglib.core.ClassTransformer; + public interface ClassTransformerFactory { ClassTransformer newInstance(); }
true
Other
spring-projects
spring-framework
4bb2e2323994791d23649ac9de4faf9b306498a2.json
Resolve CGLIB core<->transform package cycle See gh-28955
spring-core/src/main/java/org/springframework/cglib/transform/ClassTransformerTee.java
@@ -15,6 +15,7 @@ */ package org.springframework.cglib.transform; +import org.springframework.cglib.core.ClassTransformer; import org.springframework.cglib.core.Constants; import org.springframework.asm.ClassVisitor;
true
Other
spring-projects
spring-framework
4bb2e2323994791d23649ac9de4faf9b306498a2.json
Resolve CGLIB core<->transform package cycle See gh-28955
spring-core/src/main/java/org/springframework/cglib/transform/ClassVisitorTee.java
@@ -15,8 +15,13 @@ */ package org.springframework.cglib.transform; +import org.springframework.asm.AnnotationVisitor; +import org.springframework.asm.Attribute; +import org.springframework.asm.ClassVisitor; +import org.springframework.asm.FieldVisitor; +import org.springframework.asm.MethodVisitor; +import org.spr...
true
Other
spring-projects
spring-framework
4bb2e2323994791d23649ac9de4faf9b306498a2.json
Resolve CGLIB core<->transform package cycle See gh-28955
spring-core/src/main/java/org/springframework/cglib/transform/MethodFilterTransformer.java
@@ -15,7 +15,9 @@ */ package org.springframework.cglib.transform; -import org.springframework.asm.*; +import org.springframework.asm.ClassVisitor; +import org.springframework.asm.MethodVisitor; +import org.springframework.cglib.core.ClassTransformer; public class MethodFilterTransformer extends AbstractClassTra...
true
Other
spring-projects
spring-framework
4bb2e2323994791d23649ac9de4faf9b306498a2.json
Resolve CGLIB core<->transform package cycle See gh-28955
spring-core/src/main/java/org/springframework/cglib/transform/MethodVisitorTee.java
@@ -15,8 +15,13 @@ */ package org.springframework.cglib.transform; +import org.springframework.asm.AnnotationVisitor; +import org.springframework.asm.Attribute; +import org.springframework.asm.Handle; +import org.springframework.asm.Label; +import org.springframework.asm.MethodVisitor; +import org.springframework....
true
Other
spring-projects
spring-framework
4bb2e2323994791d23649ac9de4faf9b306498a2.json
Resolve CGLIB core<->transform package cycle See gh-28955
spring-core/src/main/java/org/springframework/cglib/transform/TransformingClassGenerator.java
@@ -18,6 +18,7 @@ import org.springframework.asm.ClassVisitor; import org.springframework.cglib.core.ClassGenerator; +import org.springframework.cglib.core.ClassTransformer; public class TransformingClassGenerator implements ClassGenerator { private final ClassGenerator gen;
true
Other
spring-projects
spring-framework
4bb2e2323994791d23649ac9de4faf9b306498a2.json
Resolve CGLIB core<->transform package cycle See gh-28955
spring-core/src/main/java/org/springframework/cglib/transform/TransformingClassLoader.java
@@ -18,6 +18,7 @@ import org.springframework.asm.ClassReader; import org.springframework.cglib.core.ClassGenerator; +import org.springframework.cglib.core.ClassTransformer; public class TransformingClassLoader extends AbstractClassLoader { private final ClassTransformerFactory t;
true
Other
spring-projects
spring-framework
4bb2e2323994791d23649ac9de4faf9b306498a2.json
Resolve CGLIB core<->transform package cycle See gh-28955
spring-core/src/main/java/org/springframework/cglib/transform/impl/UndeclaredThrowableStrategy.java
@@ -19,7 +19,7 @@ import org.springframework.cglib.core.DefaultGeneratorStrategy; import org.springframework.cglib.core.GeneratorStrategy; import org.springframework.cglib.core.TypeUtils; -import org.springframework.cglib.transform.ClassTransformer; +import org.springframework.cglib.core.ClassTransformer; import or...
true
Other
spring-projects
spring-framework
45939720f2b96cf2784e9c34a6ca0d627f8353b7.json
Add native support for @ExceptionHandler This commit makes sure that `@ExceptionHandler`-annotated methods can be invoked via reflection in a native image. As most of the handling of the parameter and the return type is shared with our generic RequestMapping handling, the ReflectiveProcessor extends from it. An `@Exc...
spring-web/src/main/java/org/springframework/web/bind/annotation/ControllerMappingReflectiveProcessor.java
@@ -29,11 +29,12 @@ import org.springframework.core.annotation.AnnotatedElementUtils; import org.springframework.http.HttpEntity; import org.springframework.lang.Nullable; +import org.springframework.stereotype.Controller; /** - * {@link ReflectiveProcessor} implementation for {@link RequestMapping} - * annotated...
true
Other
spring-projects
spring-framework
45939720f2b96cf2784e9c34a6ca0d627f8353b7.json
Add native support for @ExceptionHandler This commit makes sure that `@ExceptionHandler`-annotated methods can be invoked via reflection in a native image. As most of the handling of the parameter and the return type is shared with our generic RequestMapping handling, the ReflectiveProcessor extends from it. An `@Exc...
spring-web/src/main/java/org/springframework/web/bind/annotation/ExceptionHandler.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. @@ -22,6 +22,8 @@ import java.lang.annotation....
true
Other
spring-projects
spring-framework
45939720f2b96cf2784e9c34a6ca0d627f8353b7.json
Add native support for @ExceptionHandler This commit makes sure that `@ExceptionHandler`-annotated methods can be invoked via reflection in a native image. As most of the handling of the parameter and the return type is shared with our generic RequestMapping handling, the ReflectiveProcessor extends from it. An `@Exc...
spring-web/src/main/java/org/springframework/web/bind/annotation/ExceptionHandlerReflectiveProcessor.java
@@ -0,0 +1,40 @@ +/* + * 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
45939720f2b96cf2784e9c34a6ca0d627f8353b7.json
Add native support for @ExceptionHandler This commit makes sure that `@ExceptionHandler`-annotated methods can be invoked via reflection in a native image. As most of the handling of the parameter and the return type is shared with our generic RequestMapping handling, the ReflectiveProcessor extends from it. An `@Exc...
spring-web/src/main/java/org/springframework/web/bind/annotation/RequestMapping.java
@@ -73,7 +73,7 @@ @Retention(RetentionPolicy.RUNTIME) @Documented @Mapping -@Reflective(RequestMappingReflectiveProcessor.class) +@Reflective(ControllerMappingReflectiveProcessor.class) public @interface RequestMapping { /**
true
Other
spring-projects
spring-framework
45939720f2b96cf2784e9c34a6ca0d627f8353b7.json
Add native support for @ExceptionHandler This commit makes sure that `@ExceptionHandler`-annotated methods can be invoked via reflection in a native image. As most of the handling of the parameter and the return type is shared with our generic RequestMapping handling, the ReflectiveProcessor extends from it. An `@Exc...
spring-web/src/test/java/org/springframework/web/bind/annotation/ControllerMappingReflectiveProcessorTests.java
@@ -28,13 +28,13 @@ import static org.assertj.core.api.Assertions.assertThat; /** - * Tests for {@link RequestMappingReflectiveProcessor}. + * Tests for {@link ControllerMappingReflectiveProcessor}. * * @author Sebastien Deleuze */ -public class RequestMappingReflectiveProcessorTests { +public class Controlle...
true
Other
spring-projects
spring-framework
d4a08dae43c2cc71a40ecdc6389807dbfa6fd74f.json
Fix typos in CorsConfiguration[Tests] Closes gh-29292
spring-web/src/main/java/org/springframework/web/cors/CorsConfiguration.java
@@ -123,7 +123,7 @@ public CorsConfiguration(CorsConfiguration other) { * value may be one of the following: * <ul> * <li>a specific domain, e.g. {@code "https://domain1.com"} - * <li>coma-delimited list of specific domains, e.g. + * <li>comma-delimited list of specific domains, e.g. * {@code "https://a1....
true
Other
spring-projects
spring-framework
d4a08dae43c2cc71a40ecdc6389807dbfa6fd74f.json
Fix typos in CorsConfiguration[Tests] Closes gh-29292
spring-web/src/test/java/org/springframework/web/cors/CorsConfigurationTests.java
@@ -291,7 +291,7 @@ void checkOriginAllowed() { config.setAllowCredentials(true); assertThatIllegalArgumentException().isThrownBy(() -> config.checkOrigin("https://domain.com")); - // coma-delimited origins list + // comma-delimited origins list config.setAllowedOrigins(Collections.singletonList("https://a...
true
Other
spring-projects
spring-framework
4eca87baa3218ae36f3b17a41ffe85cf88711dd1.json
Handle hints for CGLIB proxies consistently This commit makes sure that hints are registered for CGLIB proxies even if the proxy itself is not created. This typically happens when AOT runs on an existing classpath, and a previous run already created the proxy. Closes gh-29295
spring-context/src/main/java/org/springframework/context/aot/ApplicationContextAotGenerator.java
@@ -50,7 +50,7 @@ public class ApplicationContextAotGenerator { */ public ClassName processAheadOfTime(GenericApplicationContext applicationContext, GenerationContext generationContext) { - return withGeneratedClassHandler(new GeneratedClassHandler(generationContext), () -> { + return withCglibClassHandler(n...
true
Other
spring-projects
spring-framework
4eca87baa3218ae36f3b17a41ffe85cf88711dd1.json
Handle hints for CGLIB proxies consistently This commit makes sure that hints are registered for CGLIB proxies even if the proxy itself is not created. This typically happens when AOT runs on an existing classpath, and a previous run already created the proxy. Closes gh-29295
spring-context/src/main/java/org/springframework/context/aot/CglibClassHandler.java
@@ -30,46 +30,48 @@ import org.springframework.core.io.ByteArrayResource; /** - * Handle generated classes by adding them to a {@link GenerationContext}, + * Handle CGLIB classes by adding them to a {@link GenerationContext}, * and register the necessary hints so that they can be instantiated. * * @author Ste...
true
Other
spring-projects
spring-framework
4eca87baa3218ae36f3b17a41ffe85cf88711dd1.json
Handle hints for CGLIB proxies consistently This commit makes sure that hints are registered for CGLIB proxies even if the proxy itself is not created. This typically happens when AOT runs on an existing classpath, and a previous run already created the proxy. Closes gh-29295
spring-context/src/main/java/org/springframework/context/support/GenericApplicationContext.java
@@ -21,9 +21,12 @@ import java.lang.reflect.Proxy; import java.util.List; import java.util.concurrent.atomic.AtomicBoolean; +import java.util.function.Consumer; import java.util.function.Supplier; +import org.springframework.aot.hint.MemberCategory; import org.springframework.aot.hint.RuntimeHints; +import org.s...
true
Other
spring-projects
spring-framework
4eca87baa3218ae36f3b17a41ffe85cf88711dd1.json
Handle hints for CGLIB proxies consistently This commit makes sure that hints are registered for CGLIB proxies even if the proxy itself is not created. This typically happens when AOT runs on an existing classpath, and a previous run already created the proxy. Closes gh-29295
spring-context/src/test/java/org/springframework/context/annotation/AnnotationConfigApplicationContextTests.java
@@ -21,7 +21,10 @@ import org.junit.jupiter.api.Test; +import org.springframework.aot.hint.MemberCategory; import org.springframework.aot.hint.RuntimeHints; +import org.springframework.aot.hint.TypeReference; +import org.springframework.aot.hint.predicate.RuntimeHintsPredicates; import org.springframework.beans....
true
Other
spring-projects
spring-framework
4eca87baa3218ae36f3b17a41ffe85cf88711dd1.json
Handle hints for CGLIB proxies consistently This commit makes sure that hints are registered for CGLIB proxies even if the proxy itself is not created. This typically happens when AOT runs on an existing classpath, and a previous run already created the proxy. Closes gh-29295
spring-context/src/test/java/org/springframework/context/aot/ApplicationContextAotGeneratorTests.java
@@ -297,10 +297,15 @@ void processAheadOfTimeWhenHasCglibProxyWriteProxyAndGenerateReflectionHints() t GenericApplicationContext applicationContext = new AnnotationConfigApplicationContext(); applicationContext.registerBean(CglibConfiguration.class); TestGenerationContext context = processAheadOfTime(applic...
true
Other
spring-projects
spring-framework
4eca87baa3218ae36f3b17a41ffe85cf88711dd1.json
Handle hints for CGLIB proxies consistently This commit makes sure that hints are registered for CGLIB proxies even if the proxy itself is not created. This typically happens when AOT runs on an existing classpath, and a previous run already created the proxy. Closes gh-29295
spring-context/src/test/java/org/springframework/context/aot/CglibClassHandlerTests.java
@@ -30,57 +30,46 @@ import org.springframework.core.io.InputStreamSource; import static org.assertj.core.api.Assertions.assertThat; -import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException; /** - * Tests for {@link GeneratedClassHandler}. + * Tests for {@link CglibClassHandler}. * * ...
true
Other
spring-projects
spring-framework
4eca87baa3218ae36f3b17a41ffe85cf88711dd1.json
Handle hints for CGLIB proxies consistently This commit makes sure that hints are registered for CGLIB proxies even if the proxy itself is not created. This typically happens when AOT runs on an existing classpath, and a previous run already created the proxy. Closes gh-29295
spring-context/src/testFixtures/java/org/springframework/context/testfixture/context/annotation/LambdaBeanConfiguration.java
@@ -0,0 +1,31 @@ +/* + * 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
061fa475ee9298bbb1d1bf5222a36d2eaaa6110f.json
Avoid generated code in the javax package This commit updates the existing logic to also exclude code generation in the javax package. Closes gh-29123
spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanDefinitionMethodGenerator.java
@@ -96,7 +96,7 @@ MethodReference generateBeanDefinitionMethod(GenerationContext generationContext BeanRegistrationCodeFragments codeFragments = getCodeFragments(generationContext, beanRegistrationsCode); ClassName target = codeFragments.getTarget(this.registeredBean, this.constructorOrFactoryMethod); - if ...
true
Other
spring-projects
spring-framework
061fa475ee9298bbb1d1bf5222a36d2eaaa6110f.json
Avoid generated code in the javax package This commit updates the existing logic to also exclude code generation in the javax package. Closes gh-29123
spring-beans/src/test/java/org/springframework/beans/factory/aot/BeanDefinitionMethodGeneratorTests.java
@@ -24,6 +24,7 @@ import java.util.function.Supplier; import javax.lang.model.element.Modifier; +import javax.xml.parsers.DocumentBuilderFactory; import org.junit.jupiter.api.Test; @@ -455,6 +456,37 @@ void generateBeanDefinitionMethodWhenPackagePrivateBean() { }); } + @Test + void generateBeanDefinitio...
true
Other
spring-projects
spring-framework
371fd06ae23d9d30ce1547429a931e377594d12e.json
Use AssertJ static imports consistently in main Closes gh-29282
spring-web/src/test/kotlin/org/springframework/http/codec/cbor/KotlinSerializationCborDecoderTests.kt
@@ -20,7 +20,7 @@ import kotlinx.serialization.ExperimentalSerializationApi import kotlinx.serialization.Serializable import kotlinx.serialization.cbor.Cbor import kotlinx.serialization.serializer -import org.assertj.core.api.Assertions +import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api...
true
Other
spring-projects
spring-framework
371fd06ae23d9d30ce1547429a931e377594d12e.json
Use AssertJ static imports consistently in main Closes gh-29282
spring-web/src/test/kotlin/org/springframework/http/codec/cbor/KotlinSerializationCborEncoderTests.kt
@@ -20,7 +20,7 @@ import kotlinx.serialization.ExperimentalSerializationApi import kotlinx.serialization.Serializable import kotlinx.serialization.cbor.Cbor import kotlinx.serialization.encodeToByteArray -import org.assertj.core.api.Assertions +import org.assertj.core.api.Assertions.assertThat import org.junit.jupi...
true
Other
spring-projects
spring-framework
371fd06ae23d9d30ce1547429a931e377594d12e.json
Use AssertJ static imports consistently in main Closes gh-29282
spring-web/src/test/kotlin/org/springframework/http/codec/protobuf/KotlinSerializationProtobufDecoderTests.kt
@@ -20,7 +20,7 @@ import kotlinx.serialization.ExperimentalSerializationApi import kotlinx.serialization.Serializable import kotlinx.serialization.protobuf.ProtoBuf import kotlinx.serialization.serializer -import org.assertj.core.api.Assertions +import org.assertj.core.api.Assertions.assertThat import org.junit.jup...
true
Other
spring-projects
spring-framework
371fd06ae23d9d30ce1547429a931e377594d12e.json
Use AssertJ static imports consistently in main Closes gh-29282
spring-web/src/test/kotlin/org/springframework/http/codec/protobuf/KotlinSerializationProtobufEncoderTests.kt
@@ -20,7 +20,7 @@ import kotlinx.serialization.ExperimentalSerializationApi import kotlinx.serialization.Serializable import kotlinx.serialization.encodeToByteArray import kotlinx.serialization.protobuf.ProtoBuf -import org.assertj.core.api.Assertions +import org.assertj.core.api.Assertions.assertThat import org.ju...
true
Other
spring-projects
spring-framework
1c1a0afbed37ee00db593f5f1d786b8394bc2764.json
Use AssertJ static imports consistently in 5.3.x Closes gh-29282
spring-core/src/test/java/org/springframework/core/CollectionFactoryTests.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,6 @@ import java.util.TreeMap; i...
true
Other
spring-projects
spring-framework
1c1a0afbed37ee00db593f5f1d786b8394bc2764.json
Use AssertJ static imports consistently in 5.3.x Closes gh-29282
spring-core/src/test/kotlin/org/springframework/core/KotlinBridgeMethodResolverTests.kt
@@ -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,7 +16,7 @@ package org.springframewor...
true
Other
spring-projects
spring-framework
1c1a0afbed37ee00db593f5f1d786b8394bc2764.json
Use AssertJ static imports consistently in 5.3.x Closes gh-29282
spring-jdbc/src/test/kotlin/org/springframework/jdbc/core/KotlinDataClassRowMapperTests.kt
@@ -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,7 +16,7 @@ package org.springframework....
true
Other
spring-projects
spring-framework
1c1a0afbed37ee00db593f5f1d786b8394bc2764.json
Use AssertJ static imports consistently in 5.3.x Closes gh-29282
spring-messaging/src/test/kotlin/org/springframework/messaging/converter/KotlinSerializationJsonMessageConverterTests.kt
@@ -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. @@ -17,7 +17,8 @@ package org.springframework....
true
Other
spring-projects
spring-framework
1c1a0afbed37ee00db593f5f1d786b8394bc2764.json
Use AssertJ static imports consistently in 5.3.x Closes gh-29282
spring-test/src/test/kotlin/org/springframework/test/context/KotlinDynamicPropertySourceIntegrationTests.kt
@@ -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. @@ -15,7 +15,7 @@ */ package org.springframe...
true
Other
spring-projects
spring-framework
1c1a0afbed37ee00db593f5f1d786b8394bc2764.json
Use AssertJ static imports consistently in 5.3.x Closes gh-29282
spring-tx/src/test/kotlin/org/springframework/transaction/annotation/CoroutinesAnnotationTransactionInterceptorTests.kt
@@ -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,7 +21,8 @@ import kotlinx.coroutines.flo...
true
Other
spring-projects
spring-framework
1c1a0afbed37ee00db593f5f1d786b8394bc2764.json
Use AssertJ static imports consistently in 5.3.x Closes gh-29282
spring-tx/src/test/kotlin/org/springframework/transaction/interceptor/AbstractCoroutinesTransactionAspectTests.kt
@@ -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. @@ -18,7 +18,7 @@ package org.springframework.t...
true
Other
spring-projects
spring-framework
1c1a0afbed37ee00db593f5f1d786b8394bc2764.json
Use AssertJ static imports consistently in 5.3.x Closes gh-29282
spring-tx/src/test/kotlin/org/springframework/transaction/interceptor/CoroutinesTransactionInterceptorTests.kt
@@ -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. @@ -16,7 +16,7 @@ package org.springframewor...
true
Other
spring-projects
spring-framework
1c1a0afbed37ee00db593f5f1d786b8394bc2764.json
Use AssertJ static imports consistently in 5.3.x Closes gh-29282
spring-web/src/test/kotlin/org/springframework/http/codec/json/KotlinSerializationJsonDecoderTests.kt
@@ -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. @@ -17,7 +17,7 @@ package org.springframework....
true
Other
spring-projects
spring-framework
1c1a0afbed37ee00db593f5f1d786b8394bc2764.json
Use AssertJ static imports consistently in 5.3.x Closes gh-29282
spring-web/src/test/kotlin/org/springframework/http/codec/json/KotlinSerializationJsonEncoderTests.kt
@@ -17,7 +17,7 @@ package org.springframework.http.codec.json import kotlinx.serialization.Serializable -import org.assertj.core.api.Assertions +import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test import org.springframework.core.Ordered import org.springframework.core.ResolvableTy...
true
Other
spring-projects
spring-framework
16ea4692bab551800b9ba994ac08099e8acfd6cd.json
Drop Servlet 4 classpath check
spring-web/src/main/java/org/springframework/web/util/ServletRequestPathUtils.java
@@ -249,15 +249,15 @@ public static RequestPath parse(HttpServletRequest request) { if (requestUri == null) { requestUri = request.getRequestURI(); } - if (UrlPathHelper.servlet4Present) { - String servletPathPrefix = Servlet4Delegate.getServletPathPrefix(request); - if (StringUtils.hasText(servlet...
true
Other
spring-projects
spring-framework
16ea4692bab551800b9ba994ac08099e8acfd6cd.json
Drop Servlet 4 classpath check
spring-web/src/main/java/org/springframework/web/util/UrlPathHelper.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,7 +31,6 @@ import org.springframework...
true
Other
spring-projects
spring-framework
1afc1fc90d4f4b6df80c5aa384c2a47e01da6345.json
Fix regression in AbstractJackson2Encoder Closes gh-29274
spring-web/src/main/java/org/springframework/http/codec/json/AbstractJackson2Encoder.java
@@ -198,6 +198,7 @@ public Flux<DataBuffer> encode(Publisher<?> inputStream, DataBufferFactory buffe bufferFactory.join(Arrays.asList(bufferFactory.wrap(prefix), dataBuffer)) : dataBuffer); }) + .switchIfEmpty(Mono.fromCallable(() -> bufferFactory.wrap(helper.getPrefix()))) ....
true
Other
spring-projects
spring-framework
1afc1fc90d4f4b6df80c5aa384c2a47e01da6345.json
Fix regression in AbstractJackson2Encoder Closes gh-29274
spring-web/src/test/java/org/springframework/http/codec/json/Jackson2JsonEncoderTests.java
@@ -144,6 +144,14 @@ public void encodeNonStream() { .verifyComplete()); } + @Test + public void encodeNonStreamEmpty() { + testEncode(Flux.empty(), Pojo.class, step -> step + .consumeNextWith(expectString("[")) + .consumeNextWith(expectString("]")) + .verifyComplete()); + } + @Test // gh-29038 v...
true
Other
spring-projects
spring-framework
9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json
Introduce support for Netty 5 Buffer This commit introduces support for Netty 5's Buffer, in the form of Netty5DataBuffer. Because of the new API offered by Buffer, several changes have been made to the DataBuffer API: - CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and implemented by Netty5Data...
spring-core/spring-core.gradle
@@ -72,6 +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") testImplementation("jakarta.annotation:jakarta.annotation-api") testImplementation("jakarta.xml.bind:jakarta.xml....
true
Other
spring-projects
spring-framework
9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json
Introduce support for Netty 5 Buffer This commit introduces support for Netty 5's Buffer, in the form of Netty5DataBuffer. Because of the new API offered by Buffer, several changes have been made to the DataBuffer API: - CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and implemented by Netty5Data...
spring-core/src/main/java/org/springframework/core/codec/AbstractSingleValueEncoder.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. @@ -25,7 +25,6 @@ import org.springframework.c...
true
Other
spring-projects
spring-framework
9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json
Introduce support for Netty 5 Buffer This commit introduces support for Netty 5's Buffer, in the form of Netty5DataBuffer. Because of the new API offered by Buffer, several changes have been made to the DataBuffer API: - CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and implemented by Netty5Data...
spring-core/src/main/java/org/springframework/core/codec/ByteBufferDecoder.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. @@ -51,15 +51,12 @@ public boolean canDecode(Re...
true
Other
spring-projects
spring-framework
9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json
Introduce support for Netty 5 Buffer This commit introduces support for Netty 5's Buffer, in the form of Netty5DataBuffer. Because of the new API offered by Buffer, several changes have been made to the DataBuffer API: - CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and implemented by Netty5Data...
spring-core/src/main/java/org/springframework/core/codec/DataBufferDecoder.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. @@ -35,7 +35,7 @@ * after they have been cons...
true
Other
spring-projects
spring-framework
9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json
Introduce support for Netty 5 Buffer This commit introduces support for Netty 5's Buffer, in the form of Netty5DataBuffer. Because of the new API offered by Buffer, several changes have been made to the DataBuffer API: - CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and implemented by Netty5Data...
spring-core/src/main/java/org/springframework/core/codec/Netty5BufferDecoder.java
@@ -0,0 +1,68 @@ +/* + * 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
9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json
Introduce support for Netty 5 Buffer This commit introduces support for Netty 5's Buffer, in the form of Netty5DataBuffer. Because of the new API offered by Buffer, several changes have been made to the DataBuffer API: - CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and implemented by Netty5Data...
spring-core/src/main/java/org/springframework/core/codec/Netty5BufferEncoder.java
@@ -0,0 +1,77 @@ +/* + * 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
9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json
Introduce support for Netty 5 Buffer This commit introduces support for Netty 5's Buffer, in the form of Netty5DataBuffer. Because of the new API offered by Buffer, several changes have been made to the DataBuffer API: - CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and implemented by Netty5Data...
spring-core/src/main/java/org/springframework/core/codec/StringDecoder.java
@@ -35,7 +35,6 @@ import org.springframework.core.io.buffer.DataBuffer; import org.springframework.core.io.buffer.DataBufferUtils; import org.springframework.core.io.buffer.LimitedDataBufferList; -import org.springframework.core.io.buffer.PooledDataBuffer; import org.springframework.core.log.LogFormatUtils; import...
true
Other
spring-projects
spring-framework
9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json
Introduce support for Netty 5 Buffer This commit introduces support for Netty 5's Buffer, in the form of Netty5DataBuffer. Because of the new API offered by Buffer, several changes have been made to the DataBuffer API: - CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and implemented by Netty5Data...
spring-core/src/main/java/org/springframework/core/io/buffer/CloseableDataBuffer.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
9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json
Introduce support for Netty 5 Buffer This commit introduces support for Netty 5's Buffer, in the form of Netty5DataBuffer. Because of the new API offered by Buffer, several changes have been made to the DataBuffer API: - CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and implemented by Netty5Data...
spring-core/src/main/java/org/springframework/core/io/buffer/DataBuffer.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. @@ -111,7 +111,10 @@ public interface DataBuffe...
true
Other
spring-projects
spring-framework
9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json
Introduce support for Netty 5 Buffer This commit introduces support for Netty 5's Buffer, in the form of Netty5DataBuffer. Because of the new API offered by Buffer, several changes have been made to the DataBuffer API: - CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and implemented by Netty5Data...
spring-core/src/main/java/org/springframework/core/io/buffer/DataBufferFactory.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. @@ -34,7 +34,9 @@ public interface DataBufferFa...
true
Other
spring-projects
spring-framework
9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json
Introduce support for Netty 5 Buffer This commit introduces support for Netty 5's Buffer, in the form of Netty5DataBuffer. Because of the new API offered by Buffer, several changes have been made to the DataBuffer API: - CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and implemented by Netty5Data...
spring-core/src/main/java/org/springframework/core/io/buffer/DataBufferInputStream.java
@@ -0,0 +1,111 @@ +/* + * 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
9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json
Introduce support for Netty 5 Buffer This commit introduces support for Netty 5's Buffer, in the form of Netty5DataBuffer. Because of the new API offered by Buffer, several changes have been made to the DataBuffer API: - CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and implemented by Netty5Data...
spring-core/src/main/java/org/springframework/core/io/buffer/DataBufferOutputStream.java
@@ -0,0 +1,73 @@ +/* + * 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
9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json
Introduce support for Netty 5 Buffer This commit introduces support for Netty 5's Buffer, in the form of Netty5DataBuffer. Because of the new API offered by Buffer, several changes have been made to the DataBuffer API: - CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and implemented by Netty5Data...
spring-core/src/main/java/org/springframework/core/io/buffer/DataBufferUtils.java
@@ -156,7 +156,7 @@ public static Flux<DataBuffer> readAsynchronousFileChannel( // and then complete after releasing the DataBuffer. }); - return flux.doOnDiscard(PooledDataBuffer.class, DataBufferUtils::release); + return flux.doOnDiscard(DataBuffer.class, DataBufferUtils::release); } /** @@ -417,...
true
Other
spring-projects
spring-framework
9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json
Introduce support for Netty 5 Buffer This commit introduces support for Netty 5's Buffer, in the form of Netty5DataBuffer. Because of the new API offered by Buffer, several changes have been made to the DataBuffer API: - CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and implemented by Netty5Data...
spring-core/src/main/java/org/springframework/core/io/buffer/DataBufferWrapper.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. @@ -85,15 +85,22 @@ public int capacity() { }...
true
Other
spring-projects
spring-framework
9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json
Introduce support for Netty 5 Buffer This commit introduces support for Netty 5's Buffer, in the form of Netty5DataBuffer. Because of the new API offered by Buffer, several changes have been made to the DataBuffer API: - CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and implemented by Netty5Data...
spring-core/src/main/java/org/springframework/core/io/buffer/DefaultDataBuffer.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,6 @@ package org.springframewor...
true
Other
spring-projects
spring-framework
9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json
Introduce support for Netty 5 Buffer This commit introduces support for Netty 5's Buffer, in the form of Netty5DataBuffer. Because of the new API offered by Buffer, several changes have been made to the DataBuffer API: - CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and implemented by Netty5Data...
spring-core/src/main/java/org/springframework/core/io/buffer/DefaultDataBufferFactory.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. @@ -85,6 +85,7 @@ public DefaultDataBufferFacto...
true