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
8e9a553517de71a21415f5d3e44b87e6024b609a.json
Update Javadoc regarding JUnit versions
spring-test/src/test/java/org/springframework/test/context/junit/jupiter/SpringExtensionParameterizedTests.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. @@ -24,7 +24,6 @@ import org.springframework...
true
Other
spring-projects
spring-framework
8e9a553517de71a21415f5d3e44b87e6024b609a.json
Update Javadoc regarding JUnit versions
spring-test/src/test/java/org/springframework/test/context/junit/jupiter/SpringExtensionTests.java
@@ -31,7 +31,6 @@ import org.springframework.context.support.GenericApplicationContext; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.TestPropertySource; -import org.springframework.test.context.junit.SpringJUnitJupiterTestSuite; import org.springframework.tes...
true
Other
spring-projects
spring-framework
8e9a553517de71a21415f5d3e44b87e6024b609a.json
Update Javadoc regarding JUnit versions
spring-test/src/test/java/org/springframework/test/context/junit/jupiter/SpringJUnitJupiterAutowiredConstructorInjectionTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,7 +22,6 @@ import org.springframework.b...
true
Other
spring-projects
spring-framework
8e9a553517de71a21415f5d3e44b87e6024b609a.json
Update Javadoc regarding JUnit versions
spring-test/src/test/java/org/springframework/test/context/junit/jupiter/SpringJUnitJupiterConstructorInjectionTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,7 +23,6 @@ import org.springframework.b...
true
Other
spring-projects
spring-framework
8e9a553517de71a21415f5d3e44b87e6024b609a.json
Update Javadoc regarding JUnit versions
spring-test/src/test/java/org/springframework/test/context/junit/jupiter/TestConstructorAnnotationIntegrationTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,7 +23,6 @@ import org.springframework.c...
true
Other
spring-projects
spring-framework
8e9a553517de71a21415f5d3e44b87e6024b609a.json
Update Javadoc regarding JUnit versions
spring-test/src/test/java/org/springframework/test/context/junit/jupiter/defaultmethods/CatInterfaceDefaultMethodsTests.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. @@ -16,7 +16,6 @@ package org.springframewor...
true
Other
spring-projects
spring-framework
8e9a553517de71a21415f5d3e44b87e6024b609a.json
Update Javadoc regarding JUnit versions
spring-test/src/test/java/org/springframework/test/context/junit/jupiter/defaultmethods/DogInterfaceDefaultMethodsTests.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. @@ -16,7 +16,6 @@ package org.springframewor...
true
Other
spring-projects
spring-framework
8e9a553517de71a21415f5d3e44b87e6024b609a.json
Update Javadoc regarding JUnit versions
spring-test/src/test/java/org/springframework/test/context/junit/jupiter/defaultmethods/GenericComicCharactersInterfaceDefaultMethodsTests.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. @@ -21,7 +21,6 @@ import org.junit.jupiter.api...
true
Other
spring-projects
spring-framework
8e9a553517de71a21415f5d3e44b87e6024b609a.json
Update Javadoc regarding JUnit versions
spring-test/src/test/java/org/springframework/test/context/junit/jupiter/generics/CatTests.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. @@ -16,7 +16,6 @@ package org.springframewor...
true
Other
spring-projects
spring-framework
8e9a553517de71a21415f5d3e44b87e6024b609a.json
Update Javadoc regarding JUnit versions
spring-test/src/test/java/org/springframework/test/context/junit/jupiter/generics/DogTests.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. @@ -16,7 +16,6 @@ package org.springframewor...
true
Other
spring-projects
spring-framework
8e9a553517de71a21415f5d3e44b87e6024b609a.json
Update Javadoc regarding JUnit versions
spring-test/src/test/java/org/springframework/test/context/junit/jupiter/generics/GenericComicCharactersTests.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. @@ -21,7 +21,6 @@ import org.junit.jupiter.api...
true
Other
spring-projects
spring-framework
8e9a553517de71a21415f5d3e44b87e6024b609a.json
Update Javadoc regarding JUnit versions
spring-test/src/test/java/org/springframework/test/context/junit/jupiter/generics/GenericsAndNestedTests.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. @@ -18,7 +18,6 @@ import org.junit.jupiter.a...
true
Other
spring-projects
spring-framework
8e9a553517de71a21415f5d3e44b87e6024b609a.json
Update Javadoc regarding JUnit versions
spring-test/src/test/java/org/springframework/test/context/junit/jupiter/nested/ConstructorInjectionNestedTests.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. @@ -26,7 +26,6 @@ import org.springframework.c...
true
Other
spring-projects
spring-framework
8e9a553517de71a21415f5d3e44b87e6024b609a.json
Update Javadoc regarding JUnit versions
spring-test/src/test/java/org/springframework/test/context/junit/jupiter/web/MultipleWebRequestsSpringExtensionTests.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. @@ -20,7 +20,6 @@ import org.junit.jupiter.api...
true
Other
spring-projects
spring-framework
8e9a553517de71a21415f5d3e44b87e6024b609a.json
Update Javadoc regarding JUnit versions
spring-test/src/test/java/org/springframework/test/context/junit/jupiter/web/WebSpringExtensionTests.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. @@ -20,7 +20,6 @@ import org.junit.jupiter.api...
true
Other
spring-projects
spring-framework
9ec937c843de372ea9e4d7e6c1312c936b58ef22.json
Remove erroneous Javadoc link
spring-test/src/main/java/org/springframework/test/context/SmartContextLoader.java
@@ -144,7 +144,6 @@ public interface SmartContextLoader extends ContextLoader { * @return a new application context * @throws ContextLoadException if context loading failed * @see #processContextConfiguration(ContextConfigurationAttributes) - * @see #loadContextForAotProcessing(MergedContextConfiguration) ...
false
Other
spring-projects
spring-framework
b0a4c5d72cebe27ee9dc35d58116b355e19c47fb.json
Fix unrendered titles in websocket section This commit fixes the rendering of titles in the websocket section of the reference documentation. Fixes gh-29569
framework-docs/src/docs/asciidoc/web/websocket-intro.adoc
@@ -1,4 +1,4 @@ -[[{chapter}.websocket-intro]] +[id={chapter}.websocket-intro] = Introduction to WebSocket The WebSocket protocol, https://tools.ietf.org/html/rfc6455[RFC 6455], provides a standardized @@ -54,7 +54,7 @@ instructions of the cloud provider related to WebSocket support. -[[{chapter}.websocket-in...
false
Other
spring-projects
spring-framework
b695687e13f4cf8f5e43d4d355b03dd64dc090bd.json
Fix some typos in Kotlin WebClient example code Closes gh-29538
framework-docs/src/docs/asciidoc/web/webflux-webclient.adoc
@@ -253,7 +253,7 @@ To configure a connection timeout: .option(ChannelOption.CONNECT_TIMEOUT_MILLIS, 10000); val webClient = WebClient.builder() - .clientConnector(new ReactorClientHttpConnector(httpClient)) + .clientConnector(ReactorClientHttpConnector(httpClient)) .build(); ---- @@ -281,8 +281,8 @@...
false
Other
spring-projects
spring-framework
1e98fb607a274fc3cc49c24902d7c269f2946514.json
Make SourceHttpMessageConverter optional As a follow-up to gh-29277, and since the JAXB support is now triggered by the classpath presence of a JAXB implementation, it makes sense to make SourceHttpMessageConverter, previously configured unconditionally, optional. That makes a big difference on native (1M of RSS redu...
spring-web/src/main/java/org/springframework/http/converter/support/AllEncompassingFormHttpMessageConverter.java
@@ -26,7 +26,6 @@ import org.springframework.http.converter.smile.MappingJackson2SmileHttpMessageConverter; import org.springframework.http.converter.xml.Jaxb2RootElementHttpMessageConverter; import org.springframework.http.converter.xml.MappingJackson2XmlHttpMessageConverter; -import org.springframework.http.conver...
true
Other
spring-projects
spring-framework
1e98fb607a274fc3cc49c24902d7c269f2946514.json
Make SourceHttpMessageConverter optional As a follow-up to gh-29277, and since the JAXB support is now triggered by the classpath presence of a JAXB implementation, it makes sense to make SourceHttpMessageConverter, previously configured unconditionally, optional. That makes a big difference on native (1M of RSS redu...
spring-web/src/main/java/org/springframework/web/client/RestTemplate.java
@@ -66,7 +66,6 @@ import org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter; import org.springframework.http.converter.xml.Jaxb2RootElementHttpMessageConverter; import org.springframework.http.converter.xml.MappingJackson2XmlHttpMessageConverter; -import org.springframework.http.conve...
true
Other
spring-projects
spring-framework
1e98fb607a274fc3cc49c24902d7c269f2946514.json
Make SourceHttpMessageConverter optional As a follow-up to gh-29277, and since the JAXB support is now triggered by the classpath presence of a JAXB implementation, it makes sense to make SourceHttpMessageConverter, previously configured unconditionally, optional. That makes a big difference on native (1M of RSS redu...
spring-web/src/test/java/org/springframework/http/converter/FormHttpMessageConverterTests.java
@@ -44,11 +44,13 @@ import org.springframework.http.MockHttpInputMessage; import org.springframework.http.MockHttpOutputMessage; import org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter; +import org.springframework.http.converter.xml.SourceHttpMessageConverter; import org.springfram...
true
Other
spring-projects
spring-framework
1e98fb607a274fc3cc49c24902d7c269f2946514.json
Make SourceHttpMessageConverter optional As a follow-up to gh-29277, and since the JAXB support is now triggered by the classpath presence of a JAXB implementation, it makes sense to make SourceHttpMessageConverter, previously configured unconditionally, optional. That makes a big difference on native (1M of RSS redu...
spring-webmvc/src/main/java/org/springframework/web/servlet/config/AnnotationDrivenBeanDefinitionParser.java
@@ -55,7 +55,6 @@ import org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter; import org.springframework.http.converter.xml.Jaxb2RootElementHttpMessageConverter; import org.springframework.http.converter.xml.MappingJackson2XmlHttpMessageConverter; -import org.springframework.http.conve...
true
Other
spring-projects
spring-framework
1e98fb607a274fc3cc49c24902d7c269f2946514.json
Make SourceHttpMessageConverter optional As a follow-up to gh-29277, and since the JAXB support is now triggered by the classpath presence of a JAXB implementation, it makes sense to make SourceHttpMessageConverter, previously configured unconditionally, optional. That makes a big difference on native (1M of RSS redu...
spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupport.java
@@ -58,7 +58,6 @@ import org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter; import org.springframework.http.converter.xml.Jaxb2RootElementHttpMessageConverter; import org.springframework.http.converter.xml.MappingJackson2XmlHttpMessageConverter; -import org.springframework.http.conve...
true
Other
spring-projects
spring-framework
1e98fb607a274fc3cc49c24902d7c269f2946514.json
Make SourceHttpMessageConverter optional As a follow-up to gh-29277, and since the JAXB support is now triggered by the classpath presence of a JAXB implementation, it makes sense to make SourceHttpMessageConverter, previously configured unconditionally, optional. That makes a big difference on native (1M of RSS redu...
spring-webmvc/src/main/java/org/springframework/web/servlet/function/support/RouterFunctionMapping.java
@@ -29,7 +29,6 @@ import org.springframework.http.converter.HttpMessageConverter; import org.springframework.http.converter.StringHttpMessageConverter; import org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter; -import org.springframework.http.converter.xml.SourceHttpMessageConverter;...
true
Other
spring-projects
spring-framework
1e98fb607a274fc3cc49c24902d7c269f2946514.json
Make SourceHttpMessageConverter optional As a follow-up to gh-29277, and since the JAXB support is now triggered by the classpath presence of a JAXB implementation, it makes sense to make SourceHttpMessageConverter, previously configured unconditionally, optional. That makes a big difference on native (1M of RSS redu...
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ExceptionHandlerExceptionResolver.java
@@ -37,7 +37,6 @@ import org.springframework.http.converter.HttpMessageConverter; import org.springframework.http.converter.StringHttpMessageConverter; import org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter; -import org.springframework.http.converter.xml.SourceHttpMessageConverter;...
true
Other
spring-projects
spring-framework
1e98fb607a274fc3cc49c24902d7c269f2946514.json
Make SourceHttpMessageConverter optional As a follow-up to gh-29277, and since the JAXB support is now triggered by the classpath presence of a JAXB implementation, it makes sense to make SourceHttpMessageConverter, previously configured unconditionally, optional. That makes a big difference on native (1M of RSS redu...
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerAdapter.java
@@ -46,7 +46,6 @@ import org.springframework.http.converter.HttpMessageConverter; import org.springframework.http.converter.StringHttpMessageConverter; import org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter; -import org.springframework.http.converter.xml.SourceHttpMessageConverter;...
true
Other
spring-projects
spring-framework
1e98fb607a274fc3cc49c24902d7c269f2946514.json
Make SourceHttpMessageConverter optional As a follow-up to gh-29277, and since the JAXB support is now triggered by the classpath presence of a JAXB implementation, it makes sense to make SourceHttpMessageConverter, previously configured unconditionally, optional. That makes a big difference on native (1M of RSS redu...
spring-webmvc/src/test/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupportTests.java
@@ -173,7 +173,7 @@ public void requestMappingHandlerAdapter() { ApplicationContext context = initContext(WebConfig.class); RequestMappingHandlerAdapter adapter = context.getBean(RequestMappingHandlerAdapter.class); List<HttpMessageConverter<?>> converters = adapter.getMessageConverters(); - assertThat(conver...
true
Other
spring-projects
spring-framework
917c41fd52f655fc4a7c4448e1164afd7e77d21a.json
Use Set.of() for constant sets where appropriate
spring-aop/src/main/java/org/springframework/aop/aspectj/AspectJAdviceParameterNameDiscoverer.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2021 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -132,17 +132,17 @@ public class AspectJAdvic...
true
Other
spring-projects
spring-framework
917c41fd52f655fc4a7c4448e1164afd7e77d21a.json
Use Set.of() for constant sets where appropriate
spring-aop/src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcut.java
@@ -21,7 +21,6 @@ import java.lang.reflect.Method; import java.lang.reflect.Proxy; import java.util.Arrays; -import java.util.HashSet; import java.util.Map; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; @@ -85,21 +84,17 @@ public class AspectJExpressionPointcut extends AbstractExpressionPo...
true
Other
spring-projects
spring-framework
917c41fd52f655fc4a7c4448e1164afd7e77d21a.json
Use Set.of() for constant sets where appropriate
spring-context/src/main/java/org/springframework/context/annotation/ConfigurationClassUtils.java
@@ -17,7 +17,6 @@ package org.springframework.context.annotation; import java.io.IOException; -import java.util.HashSet; import java.util.Map; import java.util.Set; @@ -66,14 +65,12 @@ public abstract class ConfigurationClassUtils { private static final Log logger = LogFactory.getLog(ConfigurationClassUtils...
true
Other
spring-projects
spring-framework
917c41fd52f655fc4a7c4448e1164afd7e77d21a.json
Use Set.of() for constant sets where appropriate
spring-context/src/main/java/org/springframework/validation/beanvalidation/SpringValidatorAdapter.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. @@ -18,7 +18,6 @@ import java.io.Serializabl...
true
Other
spring-projects
spring-framework
917c41fd52f655fc4a7c4448e1164afd7e77d21a.json
Use Set.of() for constant sets where appropriate
spring-core/src/main/java/org/springframework/core/CollectionFactory.java
@@ -55,34 +55,31 @@ */ public final class CollectionFactory { - private static final Set<Class<?>> approximableCollectionTypes = new HashSet<>(); + private static final Set<Class<?>> approximableCollectionTypes = Set.of( + // Standard collection interfaces + Collection.class, + List.class, + Set.class, + ...
true
Other
spring-projects
spring-framework
917c41fd52f655fc4a7c4448e1164afd7e77d21a.json
Use Set.of() for constant sets where appropriate
spring-jdbc/src/main/java/org/springframework/jdbc/support/SQLStateSQLExceptionTranslator.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. @@ -17,7 +17,6 @@ package org.springframework....
true
Other
spring-projects
spring-framework
917c41fd52f655fc4a7c4448e1164afd7e77d21a.json
Use Set.of() for constant sets where appropriate
spring-orm/src/main/java/org/springframework/orm/jpa/SharedEntityManagerCreator.java
@@ -23,7 +23,6 @@ import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.lang.reflect.Proxy; -import java.util.HashSet; import java.util.LinkedHashMap; import java.util.Map; import java.util.Set; @@ -73,25 +72,22 @@ public abstract class SharedEntityManagerCreator { p...
true
Other
spring-projects
spring-framework
917c41fd52f655fc4a7c4448e1164afd7e77d21a.json
Use Set.of() for constant sets where appropriate
spring-orm/src/main/java/org/springframework/orm/jpa/persistenceunit/PersistenceManagedTypesScanner.java
@@ -58,10 +58,9 @@ public final class PersistenceManagedTypesScanner { private static final String PACKAGE_INFO_SUFFIX = ".package-info"; - private static final Set<AnnotationTypeFilter> entityTypeFilters; + private static final Set<AnnotationTypeFilter> entityTypeFilters = new LinkedHashSet<>(4); static { - ...
true
Other
spring-projects
spring-framework
917c41fd52f655fc4a7c4448e1164afd7e77d21a.json
Use Set.of() for constant sets where appropriate
spring-test/src/main/java/org/springframework/test/context/MergedContextConfiguration.java
@@ -75,9 +75,9 @@ public class MergedContextConfiguration implements Serializable { private static final Class<?>[] EMPTY_CLASS_ARRAY = new Class<?>[0]; private static final Set<Class<? extends ApplicationContextInitializer<?>>> EMPTY_INITIALIZER_CLASSES = - Collections.<Class<? extends ApplicationContextInitia...
true
Other
spring-projects
spring-framework
917c41fd52f655fc4a7c4448e1164afd7e77d21a.json
Use Set.of() for constant sets where appropriate
spring-web/src/main/java/org/springframework/http/converter/xml/SourceHttpMessageConverter.java
@@ -21,7 +21,6 @@ import java.io.InputStream; import java.io.OutputStream; import java.io.StringReader; -import java.util.HashSet; import java.util.Set; import javax.xml.parsers.DocumentBuilder; @@ -75,15 +74,12 @@ private static final XMLResolver NO_OP_XML_RESOLVER = (publicID, systemID, base, ns) -> Inpu...
true
Other
spring-projects
spring-framework
917c41fd52f655fc4a7c4448e1164afd7e77d21a.json
Use Set.of() for constant sets where appropriate
spring-web/src/main/java/org/springframework/web/server/adapter/HttpWebHandlerAdapter.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,8 +16,6 @@ package org.springframewor...
true
Other
spring-projects
spring-framework
917c41fd52f655fc4a7c4448e1164afd7e77d21a.json
Use Set.of() for constant sets where appropriate
spring-websocket/src/main/java/org/springframework/web/socket/sockjs/client/SockJsClient.java
@@ -19,7 +19,6 @@ import java.net.URI; import java.security.Principal; import java.util.ArrayList; -import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; @@ -67,14 +66,7 @@ public class SockJsClient implements WebSocketClient, Lifecycle { private static final Log logger ...
true
Other
spring-projects
spring-framework
04366f4129b12eb923423e34ff78b269c46b5b94.json
Update LogAdapter to allow build-time code removal Allow for example to remove those classes and 90 related methods when Logback is used: - org.apache.commons.logging.LogAdapter$JavaUtilAdapter - org.apache.commons.logging.LogAdapter$JavaUtilLog - org.apache.commons.logging.LogAdapter$LocationResolvingLogRecord - org....
spring-core/src/main/java/org/springframework/aot/nativex/feature/PreComputeFieldFeature.java
@@ -36,7 +36,8 @@ class PreComputeFieldFeature implements Feature { Pattern.compile(Pattern.quote("org.springframework.core.NativeDetector#imageCode")), Pattern.compile(Pattern.quote("org.springframework.") + ".*#.*Present"), Pattern.compile(Pattern.quote("org.springframework.") + ".*#.*PRESENT"), - Patte...
true
Other
spring-projects
spring-framework
04366f4129b12eb923423e34ff78b269c46b5b94.json
Update LogAdapter to allow build-time code removal Allow for example to remove those classes and 90 related methods when Logback is used: - org.apache.commons.logging.LogAdapter$JavaUtilAdapter - org.apache.commons.logging.LogAdapter$JavaUtilLog - org.apache.commons.logging.LogAdapter$LocationResolvingLogRecord - org....
spring-jcl/src/main/java/org/apache/commons/logging/LogAdapter.java
@@ -17,6 +17,7 @@ package org.apache.commons.logging; import java.io.Serializable; +import java.util.function.Function; import java.util.logging.LogRecord; import org.apache.logging.log4j.Level; @@ -32,45 +33,52 @@ * Detects the presence of Log4j 2.x / SLF4J, falling back to {@code java.util.logging}. * *...
true
Other
spring-projects
spring-framework
de441b47512e5da53b2ae48f14043e900ea57635.json
Remove TODOs in WebFlux ref docs
framework-docs/src/docs/asciidoc/web/webflux.adoc
@@ -2005,7 +2005,7 @@ generally supported for all return values. value) is considered to have fully handled the response if it also has a `ServerHttpResponse`, a `ServerWebExchange` argument, or an `@ResponseStatus` annotation. The same is also true if the controller has made a positive ETag or `lastModified` ...
false
Other
spring-projects
spring-framework
9c3efdec3271a2c429671b6eaa91c1ea62742549.json
Fix broken link to Web MVC Testing section
framework-docs/src/docs/asciidoc/web-reactive.adoc
@@ -33,7 +33,7 @@ include::web/webflux-websocket.adoc[leveloffset=+1] [[webflux-test]] == Testing -[.small]#<<web.adoc#testing, Same in Spring MVC>># +[.small]#<<web.adoc#webmvc.test, Same in Spring MVC>># The `spring-test` module provides mock implementations of `ServerHttpRequest`, `ServerHttpResponse`, and `...
false
Other
spring-projects
spring-framework
affccba8f1beccdb5910e4a0e909701d33255db5.json
Simplify AOT contribution for scoped proxies This commit makes sure that a `ScopedProxyFactoryBean` is exposed in the container, rather than its underlying proxy. Previously, any lifecycle method that the proxy target exposed were invoked in the container. This is a complementary fix to gh-29335
spring-aop/src/main/java/org/springframework/aop/scope/ScopedProxyBeanRegistrationAotProcessor.java
@@ -145,13 +145,11 @@ public CodeBlock generateInstanceSupplierCode(GenerationContext generationContex GeneratedMethod generatedMethod = beanRegistrationCode.getMethods() .add("getScopedProxyInstance", method -> { - Class<?> beanClass = this.targetBeanDefinition.getResolvableType() - .toClass();...
false
Other
spring-projects
spring-framework
d4f7484252c2662028e6ddef5baa1af4c45be4f6.json
Add Builder to RSocketServiceProxyFactory RSocketServiceProxyFactory now support programmatic initialization through a builder, while bean-style initialization is deprecated. Closes gh-29296
spring-messaging/src/main/java/org/springframework/messaging/rsocket/service/RSocketServiceProxyFactory.java
@@ -51,105 +51,108 @@ */ public final class RSocketServiceProxyFactory implements InitializingBean, EmbeddedValueResolverAware { - private final RSocketRequester rsocketRequester; - - @Nullable - private List<RSocketServiceArgumentResolver> customArgumentResolvers; - @Nullable - private List<RSocketServiceArgume...
true
Other
spring-projects
spring-framework
d4f7484252c2662028e6ddef5baa1af4c45be4f6.json
Add Builder to RSocketServiceProxyFactory RSocketServiceProxyFactory now support programmatic initialization through a builder, while bean-style initialization is deprecated. Closes gh-29296
spring-messaging/src/test/java/org/springframework/messaging/rsocket/service/RSocketServiceIntegrationTests.java
@@ -75,9 +75,7 @@ static void setupOnce() throws Exception { .rsocketStrategies(context.getBean(RSocketStrategies.class)) .tcp("localhost", 7000); - RSocketServiceProxyFactory proxyFactory = new RSocketServiceProxyFactory(requester); - proxyFactory.afterPropertiesSet(); - + RSocketServiceProxyFactory pro...
true
Other
spring-projects
spring-framework
d4f7484252c2662028e6ddef5baa1af4c45be4f6.json
Add Builder to RSocketServiceProxyFactory RSocketServiceProxyFactory now support programmatic initialization through a builder, while bean-style initialization is deprecated. Closes gh-29296
spring-messaging/src/test/java/org/springframework/messaging/rsocket/service/RSocketServiceMethodTests.java
@@ -47,11 +47,10 @@ public class RSocketServiceMethodTests { @BeforeEach - public void setUp() throws Exception { + public void setUp() { this.rsocket = new TestRSocket(); RSocketRequester requester = RSocketRequester.wrap(this.rsocket, TEXT_PLAIN, TEXT_PLAIN, RSocketStrategies.create()); - this.proxyFacto...
true
Other
spring-projects
spring-framework
d4f7484252c2662028e6ddef5baa1af4c45be4f6.json
Add Builder to RSocketServiceProxyFactory RSocketServiceProxyFactory now support programmatic initialization through a builder, while bean-style initialization is deprecated. Closes gh-29296
spring-web/src/main/java/org/springframework/web/service/invoker/HttpServiceProxyFactory.java
@@ -64,10 +64,10 @@ public final class HttpServiceProxyFactory implements InitializingBean, Embedded /** * Create an instance with the underlying HTTP client to use. * @param clientAdapter an adapter for the client - * @deprecated as of 6.0 RC1 in favor of using the Builder to initialize - * the HttpServicePr...
true
Other
spring-projects
spring-framework
d4f7484252c2662028e6ddef5baa1af4c45be4f6.json
Add Builder to RSocketServiceProxyFactory RSocketServiceProxyFactory now support programmatic initialization through a builder, while bean-style initialization is deprecated. Closes gh-29296
src/docs/asciidoc/rsocket.adoc
@@ -935,8 +935,7 @@ Two, create a proxy that will perform the declared RSocket exchanges: [source,java,indent=0,subs="verbatim,quotes"] ---- RSocketRequester requester = ... ; - RSocketServiceProxyFactory factory = new RSocketServiceProxyFactory(requester); - factory.afterPropertiesSet(); + RSocketServiceProxyFacto...
true
Other
spring-projects
spring-framework
5dca43ebd6411e902b8f89f9dc55816df620844a.json
Use KeyValue.NONE_VALUE where possible See https://github.com/micrometer-metrics/micrometer/issues/3458 Closes gh-29342
spring-web/src/main/java/org/springframework/http/client/observation/ClientHttpObservationDocumentation.java
@@ -16,6 +16,7 @@ package org.springframework.http.client.observation; +import io.micrometer.common.KeyValue; import io.micrometer.common.docs.KeyName; import io.micrometer.observation.Observation; import io.micrometer.observation.ObservationConvention; @@ -57,7 +58,7 @@ public KeyName[] getHighCardinalityKeyNa...
true
Other
spring-projects
spring-framework
5dca43ebd6411e902b8f89f9dc55816df620844a.json
Use KeyValue.NONE_VALUE where possible See https://github.com/micrometer-metrics/micrometer/issues/3458 Closes gh-29342
spring-web/src/main/java/org/springframework/http/client/observation/DefaultClientRequestObservationConvention.java
@@ -37,9 +37,9 @@ public class DefaultClientRequestObservationConvention implements ClientRequestO private static final String DEFAULT_NAME = "http.client.requests"; - private static final KeyValue URI_NONE = KeyValue.of(ClientHttpObservationDocumentation.LowCardinalityKeyNames.URI, "none"); + private static fina...
true
Other
spring-projects
spring-framework
5dca43ebd6411e902b8f89f9dc55816df620844a.json
Use KeyValue.NONE_VALUE where possible See https://github.com/micrometer-metrics/micrometer/issues/3458 Closes gh-29342
spring-web/src/main/java/org/springframework/http/observation/DefaultServerRequestObservationConvention.java
@@ -48,7 +48,7 @@ public class DefaultServerRequestObservationConvention implements ServerRequestO private static final KeyValue URI_REDIRECTION = KeyValue.of(ServerHttpObservationDocumentation.LowCardinalityKeyNames.URI, "REDIRECTION"); - private static final KeyValue EXCEPTION_NONE = KeyValue.of(ServerHttpObser...
true
Other
spring-projects
spring-framework
5dca43ebd6411e902b8f89f9dc55816df620844a.json
Use KeyValue.NONE_VALUE where possible See https://github.com/micrometer-metrics/micrometer/issues/3458 Closes gh-29342
spring-web/src/main/java/org/springframework/http/observation/ServerHttpObservationDocumentation.java
@@ -16,6 +16,7 @@ package org.springframework.http.observation; +import io.micrometer.common.KeyValue; import io.micrometer.common.docs.KeyName; import io.micrometer.observation.Observation; import io.micrometer.observation.ObservationConvention; @@ -55,7 +56,7 @@ public KeyName[] getHighCardinalityKeyNames() {...
true
Other
spring-projects
spring-framework
5dca43ebd6411e902b8f89f9dc55816df620844a.json
Use KeyValue.NONE_VALUE where possible See https://github.com/micrometer-metrics/micrometer/issues/3458 Closes gh-29342
spring-web/src/main/java/org/springframework/http/observation/reactive/DefaultServerRequestObservationConvention.java
@@ -50,7 +50,7 @@ public class DefaultServerRequestObservationConvention implements ServerRequestO private static final KeyValue URI_REDIRECTION = KeyValue.of(ServerHttpObservationDocumentation.LowCardinalityKeyNames.URI, "REDIRECTION"); - private static final KeyValue EXCEPTION_NONE = KeyValue.of(ServerHttpObser...
true
Other
spring-projects
spring-framework
5dca43ebd6411e902b8f89f9dc55816df620844a.json
Use KeyValue.NONE_VALUE where possible See https://github.com/micrometer-metrics/micrometer/issues/3458 Closes gh-29342
spring-web/src/main/java/org/springframework/http/observation/reactive/ServerHttpObservationDocumentation.java
@@ -16,6 +16,7 @@ package org.springframework.http.observation.reactive; +import io.micrometer.common.KeyValue; import io.micrometer.common.docs.KeyName; import io.micrometer.observation.Observation; import io.micrometer.observation.ObservationConvention; @@ -55,7 +56,7 @@ public KeyName[] getHighCardinalityKey...
true
Other
spring-projects
spring-framework
5dca43ebd6411e902b8f89f9dc55816df620844a.json
Use KeyValue.NONE_VALUE where possible See https://github.com/micrometer-metrics/micrometer/issues/3458 Closes gh-29342
spring-webflux/src/main/java/org/springframework/web/reactive/function/client/ClientHttpObservationDocumentation.java
@@ -16,6 +16,7 @@ package org.springframework.web.reactive.function.client; +import io.micrometer.common.KeyValue; import io.micrometer.common.docs.KeyName; import io.micrometer.observation.Observation; import io.micrometer.observation.ObservationConvention; @@ -54,7 +55,7 @@ public KeyName[] getHighCardinality...
true
Other
spring-projects
spring-framework
5dca43ebd6411e902b8f89f9dc55816df620844a.json
Use KeyValue.NONE_VALUE where possible See https://github.com/micrometer-metrics/micrometer/issues/3458 Closes gh-29342
spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultClientRequestObservationConvention.java
@@ -36,9 +36,9 @@ public class DefaultClientRequestObservationConvention implements ClientRequestO private static final String DEFAULT_NAME = "http.client.requests"; - private static final KeyValue URI_NONE = KeyValue.of(ClientHttpObservationDocumentation.LowCardinalityKeyNames.URI, "none"); + private static fina...
true
Other
spring-projects
spring-framework
6f64cfd1e5305566312bfa2125774aa4e3edfd75.json
Test square brackets with index/key expressions See gh-27925
spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/NamedParameterUtils.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. @@ -78,9 +78,9 @@ public abstract class NamedPa...
true
Other
spring-projects
spring-framework
6f64cfd1e5305566312bfa2125774aa4e3edfd75.json
Test square brackets with index/key expressions See gh-27925
spring-jdbc/src/test/java/org/springframework/jdbc/core/namedparam/NamedParameterUtilsTests.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. @@ -319,4 +319,29 @@ public void parseSqlStatem...
true
Other
spring-projects
spring-framework
6f64cfd1e5305566312bfa2125774aa4e3edfd75.json
Test square brackets with index/key expressions See gh-27925
spring-r2dbc/src/main/java/org/springframework/r2dbc/core/NamedParameterUtils.java
@@ -37,8 +37,7 @@ /** * Helper methods for named parameter parsing. * - * <p>Only intended for internal use within Spring's R2DBC - * framework. + * <p>Only intended for internal use within Spring's R2DBC framework. * * <p>References to the same parameter name are substituted with * the same bind marker plac...
true
Other
spring-projects
spring-framework
6f64cfd1e5305566312bfa2125774aa4e3edfd75.json
Test square brackets with index/key expressions See gh-27925
spring-r2dbc/src/test/java/org/springframework/r2dbc/core/NamedParameterUtilsUnitTests.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. @@ -43,6 +43,7 @@ public class NamedParameterUt...
true
Other
spring-projects
spring-framework
d4fac82d687ccfa7a24f63233739a40912804239.json
Preserve square brackets for index/key expressions Closes gh-27925
spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/NamedParameterUtils.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,7 +55,7 @@ public abstract class NamedPa...
true
Other
spring-projects
spring-framework
d4fac82d687ccfa7a24f63233739a40912804239.json
Preserve square brackets for index/key expressions Closes gh-27925
spring-jdbc/src/test/java/org/springframework/jdbc/core/namedparam/NamedParameterUtilsTests.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. @@ -327,4 +327,29 @@ public void parseSqlStatem...
true
Other
spring-projects
spring-framework
d4fac82d687ccfa7a24f63233739a40912804239.json
Preserve square brackets for index/key expressions Closes gh-27925
spring-r2dbc/src/main/java/org/springframework/r2dbc/core/NamedParameterUtils.java
@@ -68,7 +68,7 @@ abstract class NamedParameterUtils { * Set of characters that qualify as parameter separators, * indicating that a parameter name in an SQL String has ended. */ - private static final String PARAMETER_SEPARATORS = "\"':&,;()|=+-*%/\\<>^[]"; + private static final String PARAMETER_SEPARATORS =...
true
Other
spring-projects
spring-framework
d4fac82d687ccfa7a24f63233739a40912804239.json
Preserve square brackets for index/key expressions Closes gh-27925
spring-r2dbc/src/test/java/org/springframework/r2dbc/core/NamedParameterUtilsUnitTests.java
@@ -277,6 +277,14 @@ public void parseSqlStatementWithSquareBracket() { assertThat(psql.getParameterNames()).containsExactly("ext"); } + @Test // gh-27925 + void namedParamMapReference() { + String sql = "insert into foos (id) values (:headers[id])"; + ParsedSql psql = NamedParameterUtils.parseSqlStatement(sq...
true
Other
spring-projects
spring-framework
eadb003a8d1973f54c1609bfc8da1bcf89eb9943.json
Introduce builder API for AOT processor Settings Closes gh-29341
spring-context/src/main/java/org/springframework/context/aot/AbstractAotProcessor.java
@@ -24,6 +24,7 @@ import org.springframework.aot.hint.RuntimeHints; import org.springframework.aot.nativex.FileNativeConfigurationWriter; import org.springframework.lang.Nullable; +import org.springframework.util.Assert; import org.springframework.util.FileSystemUtils; /** @@ -49,6 +50,7 @@ public abstract class...
true
Other
spring-projects
spring-framework
eadb003a8d1973f54c1609bfc8da1bcf89eb9943.json
Introduce builder API for AOT processor Settings Closes gh-29341
spring-context/src/test/java/org/springframework/context/aot/AotProcessorTests.java
@@ -0,0 +1,126 @@ +/* + * 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
eadb003a8d1973f54c1609bfc8da1bcf89eb9943.json
Introduce builder API for AOT processor Settings Closes gh-29341
spring-context/src/test/java/org/springframework/context/aot/ContextAotProcessorTests.java
@@ -128,12 +128,13 @@ private static class DemoContextAotProcessor extends ContextAotProcessor { private static Settings createSettings(Path sourceOutput, Path resourceOutput, Path classOutput, String groupId, String artifactId) { - return new Settings() - .setSourceOutput(sourceOutput) - .setResour...
true
Other
spring-projects
spring-framework
eadb003a8d1973f54c1609bfc8da1bcf89eb9943.json
Introduce builder API for AOT processor Settings Closes gh-29341
spring-test/src/test/java/org/springframework/test/context/aot/TestAotProcessorTests.java
@@ -109,12 +109,13 @@ private static class DemoTestAotProcessor extends TestAotProcessor { private static Settings createSettings(Path sourceOutput, Path resourceOutput, Path classOutput, String groupId, String artifactId) { - return new Settings() - .setSourceOutput(sourceOutput) - .setResourceOutp...
true
Other
spring-projects
spring-framework
6d688e196d8f4c41284087e5346da29770349b0c.json
Restore support of list of inner bean definitions This commit restores the support of multiple bean definitions being specified in a `List` as a property value or constructor argument. Rather than handling inner bean definitions externally, there are now supported by BeanDefinitionPropertiesCodeGenerator, and list of...
spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanDefinitionMethodGenerator.java
@@ -57,7 +57,7 @@ class BeanDefinitionMethodGenerator { private final Executable constructorOrFactoryMethod; @Nullable - private final String innerBeanPropertyName; + private final String currentPropertyName; private final List<BeanRegistrationAotContribution> aotContributions; @@ -66,18 +66,18 @@ class Bea...
true
Other
spring-projects
spring-framework
6d688e196d8f4c41284087e5346da29770349b0c.json
Restore support of list of inner bean definitions This commit restores the support of multiple bean definitions being specified in a `List` as a property value or constructor argument. Rather than handling inner bean definitions externally, there are now supported by BeanDefinitionPropertiesCodeGenerator, and list of...
spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanDefinitionMethodGeneratorFactory.java
@@ -35,9 +35,10 @@ * {@link RegisteredBean}. * * @author Phillip Webb + * @author Stephane Nicoll * @since 6.0 * @see BeanDefinitionMethodGenerator - * @see #getBeanDefinitionMethodGenerator(RegisteredBean, String) + * @see #getBeanDefinitionMethodGenerator(RegisteredBean) */ class BeanDefinitionMethodGene...
true
Other
spring-projects
spring-framework
6d688e196d8f4c41284087e5346da29770349b0c.json
Restore support of list of inner bean definitions This commit restores the support of multiple bean definitions being specified in a `List` as a property value or constructor argument. Rather than handling inner bean definitions externally, there are now supported by BeanDefinitionPropertiesCodeGenerator, and list of...
spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanDefinitionPropertiesCodeGenerator.java
@@ -18,6 +18,7 @@ import java.beans.PropertyDescriptor; import java.lang.reflect.Method; +import java.util.ArrayDeque; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; @@ -81,8 +82,6 @@ class BeanDefinitionPropertiesCodeGenerator { private final Predicate<String> attributeFilt...
true
Other
spring-projects
spring-framework
6d688e196d8f4c41284087e5346da29770349b0c.json
Restore support of list of inner bean definitions This commit restores the support of multiple bean definitions being specified in a `List` as a property value or constructor argument. Rather than handling inner bean definitions externally, there are now supported by BeanDefinitionPropertiesCodeGenerator, and list of...
spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanDefinitionPropertyValueCodeGenerator.java
@@ -17,6 +17,7 @@ package org.springframework.beans.factory.aot; import java.nio.charset.Charset; +import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Collections; @@ -29,6 +30,7 @@ import java.util.Set; import java.util.TreeMap; import java.util.TreeSet; +import...
true
Other
spring-projects
spring-framework
6d688e196d8f4c41284087e5346da29770349b0c.json
Restore support of list of inner bean definitions This commit restores the support of multiple bean definitions being specified in a `List` as a property value or constructor argument. Rather than handling inner bean definitions externally, there are now supported by BeanDefinitionPropertiesCodeGenerator, and list of...
spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanRegistrationsAotProcessor.java
@@ -39,7 +39,7 @@ public BeanRegistrationsAotContribution processAheadOfTime(ConfigurableListableB for (String beanName : beanFactory.getBeanDefinitionNames()) { RegisteredBean registeredBean = RegisteredBean.of(beanFactory, beanName); BeanDefinitionMethodGenerator beanDefinitionMethodGenerator = beanDefinit...
true
Other
spring-projects
spring-framework
6d688e196d8f4c41284087e5346da29770349b0c.json
Restore support of list of inner bean definitions This commit restores the support of multiple bean definitions being specified in a `List` as a property value or constructor argument. Rather than handling inner bean definitions externally, there are now supported by BeanDefinitionPropertiesCodeGenerator, and list of...
spring-beans/src/test/java/org/springframework/beans/factory/aot/BeanDefinitionMethodGeneratorFactoryTests.java
@@ -66,8 +66,7 @@ void getBeanDefinitionMethodGeneratorWhenExcludedByBeanRegistrationExcludeFilter RegisteredBean registeredBean = registerTestBean(beanFactory); BeanDefinitionMethodGeneratorFactory methodGeneratorFactory = new BeanDefinitionMethodGeneratorFactory( AotServices.factoriesAndBeans(springFactori...
true
Other
spring-projects
spring-framework
6d688e196d8f4c41284087e5346da29770349b0c.json
Restore support of list of inner bean definitions This commit restores the support of multiple bean definitions being specified in a `List` as a property value or constructor argument. Rather than handling inner bean definitions externally, there are now supported by BeanDefinitionPropertiesCodeGenerator, and list of...
spring-beans/src/test/java/org/springframework/beans/factory/aot/BeanDefinitionMethodGeneratorTests.java
@@ -38,6 +38,7 @@ import org.springframework.beans.factory.support.BeanDefinitionBuilder; import org.springframework.beans.factory.support.DefaultListableBeanFactory; import org.springframework.beans.factory.support.InstanceSupplier; +import org.springframework.beans.factory.support.ManagedList; import org.springfr...
true
Other
spring-projects
spring-framework
6d688e196d8f4c41284087e5346da29770349b0c.json
Restore support of list of inner bean definitions This commit restores the support of multiple bean definitions being specified in a `List` as a property value or constructor argument. Rather than handling inner bean definitions externally, there are now supported by BeanDefinitionPropertiesCodeGenerator, and list of...
spring-beans/src/test/java/org/springframework/beans/factory/aot/BeanDefinitionPropertyValueCodeGeneratorTests.java
@@ -64,12 +64,15 @@ */ class BeanDefinitionPropertyValueCodeGeneratorTests { + private static BeanDefinitionPropertyValueCodeGenerator createPropertyValuesCodeGenerator(GeneratedClass generatedClass) { + return new BeanDefinitionPropertyValueCodeGenerator(generatedClass.getMethods(), null); + } + private void c...
true
Other
spring-projects
spring-framework
b2cf2b9d4879636d9aa3843175bff7cc8a8745fe.json
Remove unused logger field
spring-core/src/main/java/org/springframework/aot/hint/BindingReflectionHintsRegistrar.java
@@ -24,8 +24,6 @@ import kotlin.jvm.JvmClassMappingKt; import kotlin.reflect.KClass; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; import org.springframework.core.KotlinDetector; import org.springframework.core.MethodParameter; @@ -45,8 +43,6 @@ */ public class Bindin...
false
Other
spring-projects
spring-framework
5cb3af708c91a677d86f12ce780642415cd51e48.json
Add Builder to HttpServiceProxyFactory HttpServiceProxyFactory now support programmatic initialization through a builder, while bean-style initialization is deprecated. See gh-29296
spring-web/src/main/java/org/springframework/web/service/invoker/HttpServiceProxyFactory.java
@@ -43,135 +43,132 @@ import org.springframework.web.service.annotation.HttpExchange; /** - * Factory for creating a client proxy given an HTTP service interface with + * Factory to create a client proxy from an HTTP service interface with * {@link HttpExchange @HttpExchange} methods. * - * <p>This class is int...
true
Other
spring-projects
spring-framework
5cb3af708c91a677d86f12ce780642415cd51e48.json
Add Builder to HttpServiceProxyFactory HttpServiceProxyFactory now support programmatic initialization through a builder, while bean-style initialization is deprecated. See gh-29296
spring-web/src/test/java/org/springframework/web/service/invoker/CookieValueArgumentResolverTests.java
@@ -42,8 +42,7 @@ class CookieValueArgumentResolverTests { @BeforeEach void setUp() throws Exception { - HttpServiceProxyFactory proxyFactory = new HttpServiceProxyFactory(this.client); - proxyFactory.afterPropertiesSet(); + HttpServiceProxyFactory proxyFactory = HttpServiceProxyFactory.builder(this.client).bu...
true
Other
spring-projects
spring-framework
5cb3af708c91a677d86f12ce780642415cd51e48.json
Add Builder to HttpServiceProxyFactory HttpServiceProxyFactory now support programmatic initialization through a builder, while bean-style initialization is deprecated. See gh-29296
spring-web/src/test/java/org/springframework/web/service/invoker/HttpMethodArgumentResolverTests.java
@@ -43,7 +43,7 @@ public class HttpMethodArgumentResolverTests { @BeforeEach void setUp() throws Exception { - HttpServiceProxyFactory proxyFactory = new HttpServiceProxyFactory(this.client); + HttpServiceProxyFactory proxyFactory = HttpServiceProxyFactory.builder(this.client).build(); proxyFactory.afterProp...
true
Other
spring-projects
spring-framework
5cb3af708c91a677d86f12ce780642415cd51e48.json
Add Builder to HttpServiceProxyFactory HttpServiceProxyFactory now support programmatic initialization through a builder, while bean-style initialization is deprecated. See gh-29296
spring-web/src/test/java/org/springframework/web/service/invoker/HttpServiceMethodTests.java
@@ -64,7 +64,7 @@ public class HttpServiceMethodTests { @BeforeEach void setUp() throws Exception { - this.proxyFactory = new HttpServiceProxyFactory(this.client); + this.proxyFactory = HttpServiceProxyFactory.builder(this.client).build(); this.proxyFactory.afterPropertiesSet(); } @@ -174,10 +174,10 @@ v...
true
Other
spring-projects
spring-framework
5cb3af708c91a677d86f12ce780642415cd51e48.json
Add Builder to HttpServiceProxyFactory HttpServiceProxyFactory now support programmatic initialization through a builder, while bean-style initialization is deprecated. See gh-29296
spring-web/src/test/java/org/springframework/web/service/invoker/NamedValueArgumentResolverTests.java
@@ -61,8 +61,9 @@ class NamedValueArgumentResolverTests { @BeforeEach void setUp() throws Exception { - HttpServiceProxyFactory proxyFactory = new HttpServiceProxyFactory(this.client); - proxyFactory.addCustomArgumentResolver(this.argumentResolver); + HttpServiceProxyFactory proxyFactory = HttpServiceProxyFact...
true
Other
spring-projects
spring-framework
5cb3af708c91a677d86f12ce780642415cd51e48.json
Add Builder to HttpServiceProxyFactory HttpServiceProxyFactory now support programmatic initialization through a builder, while bean-style initialization is deprecated. See gh-29296
spring-web/src/test/java/org/springframework/web/service/invoker/PathVariableArgumentResolverTests.java
@@ -41,7 +41,7 @@ class PathVariableArgumentResolverTests { @BeforeEach void setUp() throws Exception { - HttpServiceProxyFactory proxyFactory = new HttpServiceProxyFactory(this.client); + HttpServiceProxyFactory proxyFactory = HttpServiceProxyFactory.builder(this.client).build(); proxyFactory.afterPropertie...
true
Other
spring-projects
spring-framework
5cb3af708c91a677d86f12ce780642415cd51e48.json
Add Builder to HttpServiceProxyFactory HttpServiceProxyFactory now support programmatic initialization through a builder, while bean-style initialization is deprecated. See gh-29296
spring-web/src/test/java/org/springframework/web/service/invoker/RequestAttributeArgumentResolverTests.java
@@ -40,8 +40,7 @@ class RequestAttributeArgumentResolverTests { @BeforeEach void setUp() throws Exception { - HttpServiceProxyFactory proxyFactory = new HttpServiceProxyFactory(this.client); - proxyFactory.afterPropertiesSet(); + HttpServiceProxyFactory proxyFactory = HttpServiceProxyFactory.builder(this.clien...
true
Other
spring-projects
spring-framework
5cb3af708c91a677d86f12ce780642415cd51e48.json
Add Builder to HttpServiceProxyFactory HttpServiceProxyFactory now support programmatic initialization through a builder, while bean-style initialization is deprecated. See gh-29296
spring-web/src/test/java/org/springframework/web/service/invoker/RequestBodyArgumentResolverTests.java
@@ -45,8 +45,7 @@ public class RequestBodyArgumentResolverTests { @BeforeEach void setUp() throws Exception { - HttpServiceProxyFactory proxyFactory = new HttpServiceProxyFactory(this.client); - proxyFactory.afterPropertiesSet(); + HttpServiceProxyFactory proxyFactory = HttpServiceProxyFactory.builder(this.cli...
true
Other
spring-projects
spring-framework
5cb3af708c91a677d86f12ce780642415cd51e48.json
Add Builder to HttpServiceProxyFactory HttpServiceProxyFactory now support programmatic initialization through a builder, while bean-style initialization is deprecated. See gh-29296
spring-web/src/test/java/org/springframework/web/service/invoker/RequestHeaderArgumentResolverTests.java
@@ -43,8 +43,7 @@ class RequestHeaderArgumentResolverTests { @BeforeEach void setUp() throws Exception { - HttpServiceProxyFactory proxyFactory = new HttpServiceProxyFactory(this.client); - proxyFactory.afterPropertiesSet(); + HttpServiceProxyFactory proxyFactory = HttpServiceProxyFactory.builder(this.client)....
true
Other
spring-projects
spring-framework
5cb3af708c91a677d86f12ce780642415cd51e48.json
Add Builder to HttpServiceProxyFactory HttpServiceProxyFactory now support programmatic initialization through a builder, while bean-style initialization is deprecated. See gh-29296
spring-web/src/test/java/org/springframework/web/service/invoker/RequestParamArgumentResolverTests.java
@@ -45,8 +45,7 @@ public class RequestParamArgumentResolverTests { @BeforeEach void setUp() throws Exception { - HttpServiceProxyFactory proxyFactory = new HttpServiceProxyFactory(this.client); - proxyFactory.afterPropertiesSet(); + HttpServiceProxyFactory proxyFactory = HttpServiceProxyFactory.builder(this.cl...
true
Other
spring-projects
spring-framework
5cb3af708c91a677d86f12ce780642415cd51e48.json
Add Builder to HttpServiceProxyFactory HttpServiceProxyFactory now support programmatic initialization through a builder, while bean-style initialization is deprecated. See gh-29296
spring-web/src/test/java/org/springframework/web/service/invoker/UrlArgumentResolverTests.java
@@ -40,8 +40,7 @@ public class UrlArgumentResolverTests { @BeforeEach void setUp() throws Exception { - HttpServiceProxyFactory proxyFactory = new HttpServiceProxyFactory(this.client); - proxyFactory.afterPropertiesSet(); + HttpServiceProxyFactory proxyFactory = HttpServiceProxyFactory.builder(this.client).bui...
true
Other
spring-projects
spring-framework
5cb3af708c91a677d86f12ce780642415cd51e48.json
Add Builder to HttpServiceProxyFactory HttpServiceProxyFactory now support programmatic initialization through a builder, while bean-style initialization is deprecated. See gh-29296
spring-webflux/src/main/java/org/springframework/web/reactive/function/client/support/WebClientAdapter.java
@@ -124,6 +124,15 @@ else if (requestValues.getBody() != null) { } + /** + * Create a {@link WebClientAdapter} for the given {@code WebClient} instance. + * @param webClient the client to use + * @return the created adapter instance + */ + public static WebClientAdapter forClient(WebClient webClient) { + ret...
true
Other
spring-projects
spring-framework
5cb3af708c91a677d86f12ce780642415cd51e48.json
Add Builder to HttpServiceProxyFactory HttpServiceProxyFactory now support programmatic initialization through a builder, while bean-style initialization is deprecated. See gh-29296
spring-webflux/src/test/java/org/springframework/web/reactive/function/client/support/WebClientHttpServiceProxyTests.java
@@ -105,10 +105,11 @@ private TestHttpService initHttpService() throws Exception { return initHttpService(webClient); } - private TestHttpService initHttpService(WebClient webClient) throws Exception { - HttpServiceProxyFactory factory = WebClientAdapter.createHttpServiceProxyFactory(webClient); - factory.afte...
true
Other
spring-projects
spring-framework
5cb3af708c91a677d86f12ce780642415cd51e48.json
Add Builder to HttpServiceProxyFactory HttpServiceProxyFactory now support programmatic initialization through a builder, while bean-style initialization is deprecated. See gh-29296
src/docs/asciidoc/integration.adoc
@@ -390,8 +390,7 @@ Two, create a proxy that will perform the declared HTTP exchanges: [source,java,indent=0,subs="verbatim,quotes"] ---- WebClient client = WebClient.builder().baseUrl("https://api.github.com/").build(); - HttpServiceProxyFactory factory = WebClientAdapter.createHttpServiceProxyFactory(client); - f...
true
Other
spring-projects
spring-framework
ba42deb7db626aecbee78707d2f697b7898f8bfb.json
Remove obsolete code
spring-web/src/main/java/org/springframework/web/bind/UnsatisfiedServletRequestParameterException.java
@@ -77,7 +77,6 @@ private static List<String> paramsToStringList(List<String[]> paramConditions) { @Override public String getMessage() { StringBuilder sb = new StringBuilder("Parameter conditions "); - int i = 0; sb.append(String.join(" OR ", paramsToStringList(this.paramConditions))); sb.append(" not me...
false
Other
spring-projects
spring-framework
66989434b41c06a610be1b32f4ebcabbc707bfa3.json
Introduce unit tests for gh-29275
spring-core/src/test/java/org/springframework/core/io/ResourceTests.java
@@ -252,6 +252,27 @@ void readableChannelProvidesContent() throws Exception { } } + @Test + void urlAndUriAreNormalizedWhenCreatedFromFile() throws Exception { + Path path = Path.of("src/test/resources/scanned-resources/resource#test1.txt").toAbsolutePath(); + assertUrlAndUriBehavior(new FileSystemResour...
false
Other
spring-projects
spring-framework
efaee61f3117aa1fce1db7ab0d15fd39216d24b4.json
Harmonize accessors of RuntimeHints API Closes gh-29269
spring-context/src/test/java/org/springframework/context/annotation/ConfigurationClassPostProcessorAotContributionTests.java
@@ -145,7 +145,7 @@ void applyToWhenHasImportAwareConfigurationRegistersBeanPostProcessorBeforeRegul void applyToWhenHasImportAwareConfigurationRegistersHints() { BeanFactoryInitializationAotContribution contribution = getContribution(ImportConfiguration.class); contribution.applyTo(generationContext, beanFa...
true
Other
spring-projects
spring-framework
efaee61f3117aa1fce1db7ab0d15fd39216d24b4.json
Harmonize accessors of RuntimeHints API Closes gh-29269
spring-context/src/test/java/org/springframework/context/aot/ApplicationContextAotGeneratorTests.java
@@ -121,8 +121,8 @@ void processAheadOfTimeWhenHasLazyAutowiringOnField() { ResourceLoader resourceLoader = bean.getResourceLoader(); assertThat(resourceLoader).isNotInstanceOf(Proxy.class); RuntimeHints runtimeHints = generationContext.getRuntimeHints(); - assertThat(runtimeHints.proxies().jdkProxies())....
true
Other
spring-projects
spring-framework
efaee61f3117aa1fce1db7ab0d15fd39216d24b4.json
Harmonize accessors of RuntimeHints API Closes gh-29269
spring-context/src/test/java/org/springframework/context/aot/RuntimeHintsBeanFactoryInitializationAotProcessorTests.java
@@ -100,7 +100,7 @@ void shouldProcessDuplicatedRegistrarsOnlyOnce() { this.generator.processAheadOfTime(applicationContext, this.generationContext); RuntimeHints runtimeHints = this.generationContext.getRuntimeHints(); - assertThat(runtimeHints.resources().resourceBundles().map(ResourceBundleHint::getBaseN...
true
Other
spring-projects
spring-framework
efaee61f3117aa1fce1db7ab0d15fd39216d24b4.json
Harmonize accessors of RuntimeHints API Closes gh-29269
spring-core-test/src/main/java/org/springframework/aot/agent/HintType.java
@@ -40,12 +40,12 @@ public enum HintType { REFLECTION(ReflectionHints.class), /** - * Resource pattern hint, as described by {@link org.springframework.aot.hint.ResourceHints#resourcePatterns()}. + * Resource pattern hint, as described by {@link org.springframework.aot.hint.ResourceHints#resourcePatternHints()}...
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/ProxyHints.java
@@ -36,7 +36,7 @@ public class ProxyHints { * Return the interface-based proxies that are required. * @return a stream of {@link JdkProxyHint} */ - public Stream<JdkProxyHint> jdkProxies() { + public Stream<JdkProxyHint> jdkProxyHints() { return this.jdkProxies.stream(); }
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/ResourceHints.java
@@ -54,7 +54,7 @@ public ResourceHints() { * Return the resources that should be made available at runtime. * @return a stream of {@link ResourcePatternHints} */ - public Stream<ResourcePatternHints> resourcePatterns() { + public Stream<ResourcePatternHints> resourcePatternHints() { Stream<ResourcePatternHi...
true