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 | 332961f833fea5fde7554c60707d4cbea27e56fd.json | Contribute introspection hints on registered beans
As a follow up of #29205, we now need to contribute an "introspection on
declared method" reflection hint for all registered beans.
Closes gh-29246 | spring-beans/src/test/java/org/springframework/beans/factory/aot/BeanRegistrationsAotProcessorTests.java | @@ -50,7 +50,7 @@ void processAheadOfTimeReturnsBeanRegistrationsAotContributionWithRegistrations(
BeanRegistrationsAotContribution contribution = processor
.processAheadOfTime(beanFactory);
assertThat(contribution).extracting("registrations")
- .asInstanceOf(InstanceOfAssertFactories.MAP).containsKeys("b... | true |
Other | spring-projects | spring-framework | 94da3609af8505ec98c7cb482eb7ad44327d9e4e.json | Ignore Blockhound tests on Java 19 | spring-core/src/test/java/org/springframework/core/SpringCoreBlockHoundIntegrationTests.java | @@ -49,7 +49,7 @@
* @author Sam Brannen
* @since 5.2.4
*/
-@DisabledOnJre(JRE.JAVA_18) // BlockHound is not compatible with JDK 18 yet
+@DisabledOnJre(value= {JRE.JAVA_18, JRE.JAVA_19}, disabledReason = "BlockHound is not compatible with Java 18+")
class SpringCoreBlockHoundIntegrationTests {
| false |
Other | spring-projects | spring-framework | ee1afb864c8d637d3ce2b3d89170a9daad49e8b1.json | Add Java 19 to CI image | ci/images/ci-image/Dockerfile | @@ -7,5 +7,6 @@ RUN ./setup.sh
ENV JAVA_HOME /opt/openjdk/java17
ENV JDK17 /opt/openjdk/java17
ENV JDK18 /opt/openjdk/java18
+ENV JDK19 /opt/openjdk/java19
ENV PATH $JAVA_HOME/bin:$PATH | true |
Other | spring-projects | spring-framework | ee1afb864c8d637d3ce2b3d89170a9daad49e8b1.json | Add Java 19 to CI image | ci/images/get-jdk-url.sh | @@ -8,6 +8,9 @@ case "$1" in
java18)
echo "https://github.com/bell-sw/Liberica/releases/download/18.0.2.1+1/bellsoft-jdk18.0.2.1+1-linux-amd64.tar.gz"
;;
+ java19)
+ echo "https://github.com/bell-sw/Liberica/releases/download/19+37/bellsoft-jdk19+37-linux-amd64.tar.gz"
+ ;;
*)
echo $"Unknown java version"... | true |
Other | spring-projects | spring-framework | ee1afb864c8d637d3ce2b3d89170a9daad49e8b1.json | Add Java 19 to CI image | ci/images/setup.sh | @@ -20,7 +20,7 @@ curl https://raw.githubusercontent.com/spring-io/concourse-java-scripts/v0.0.4/c
mkdir -p /opt/openjdk
pushd /opt/openjdk > /dev/null
-for jdk in java17 java18
+for jdk in java17 java18 java19
do
JDK_URL=$( /get-jdk-url.sh $jdk )
mkdir $jdk | true |
Other | spring-projects | spring-framework | afac8dd8af1ed06e48bb79c5eb334a4d797ba1ae.json | Refine SourceFile record to class conversion
Update conversion logic to deal with annotations.
See gh-29236 | spring-core-test/src/main/java/org/springframework/core/test/tools/SourceFile.java | @@ -22,6 +22,8 @@
import java.io.InputStreamReader;
import java.io.StringReader;
import java.nio.charset.StandardCharsets;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
import com.thoughtworks.qdox.JavaProjectBuilder;
import com.thoughtworks.qdox.model.JavaClass;
@@ -189,7 +191,30 @@ private ... | true |
Other | spring-projects | spring-framework | afac8dd8af1ed06e48bb79c5eb334a4d797ba1ae.json | Refine SourceFile record to class conversion
Update conversion logic to deal with annotations.
See gh-29236 | spring-core-test/src/test/java/org/springframework/core/test/tools/SourceFileTests.java | @@ -146,6 +146,19 @@ String getFoo() {
assertThat(sourceFile.getClassName()).isEqualTo("com.example.helloworld.HelloWorld");
}
+ @Test
+ void getClassNameFromAnnotatedRecord() {
+ SourceFile sourceFile = SourceFile.of("""
+ package com.example;
+
+ public record RecordProperties(
+ @org.springframework.... | true |
Other | spring-projects | spring-framework | 8c24e8c034e2a7b26021b319b9d4486a23bfb265.json | Add HttpOutcome for HTTP observations
Prior to this commit, the HTTP Observations would use
`HttpStatus.Series` as a value source for the "outcome" key value in
recorded observations. This would work for most cases, but would not
align in the 2xx HTTP status cases: the series would provide a
"SUCESSFUL" value whereas ... | spring-web/src/main/java/org/springframework/http/client/observation/DefaultClientHttpObservationConvention.java | @@ -21,8 +21,8 @@
import io.micrometer.common.KeyValue;
import io.micrometer.common.KeyValues;
-import org.springframework.http.HttpStatus;
import org.springframework.http.client.ClientHttpResponse;
+import org.springframework.http.observation.HttpOutcome;
import org.springframework.lang.Nullable;
import org.spr... | true |
Other | spring-projects | spring-framework | 8c24e8c034e2a7b26021b319b9d4486a23bfb265.json | Add HttpOutcome for HTTP observations
Prior to this commit, the HTTP Observations would use
`HttpStatus.Series` as a value source for the "outcome" key value in
recorded observations. This would work for most cases, but would not
align in the 2xx HTTP status cases: the series would provide a
"SUCESSFUL" value whereas ... | spring-web/src/main/java/org/springframework/http/observation/HttpOutcome.java | @@ -0,0 +1,101 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 8c24e8c034e2a7b26021b319b9d4486a23bfb265.json | Add HttpOutcome for HTTP observations
Prior to this commit, the HTTP Observations would use
`HttpStatus.Series` as a value source for the "outcome" key value in
recorded observations. This would work for most cases, but would not
align in the 2xx HTTP status cases: the series would provide a
"SUCESSFUL" value whereas ... | spring-web/src/main/java/org/springframework/http/observation/package-info.java | @@ -0,0 +1,9 @@
+/**
+ * Base support for HTTP {@link io.micrometer.observation.Observation}.
+ */
+@NonNullApi
+@NonNullFields
+package org.springframework.http.observation;
+
+import org.springframework.lang.NonNullApi;
+import org.springframework.lang.NonNullFields; | true |
Other | spring-projects | spring-framework | 8c24e8c034e2a7b26021b319b9d4486a23bfb265.json | Add HttpOutcome for HTTP observations
Prior to this commit, the HTTP Observations would use
`HttpStatus.Series` as a value source for the "outcome" key value in
recorded observations. This would work for most cases, but would not
align in the 2xx HTTP status cases: the series would provide a
"SUCESSFUL" value whereas ... | spring-web/src/main/java/org/springframework/web/observation/DefaultHttpRequestsObservationConvention.java | @@ -20,6 +20,8 @@
import io.micrometer.common.KeyValues;
import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
+import org.springframework.http.observation.HttpOutcome;
/**
* Default {@link HttpRequestsObservationConvention}.
@@ -44,8 +46,6 @@ public class DefaultHttpRequ... | true |
Other | spring-projects | spring-framework | 8c24e8c034e2a7b26021b319b9d4486a23bfb265.json | Add HttpOutcome for HTTP observations
Prior to this commit, the HTTP Observations would use
`HttpStatus.Series` as a value source for the "outcome" key value in
recorded observations. This would work for most cases, but would not
align in the 2xx HTTP status cases: the series would provide a
"SUCESSFUL" value whereas ... | spring-web/src/main/java/org/springframework/web/observation/reactive/DefaultHttpRequestsObservationConvention.java | @@ -20,6 +20,7 @@
import io.micrometer.common.KeyValues;
import org.springframework.http.HttpStatus;
+import org.springframework.http.observation.HttpOutcome;
import org.springframework.web.util.pattern.PathPattern;
/**
@@ -46,8 +47,6 @@ public class DefaultHttpRequestsObservationConvention implements HttpReque... | true |
Other | spring-projects | spring-framework | 8c24e8c034e2a7b26021b319b9d4486a23bfb265.json | Add HttpOutcome for HTTP observations
Prior to this commit, the HTTP Observations would use
`HttpStatus.Series` as a value source for the "outcome" key value in
recorded observations. This would work for most cases, but would not
align in the 2xx HTTP status cases: the series would provide a
"SUCESSFUL" value whereas ... | spring-web/src/test/java/org/springframework/http/client/observation/DefaultClientHttpObservationConventionTests.java | @@ -88,7 +88,7 @@ void addsKeyValuesForRequestWithUriTemplate() {
context.setUriTemplate("/resource/{id}");
assertThat(this.observationConvention.getLowCardinalityKeyValues(context))
.contains(KeyValue.of("exception", "none"), KeyValue.of("method", "GET"), KeyValue.of("uri", "/resource/{id}"),
- KeyValu... | true |
Other | spring-projects | spring-framework | 8c24e8c034e2a7b26021b319b9d4486a23bfb265.json | Add HttpOutcome for HTTP observations
Prior to this commit, the HTTP Observations would use
`HttpStatus.Series` as a value source for the "outcome" key value in
recorded observations. This would work for most cases, but would not
align in the 2xx HTTP status cases: the series would provide a
"SUCESSFUL" value whereas ... | spring-web/src/test/java/org/springframework/http/observation/HttpOutcomeTests.java | @@ -0,0 +1,83 @@
+/*
+ * 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 | 8c24e8c034e2a7b26021b319b9d4486a23bfb265.json | Add HttpOutcome for HTTP observations
Prior to this commit, the HTTP Observations would use
`HttpStatus.Series` as a value source for the "outcome" key value in
recorded observations. This would work for most cases, but would not
align in the 2xx HTTP status cases: the series would provide a
"SUCESSFUL" value whereas ... | spring-web/src/test/java/org/springframework/web/client/RestTemplateObservationTests.java | @@ -109,7 +109,7 @@ void executeAddsSucessAsOutcome() throws Exception {
template.execute("https://example.org", GET, null, null);
- assertThatHttpObservation().hasLowCardinalityKeyValue("outcome", "SUCCESSFUL");
+ assertThatHttpObservation().hasLowCardinalityKeyValue("outcome", "SUCCESS");
}
@Test | true |
Other | spring-projects | spring-framework | 8c24e8c034e2a7b26021b319b9d4486a23bfb265.json | Add HttpOutcome for HTTP observations
Prior to this commit, the HTTP Observations would use
`HttpStatus.Series` as a value source for the "outcome" key value in
recorded observations. This would work for most cases, but would not
align in the 2xx HTTP status cases: the series would provide a
"SUCESSFUL" value whereas ... | spring-web/src/test/java/org/springframework/web/observation/DefaultHttpRequestsObservationConventionTests.java | @@ -64,7 +64,7 @@ void addsKeyValuesForExchange() {
assertThat(this.convention.getLowCardinalityKeyValues(this.context)).hasSize(5)
.contains(KeyValue.of("method", "POST"), KeyValue.of("uri", "UNKNOWN"), KeyValue.of("status", "200"),
- KeyValue.of("exception", "none"), KeyValue.of("outcome", "SUCCESSFUL"... | true |
Other | spring-projects | spring-framework | 8c24e8c034e2a7b26021b319b9d4486a23bfb265.json | Add HttpOutcome for HTTP observations
Prior to this commit, the HTTP Observations would use
`HttpStatus.Series` as a value source for the "outcome" key value in
recorded observations. This would work for most cases, but would not
align in the 2xx HTTP status cases: the series would provide a
"SUCESSFUL" value whereas ... | spring-web/src/test/java/org/springframework/web/observation/HttpRequestsObservationFilterTests.java | @@ -57,7 +57,7 @@ void filterShouldFillObservationContext() throws Exception {
assertThat(context.getCarrier()).isEqualTo(this.request);
assertThat(context.getResponse()).isEqualTo(this.response);
assertThat(context.getPathPattern()).isNull();
- assertThatHttpObservation().hasLowCardinalityKeyValue("outcome",... | true |
Other | spring-projects | spring-framework | 8c24e8c034e2a7b26021b319b9d4486a23bfb265.json | Add HttpOutcome for HTTP observations
Prior to this commit, the HTTP Observations would use
`HttpStatus.Series` as a value source for the "outcome" key value in
recorded observations. This would work for most cases, but would not
align in the 2xx HTTP status cases: the series would provide a
"SUCESSFUL" value whereas ... | spring-web/src/test/java/org/springframework/web/observation/reactive/DefaultHttpRequestsObservationConventionTests.java | @@ -65,7 +65,7 @@ void addsKeyValuesForExchange() {
assertThat(this.convention.getLowCardinalityKeyValues(context)).hasSize(5)
.contains(KeyValue.of("method", "POST"), KeyValue.of("uri", "UNKNOWN"), KeyValue.of("status", "201"),
- KeyValue.of("exception", "none"), KeyValue.of("outcome", "SUCCESSFUL"));
+... | true |
Other | spring-projects | spring-framework | 8c24e8c034e2a7b26021b319b9d4486a23bfb265.json | Add HttpOutcome for HTTP observations
Prior to this commit, the HTTP Observations would use
`HttpStatus.Series` as a value source for the "outcome" key value in
recorded observations. This would work for most cases, but would not
align in the 2xx HTTP status cases: the series would provide a
"SUCESSFUL" value whereas ... | spring-web/src/test/java/org/springframework/web/observation/reactive/HttpRequestsObservationWebFilterTests.java | @@ -55,7 +55,7 @@ void filterShouldFillObservationContext() {
assertThat(observationContext.get().getResponse()).isEqualTo(exchange.getResponse());
});
this.filter.filter(exchange, filterChain).block();
- assertThatHttpObservation().hasLowCardinalityKeyValue("outcome", "SUCCESSFUL");
+ assertThatHttpObserva... | true |
Other | spring-projects | spring-framework | 8c24e8c034e2a7b26021b319b9d4486a23bfb265.json | Add HttpOutcome for HTTP observations
Prior to this commit, the HTTP Observations would use
`HttpStatus.Series` as a value source for the "outcome" key value in
recorded observations. This would work for most cases, but would not
align in the 2xx HTTP status cases: the series would provide a
"SUCESSFUL" value whereas ... | spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultClientObservationConvention.java | @@ -22,7 +22,7 @@
import io.micrometer.common.KeyValues;
import io.micrometer.observation.ObservationConvention;
-import org.springframework.http.HttpStatus;
+import org.springframework.http.observation.HttpOutcome;
import org.springframework.util.StringUtils;
/**
@@ -42,7 +42,6 @@ public class DefaultClientObs... | true |
Other | spring-projects | spring-framework | 8c24e8c034e2a7b26021b319b9d4486a23bfb265.json | Add HttpOutcome for HTTP observations
Prior to this commit, the HTTP Observations would use
`HttpStatus.Series` as a value source for the "outcome" key value in
recorded observations. This would work for most cases, but would not
align in the 2xx HTTP status cases: the series would provide a
"SUCESSFUL" value whereas ... | spring-webflux/src/test/java/org/springframework/web/reactive/function/client/DefaultClientObservationConventionTests.java | @@ -83,7 +83,7 @@ void shouldAddKeyValuesForRequestWithUriTemplate() {
context.setUriTemplate("/resource/{id}");
assertThat(this.observationConvention.getLowCardinalityKeyValues(context))
.contains(KeyValue.of("exception", "none"), KeyValue.of("method", "GET"), KeyValue.of("uri", "/resource/{id}"),
- Ke... | true |
Other | spring-projects | spring-framework | 8c24e8c034e2a7b26021b319b9d4486a23bfb265.json | Add HttpOutcome for HTTP observations
Prior to this commit, the HTTP Observations would use
`HttpStatus.Series` as a value source for the "outcome" key value in
recorded observations. This would work for most cases, but would not
align in the 2xx HTTP status cases: the series would provide a
"SUCESSFUL" value whereas ... | spring-webflux/src/test/java/org/springframework/web/reactive/function/client/DefaultClientObservationTests.java | @@ -66,7 +66,7 @@ void recordsObservationForSuccessfulExchange() {
.retrieve().bodyToMono(Void.class).block(Duration.ofSeconds(10));
verifyAndGetRequest();
- assertThatHttpObservation().hasLowCardinalityKeyValue("outcome", "SUCCESSFUL")
+ assertThatHttpObservation().hasLowCardinalityKeyValue("outcome", "SUC... | true |
Other | spring-projects | spring-framework | b9070ae75222091ccb49267e27341689ec1687c6.json | Add contextualName to HTTP Observations
This commit ensures that all HTTP `ObservationConvention`
implementations provide a consistent contextual name for observations.
This name should be like "http get" where only the HTTP verb changes
depending on the request.
Fixes gh-29231 | spring-web/src/main/java/org/springframework/http/client/observation/DefaultClientHttpObservationConvention.java | @@ -69,6 +69,11 @@ public String getName() {
return this.name;
}
+ @Override
+ public String getContextualName(ClientHttpObservationContext context) {
+ return "http " + context.getCarrier().getMethod().name().toLowerCase();
+ }
+
@Override
public KeyValues getLowCardinalityKeyValues(ClientHttpObservationCo... | true |
Other | spring-projects | spring-framework | b9070ae75222091ccb49267e27341689ec1687c6.json | Add contextualName to HTTP Observations
This commit ensures that all HTTP `ObservationConvention`
implementations provide a consistent contextual name for observations.
This name should be like "http get" where only the HTTP verb changes
depending on the request.
Fixes gh-29231 | spring-web/src/main/java/org/springframework/web/observation/DefaultHttpRequestsObservationConvention.java | @@ -70,6 +70,11 @@ public String getName() {
return this.name;
}
+ @Override
+ public String getContextualName(HttpRequestsObservationContext context) {
+ return "http " + context.getCarrier().getMethod().toLowerCase();
+ }
+
@Override
public KeyValues getLowCardinalityKeyValues(HttpRequestsObservationConte... | true |
Other | spring-projects | spring-framework | b9070ae75222091ccb49267e27341689ec1687c6.json | Add contextualName to HTTP Observations
This commit ensures that all HTTP `ObservationConvention`
implementations provide a consistent contextual name for observations.
This name should be like "http get" where only the HTTP verb changes
depending on the request.
Fixes gh-29231 | spring-web/src/main/java/org/springframework/web/observation/reactive/DefaultHttpRequestsObservationConvention.java | @@ -73,6 +73,11 @@ public String getName() {
return this.name;
}
+ @Override
+ public String getContextualName(HttpRequestsObservationContext context) {
+ return "http " + context.getCarrier().getMethod().name().toLowerCase();
+ }
+
@Override
public KeyValues getLowCardinalityKeyValues(HttpRequestsObservati... | true |
Other | spring-projects | spring-framework | b9070ae75222091ccb49267e27341689ec1687c6.json | Add contextualName to HTTP Observations
This commit ensures that all HTTP `ObservationConvention`
implementations provide a consistent contextual name for observations.
This name should be like "http get" where only the HTTP verb changes
depending on the request.
Fixes gh-29231 | spring-web/src/test/java/org/springframework/http/client/observation/DefaultClientHttpObservationConventionTests.java | @@ -42,6 +42,18 @@ class DefaultClientHttpObservationConventionTests {
private final DefaultClientHttpObservationConvention observationConvention = new DefaultClientHttpObservationConvention();
+ @Test
+ void shouldHaveName() {
+ assertThat(this.observationConvention.getName()).isEqualTo("http.client.requests");... | true |
Other | spring-projects | spring-framework | b9070ae75222091ccb49267e27341689ec1687c6.json | Add contextualName to HTTP Observations
This commit ensures that all HTTP `ObservationConvention`
implementations provide a consistent contextual name for observations.
This name should be like "http get" where only the HTTP verb changes
depending on the request.
Fixes gh-29231 | spring-web/src/test/java/org/springframework/web/observation/DefaultHttpRequestsObservationConventionTests.java | @@ -33,7 +33,7 @@ class DefaultHttpRequestsObservationConventionTests {
private final DefaultHttpRequestsObservationConvention convention = new DefaultHttpRequestsObservationConvention();
- private final MockHttpServletRequest request = new MockHttpServletRequest();
+ private final MockHttpServletRequest request ... | true |
Other | spring-projects | spring-framework | b9070ae75222091ccb49267e27341689ec1687c6.json | Add contextualName to HTTP Observations
This commit ensures that all HTTP `ObservationConvention`
implementations provide a consistent contextual name for observations.
This name should be like "http get" where only the HTTP verb changes
depending on the request.
Fixes gh-29231 | spring-web/src/test/java/org/springframework/web/observation/reactive/DefaultHttpRequestsObservationConventionTests.java | @@ -42,6 +42,13 @@ void shouldHaveDefaultName() {
assertThat(convention.getName()).isEqualTo("http.server.requests");
}
+ @Test
+ void shouldHaveContextualName() {
+ ServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpRequest.get("/test/resource"));
+ HttpRequestsObservationContext context = ... | true |
Other | spring-projects | spring-framework | b9070ae75222091ccb49267e27341689ec1687c6.json | Add contextualName to HTTP Observations
This commit ensures that all HTTP `ObservationConvention`
implementations provide a consistent contextual name for observations.
This name should be like "http get" where only the HTTP verb changes
depending on the request.
Fixes gh-29231 | spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultClientObservationConvention.java | @@ -67,6 +67,11 @@ public String getName() {
return this.name;
}
+ @Override
+ public String getContextualName(ClientObservationContext context) {
+ return "http " + context.getCarrier().method().name().toLowerCase();
+ }
+
@Override
public KeyValues getLowCardinalityKeyValues(ClientObservationContext conte... | true |
Other | spring-projects | spring-framework | b9070ae75222091ccb49267e27341689ec1687c6.json | Add contextualName to HTTP Observations
This commit ensures that all HTTP `ObservationConvention`
implementations provide a consistent contextual name for observations.
This name should be like "http get" where only the HTTP verb changes
depending on the request.
Fixes gh-29231 | spring-webflux/src/test/java/org/springframework/web/reactive/function/client/DefaultClientObservationConventionTests.java | @@ -36,6 +36,18 @@ class DefaultClientObservationConventionTests {
private DefaultClientObservationConvention observationConvention = new DefaultClientObservationConvention();
+ @Test
+ void shouldHaveName() {
+ assertThat(this.observationConvention.getName()).isEqualTo("http.client.requests");
+ }
+
+ @Test
+ v... | true |
Other | spring-projects | spring-framework | 377d719b5f8b417a831747e3ecf9c7a0def0dad3.json | Add opens for Gradle test workers
After our upgrade to Gradle 7.5.1, our test suite requires changes to
our test configuration. See:
https://docs.gradle.org/7.5/userguide/upgrading_version_7.html#removes_implicit_add_opens_for_test_workers | build.gradle | @@ -84,6 +84,8 @@ configure([rootProject] + javaProjects) { project ->
systemProperty("java.awt.headless", "true")
systemProperty("testGroups", project.properties.get("testGroups"))
systemProperty("io.netty.leakDetection.level", "paranoid")
+ jvmArgs(["--add-opens=java.base/java.lang=ALL-UNNAMED",
+ "--ad... | false |
Other | spring-projects | spring-framework | bc13d2b5589b7b4573485ccfe8f59519e7ff6f49.json | Remove unnecessary suppressing of deprecation
Closes gh-28870 | spring-webmvc/src/main/java/org/springframework/web/servlet/i18n/CookieLocaleResolver.java | @@ -59,7 +59,6 @@
* @see #setDefaultLocale
* @see #setDefaultTimeZone
*/
-@SuppressWarnings("deprecation")
public class CookieLocaleResolver extends AbstractLocaleContextResolver {
/** | false |
Other | spring-projects | spring-framework | f2568f2dda9ee8ffb7de4eea54aed90ca5982052.json | Remove unused import
See gh-29157 | spring-context/src/test/java/org/springframework/context/aot/AotApplicationContextInitializerTests.java | @@ -16,8 +16,6 @@
package org.springframework.context.aot;
-import java.util.List;
-
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.support.RootBeanDefinition; | false |
Other | spring-projects | spring-framework | 86ad29a7d6bc3e57fe19276ae9f18222cfb4dbd7.json | Drop getAotInitializers method
See gh-29157 | spring-context/src/main/java/org/springframework/context/aot/AotApplicationContextInitializer.java | @@ -16,10 +16,6 @@
package org.springframework.context.aot;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.List;
-
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -90,24 +86,4 @@ static <C extends ConfigurableApplicationContext> ApplicationC... | true |
Other | spring-projects | spring-framework | 86ad29a7d6bc3e57fe19276ae9f18222cfb4dbd7.json | Drop getAotInitializers method
See gh-29157 | spring-context/src/test/java/org/springframework/context/aot/AotApplicationContextInitializerTests.java | @@ -74,18 +74,6 @@ void initializeWhenInitializerHasNoDefaultConstructorThrowsException() {
.withMessageContaining(ConfigurableApplicationContextInitializer.class.getName());
}
- @Test
- void getAotInitializersReturnsOnlyAotInitializers() {
- ApplicationContextInitializer<GenericApplicationContext> l1 = conte... | true |
Other | spring-projects | spring-framework | 508be4e0facf32233287fdfa624f65654c6505e4.json | Update Javadoc to reflect changes
See gh-29163 | spring-core/src/main/java/org/springframework/core/io/support/PathMatchingResourcePatternResolver.java | @@ -100,14 +100,13 @@
* classpath:com/mycompany/**/applicationContext.xml</pre>
* the resolver follows a more complex but defined procedure to try to resolve
* the wildcard. It produces a {@code Resource} for the path up to the last
- * non-wildcard segment and obtains a {@code URL} from it. If this URL is
- ... | false |
Other | spring-projects | spring-framework | fb312d0ed5d55752df5755be29833023e5a21258.json | Improve Javadoc for DatabasePopulator
See gh-27008 | spring-jdbc/src/main/java/org/springframework/jdbc/datasource/init/DatabasePopulator.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 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,15 +35,17 @@ public interface DatabasePo... | false |
Other | spring-projects | spring-framework | bd6d697395efceab68521e598964dca78995a60d.json | Upgrade Java versions in CI image | ci/images/get-jdk-url.sh | @@ -3,10 +3,10 @@ set -e
case "$1" in
java8)
- echo "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u302-b08/OpenJDK8U-jdk_x64_linux_hotspot_8u302b08.tar.gz"
+ echo "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u322-b06/OpenJDK8U-jdk_x64_linux_hotspot_8u322b06.tar.gz... | false |
Other | spring-projects | spring-framework | bf1cf549b1f6d410d830945157ef2f4294f77783.json | Delete unused XML config in AOP namespace tests
See gh-22246 | spring-aop/src/test/java/org/springframework/aop/config/AopNamespaceHandlerEventTests.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.
@@ -153,7 +153,7 @@ public void testAdvisorEven... | true |
Other | spring-projects | spring-framework | bf1cf549b1f6d410d830945157ef2f4294f77783.json | Delete unused XML config in AOP namespace tests
See gh-22246 | spring-aop/src/test/resources/org/springframework/aop/config/AopNamespaceHandlerEventTests-context.xml | @@ -16,12 +16,6 @@
</aop:aspect>
</aop:config>
- <bean id="getNameCounter" class="org.springframework.aop.testfixture.advice.CountingBeforeAdvice"/>
-
- <bean id="getAgeCounter" class="org.springframework.aop.testfixture.advice.CountingBeforeAdvice"/>
-
- <bean id="testBean" class="org.springframework.beans.test... | true |
Other | spring-projects | spring-framework | bf1cf549b1f6d410d830945157ef2f4294f77783.json | Delete unused XML config in AOP namespace tests
See gh-22246 | spring-aop/src/test/resources/org/springframework/aop/config/AopNamespaceHandlerPointcutErrorTests-pointcutDuplication.xml | @@ -12,10 +12,6 @@
</aop:aspect>
</aop:config>
- <bean id="getAgeCounter" class="org.springframework.aop.testfixture.advice.CountingBeforeAdvice"/>
-
- <bean id="testBean" class="org.springframework.beans.testfixture.beans.TestBean"/>
-
<bean id="countingAdvice" class="org.springframework.aop.config.CountingAs... | true |
Other | spring-projects | spring-framework | bf1cf549b1f6d410d830945157ef2f4294f77783.json | Delete unused XML config in AOP namespace tests
See gh-22246 | spring-aop/src/test/resources/org/springframework/aop/config/AopNamespaceHandlerPointcutErrorTests-pointcutMissing.xml | @@ -12,10 +12,6 @@
</aop:aspect>
</aop:config>
- <bean id="getAgeCounter" class="org.springframework.aop.testfixture.advice.CountingBeforeAdvice"/>
-
- <bean id="testBean" class="org.springframework.beans.testfixture.beans.TestBean"/>
-
<bean id="countingAdvice" class="org.springframework.aop.config.CountingAs... | true |
Other | spring-projects | spring-framework | 48ce714d159f0c648f836a5abdf18c12cb4c6f40.json | Provide an API to record various runtime hints
This commit provides an API to record the need for reflection,
resources, serialization, and proxies so that the runtime can be
optimized accordingly.
`RuntimeHints` provides an entry point to register the following:
* Reflection hints: individual elements of a type can... | spring-core/src/main/java/org/springframework/core/hint/AbstractTypeReference.java | @@ -0,0 +1,52 @@
+/*
+ * 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 | 48ce714d159f0c648f836a5abdf18c12cb4c6f40.json | Provide an API to record various runtime hints
This commit provides an API to record the need for reflection,
resources, serialization, and proxies so that the runtime can be
optimized accordingly.
`RuntimeHints` provides an entry point to register the following:
* Reflection hints: individual elements of a type can... | spring-core/src/main/java/org/springframework/core/hint/ClassProxyHint.java | @@ -0,0 +1,141 @@
+/*
+ * 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 | 48ce714d159f0c648f836a5abdf18c12cb4c6f40.json | Provide an API to record various runtime hints
This commit provides an API to record the need for reflection,
resources, serialization, and proxies so that the runtime can be
optimized accordingly.
`RuntimeHints` provides an entry point to register the following:
* Reflection hints: individual elements of a type can... | spring-core/src/main/java/org/springframework/core/hint/ExecutableHint.java | @@ -0,0 +1,136 @@
+/*
+ * 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 | 48ce714d159f0c648f836a5abdf18c12cb4c6f40.json | Provide an API to record various runtime hints
This commit provides an API to record the need for reflection,
resources, serialization, and proxies so that the runtime can be
optimized accordingly.
`RuntimeHints` provides an entry point to register the following:
* Reflection hints: individual elements of a type can... | spring-core/src/main/java/org/springframework/core/hint/ExecutableMode.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 | 48ce714d159f0c648f836a5abdf18c12cb4c6f40.json | Provide an API to record various runtime hints
This commit provides an API to record the need for reflection,
resources, serialization, and proxies so that the runtime can be
optimized accordingly.
`RuntimeHints` provides an entry point to register the following:
* Reflection hints: individual elements of a type can... | spring-core/src/main/java/org/springframework/core/hint/FieldHint.java | @@ -0,0 +1,102 @@
+/*
+ * 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 | 48ce714d159f0c648f836a5abdf18c12cb4c6f40.json | Provide an API to record various runtime hints
This commit provides an API to record the need for reflection,
resources, serialization, and proxies so that the runtime can be
optimized accordingly.
`RuntimeHints` provides an entry point to register the following:
* Reflection hints: individual elements of a type can... | spring-core/src/main/java/org/springframework/core/hint/JavaSerializationHints.java | @@ -0,0 +1,70 @@
+/*
+ * 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 | 48ce714d159f0c648f836a5abdf18c12cb4c6f40.json | Provide an API to record various runtime hints
This commit provides an API to record the need for reflection,
resources, serialization, and proxies so that the runtime can be
optimized accordingly.
`RuntimeHints` provides an entry point to register the following:
* Reflection hints: individual elements of a type can... | spring-core/src/main/java/org/springframework/core/hint/JdkProxyHint.java | @@ -0,0 +1,107 @@
+/*
+ * 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 | 48ce714d159f0c648f836a5abdf18c12cb4c6f40.json | Provide an API to record various runtime hints
This commit provides an API to record the need for reflection,
resources, serialization, and proxies so that the runtime can be
optimized accordingly.
`RuntimeHints` provides an entry point to register the following:
* Reflection hints: individual elements of a type can... | spring-core/src/main/java/org/springframework/core/hint/MemberCategory.java | @@ -0,0 +1,127 @@
+/*
+ * 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 | 48ce714d159f0c648f836a5abdf18c12cb4c6f40.json | Provide an API to record various runtime hints
This commit provides an API to record the need for reflection,
resources, serialization, and proxies so that the runtime can be
optimized accordingly.
`RuntimeHints` provides an entry point to register the following:
* Reflection hints: individual elements of a type can... | spring-core/src/main/java/org/springframework/core/hint/MemberHint.java | @@ -0,0 +1,44 @@
+/*
+ * 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 | 48ce714d159f0c648f836a5abdf18c12cb4c6f40.json | Provide an API to record various runtime hints
This commit provides an API to record the need for reflection,
resources, serialization, and proxies so that the runtime can be
optimized accordingly.
`RuntimeHints` provides an entry point to register the following:
* Reflection hints: individual elements of a type can... | spring-core/src/main/java/org/springframework/core/hint/ProxyHints.java | @@ -0,0 +1,123 @@
+/*
+ * 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 | 48ce714d159f0c648f836a5abdf18c12cb4c6f40.json | Provide an API to record various runtime hints
This commit provides an API to record the need for reflection,
resources, serialization, and proxies so that the runtime can be
optimized accordingly.
`RuntimeHints` provides an entry point to register the following:
* Reflection hints: individual elements of a type can... | spring-core/src/main/java/org/springframework/core/hint/ReflectionHints.java | @@ -0,0 +1,145 @@
+/*
+ * 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 | 48ce714d159f0c648f836a5abdf18c12cb4c6f40.json | Provide an API to record various runtime hints
This commit provides an API to record the need for reflection,
resources, serialization, and proxies so that the runtime can be
optimized accordingly.
`RuntimeHints` provides an entry point to register the following:
* Reflection hints: individual elements of a type can... | spring-core/src/main/java/org/springframework/core/hint/ReflectionTypeReference.java | @@ -0,0 +1,64 @@
+/*
+ * 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 | 48ce714d159f0c648f836a5abdf18c12cb4c6f40.json | Provide an API to record various runtime hints
This commit provides an API to record the need for reflection,
resources, serialization, and proxies so that the runtime can be
optimized accordingly.
`RuntimeHints` provides an entry point to register the following:
* Reflection hints: individual elements of a type can... | spring-core/src/main/java/org/springframework/core/hint/ResourceBundleHint.java | @@ -0,0 +1,44 @@
+/*
+ * 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 | 48ce714d159f0c648f836a5abdf18c12cb4c6f40.json | Provide an API to record various runtime hints
This commit provides an API to record the need for reflection,
resources, serialization, and proxies so that the runtime can be
optimized accordingly.
`RuntimeHints` provides an entry point to register the following:
* Reflection hints: individual elements of a type can... | spring-core/src/main/java/org/springframework/core/hint/ResourceHints.java | @@ -0,0 +1,148 @@
+/*
+ * 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 | 48ce714d159f0c648f836a5abdf18c12cb4c6f40.json | Provide an API to record various runtime hints
This commit provides an API to record the need for reflection,
resources, serialization, and proxies so that the runtime can be
optimized accordingly.
`RuntimeHints` provides an entry point to register the following:
* Reflection hints: individual elements of a type can... | spring-core/src/main/java/org/springframework/core/hint/ResourcePatternHint.java | @@ -0,0 +1,104 @@
+/*
+ * 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 | 48ce714d159f0c648f836a5abdf18c12cb4c6f40.json | Provide an API to record various runtime hints
This commit provides an API to record the need for reflection,
resources, serialization, and proxies so that the runtime can be
optimized accordingly.
`RuntimeHints` provides an entry point to register the following:
* Reflection hints: individual elements of a type can... | spring-core/src/main/java/org/springframework/core/hint/RuntimeHints.java | @@ -0,0 +1,76 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 48ce714d159f0c648f836a5abdf18c12cb4c6f40.json | Provide an API to record various runtime hints
This commit provides an API to record the need for reflection,
resources, serialization, and proxies so that the runtime can be
optimized accordingly.
`RuntimeHints` provides an entry point to register the following:
* Reflection hints: individual elements of a type can... | spring-core/src/main/java/org/springframework/core/hint/SimpleTypeReference.java | @@ -0,0 +1,97 @@
+/*
+ * 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 | 48ce714d159f0c648f836a5abdf18c12cb4c6f40.json | Provide an API to record various runtime hints
This commit provides an API to record the need for reflection,
resources, serialization, and proxies so that the runtime can be
optimized accordingly.
`RuntimeHints` provides an entry point to register the following:
* Reflection hints: individual elements of a type can... | spring-core/src/main/java/org/springframework/core/hint/TypeHint.java | @@ -0,0 +1,253 @@
+/*
+ * 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 | 48ce714d159f0c648f836a5abdf18c12cb4c6f40.json | Provide an API to record various runtime hints
This commit provides an API to record the need for reflection,
resources, serialization, and proxies so that the runtime can be
optimized accordingly.
`RuntimeHints` provides an entry point to register the following:
* Reflection hints: individual elements of a type can... | spring-core/src/main/java/org/springframework/core/hint/TypeReference.java | @@ -0,0 +1,78 @@
+/*
+ * 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 | 48ce714d159f0c648f836a5abdf18c12cb4c6f40.json | Provide an API to record various runtime hints
This commit provides an API to record the need for reflection,
resources, serialization, and proxies so that the runtime can be
optimized accordingly.
`RuntimeHints` provides an entry point to register the following:
* Reflection hints: individual elements of a type can... | spring-core/src/main/java/org/springframework/core/hint/package-info.java | @@ -0,0 +1,5 @@
+/**
+ * Support for registering the need for reflection, resources, java serialization
+ * and proxies.
+ */
+package org.springframework.core.hint; | true |
Other | spring-projects | spring-framework | 48ce714d159f0c648f836a5abdf18c12cb4c6f40.json | Provide an API to record various runtime hints
This commit provides an API to record the need for reflection,
resources, serialization, and proxies so that the runtime can be
optimized accordingly.
`RuntimeHints` provides an entry point to register the following:
* Reflection hints: individual elements of a type can... | spring-core/src/test/java/org/springframework/core/hint/ClassProxyHintTests.java | @@ -0,0 +1,93 @@
+/*
+ * 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 | 48ce714d159f0c648f836a5abdf18c12cb4c6f40.json | Provide an API to record various runtime hints
This commit provides an API to record the need for reflection,
resources, serialization, and proxies so that the runtime can be
optimized accordingly.
`RuntimeHints` provides an entry point to register the following:
* Reflection hints: individual elements of a type can... | spring-core/src/test/java/org/springframework/core/hint/JavaSerializationHintsTests.java | @@ -0,0 +1,42 @@
+/*
+ * 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 | 48ce714d159f0c648f836a5abdf18c12cb4c6f40.json | Provide an API to record various runtime hints
This commit provides an API to record the need for reflection,
resources, serialization, and proxies so that the runtime can be
optimized accordingly.
`RuntimeHints` provides an entry point to register the following:
* Reflection hints: individual elements of a type can... | spring-core/src/test/java/org/springframework/core/hint/JdkProxyHintTests.java | @@ -0,0 +1,72 @@
+/*
+ * 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 | 48ce714d159f0c648f836a5abdf18c12cb4c6f40.json | Provide an API to record various runtime hints
This commit provides an API to record the need for reflection,
resources, serialization, and proxies so that the runtime can be
optimized accordingly.
`RuntimeHints` provides an entry point to register the following:
* Reflection hints: individual elements of a type can... | spring-core/src/test/java/org/springframework/core/hint/ProxyHintsTests.java | @@ -0,0 +1,116 @@
+/*
+ * 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 | 48ce714d159f0c648f836a5abdf18c12cb4c6f40.json | Provide an API to record various runtime hints
This commit provides an API to record the need for reflection,
resources, serialization, and proxies so that the runtime can be
optimized accordingly.
`RuntimeHints` provides an entry point to register the following:
* Reflection hints: individual elements of a type can... | spring-core/src/test/java/org/springframework/core/hint/ReflectionHintsTests.java | @@ -0,0 +1,130 @@
+/*
+ * Copyright 2002-2021 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 48ce714d159f0c648f836a5abdf18c12cb4c6f40.json | Provide an API to record various runtime hints
This commit provides an API to record the need for reflection,
resources, serialization, and proxies so that the runtime can be
optimized accordingly.
`RuntimeHints` provides an entry point to register the following:
* Reflection hints: individual elements of a type can... | spring-core/src/test/java/org/springframework/core/hint/ResourceHintsTests.java | @@ -0,0 +1,132 @@
+/*
+ * Copyright 2002-2021 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 48ce714d159f0c648f836a5abdf18c12cb4c6f40.json | Provide an API to record various runtime hints
This commit provides an API to record the need for reflection,
resources, serialization, and proxies so that the runtime can be
optimized accordingly.
`RuntimeHints` provides an entry point to register the following:
* Reflection hints: individual elements of a type can... | spring-core/src/test/java/org/springframework/core/hint/RuntimeHintsTests.java | @@ -0,0 +1,69 @@
+/*
+ * Copyright 2002-2021 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 48ce714d159f0c648f836a5abdf18c12cb4c6f40.json | Provide an API to record various runtime hints
This commit provides an API to record the need for reflection,
resources, serialization, and proxies so that the runtime can be
optimized accordingly.
`RuntimeHints` provides an entry point to register the following:
* Reflection hints: individual elements of a type can... | spring-core/src/test/java/org/springframework/core/hint/TypeHintTests.java | @@ -0,0 +1,140 @@
+/*
+ * Copyright 2002-2021 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 48ce714d159f0c648f836a5abdf18c12cb4c6f40.json | Provide an API to record various runtime hints
This commit provides an API to record the need for reflection,
resources, serialization, and proxies so that the runtime can be
optimized accordingly.
`RuntimeHints` provides an entry point to register the following:
* Reflection hints: individual elements of a type can... | spring-core/src/test/java/org/springframework/core/hint/TypeReferenceTests.java | @@ -0,0 +1,88 @@
+/*
+ * 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 | 54c7f53eff4b4abf5e288d2e8d3bfc4ff6eecf17.json | Avoid use of `var` declarations
See gh-27945. | spring-context/src/test/java/org/springframework/context/groovy/GroovyApplicationContextDynamicBeanPropertyTests.java | @@ -33,25 +33,21 @@ class GroovyApplicationContextDynamicBeanPropertyTests {
@Test
void accessDynamicBeanProperties() {
- var ctx = new GenericGroovyApplicationContext();
- ctx.getReader().loadBeanDefinitions("org/springframework/context/groovy/applicationContext.groovy");
- ctx.refresh();
+ GenericGroovyAppl... | true |
Other | spring-projects | spring-framework | 54c7f53eff4b4abf5e288d2e8d3bfc4ff6eecf17.json | Avoid use of `var` declarations
See gh-27945. | spring-context/src/test/java/org/springframework/context/groovy/GroovyBeanDefinitionReaderTests.java | @@ -49,7 +49,7 @@ class GroovyBeanDefinitionReaderTests {
@Test
void importSpringXml() {
- var appCtx = new GenericApplicationContext();
+ GenericApplicationContext appCtx = new GenericApplicationContext();
loadGroovyDsl(appCtx, """
beans {
@@ -62,7 +62,7 @@ void importSpringXml() {
@Test
void im... | true |
Other | spring-projects | spring-framework | 1cf2960eb673cc0360de3a591251994e912ba497.json | Use AssertJ instead of Groovy Assertions
See gh-27945 | spring-context/spring-context.gradle | @@ -27,7 +27,6 @@ dependencies {
testImplementation(testFixtures(project(":spring-core")))
testImplementation("io.projectreactor:reactor-core")
testImplementation("org.codehaus.groovy:groovy-jsr223")
- testImplementation("org.codehaus.groovy:groovy-test")
testImplementation("org.codehaus.groovy:groovy-xml")
t... | true |
Other | spring-projects | spring-framework | 1cf2960eb673cc0360de3a591251994e912ba497.json | Use AssertJ instead of Groovy Assertions
See gh-27945 | spring-context/src/test/java/org/springframework/context/groovy/GroovyApplicationContextDynamicBeanPropertyTests.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,9 +21,8 @@
import org.springframework.b... | true |
Other | spring-projects | spring-framework | 7c2453c3738426327d1f489006775c619c497694.json | Integrate class proxy generation in AOT processing
This commit updates ApplicationContextAotGenerator to register a
handler that process Cglib generated classes. The handler registers
such classes to the GeneratedFiles and provide a hint so that it
can be instantiated using reflection.
Closes gh-28954 | spring-context/src/main/java/org/springframework/context/aot/ApplicationContextAotGenerator.java | @@ -16,9 +16,12 @@
package org.springframework.context.aot;
+import java.util.function.Supplier;
+
import org.springframework.aot.generate.GenerationContext;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
+import org.springframe... | true |
Other | spring-projects | spring-framework | 7c2453c3738426327d1f489006775c619c497694.json | Integrate class proxy generation in AOT processing
This commit updates ApplicationContextAotGenerator to register a
handler that process Cglib generated classes. The handler registers
such classes to the GeneratedFiles and provide a hint so that it
can be instantiated using reflection.
Closes gh-28954 | spring-context/src/main/java/org/springframework/context/aot/GeneratedClassHandler.java | @@ -0,0 +1,60 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 7c2453c3738426327d1f489006775c619c497694.json | Integrate class proxy generation in AOT processing
This commit updates ApplicationContextAotGenerator to register a
handler that process Cglib generated classes. The handler registers
such classes to the GeneratedFiles and provide a hint so that it
can be instantiated using reflection.
Closes gh-28954 | spring-context/src/test/java/org/springframework/context/aot/ApplicationContextAotGeneratorTests.java | @@ -16,10 +16,15 @@
package org.springframework.context.aot;
+import java.io.IOException;
import java.util.function.BiConsumer;
import org.junit.jupiter.api.Test;
+import org.springframework.aot.generate.GeneratedFiles.Kind;
+import org.springframework.aot.hint.MemberCategory;
+import org.springframework.aot... | true |
Other | spring-projects | spring-framework | 7c2453c3738426327d1f489006775c619c497694.json | Integrate class proxy generation in AOT processing
This commit updates ApplicationContextAotGenerator to register a
handler that process Cglib generated classes. The handler registers
such classes to the GeneratedFiles and provide a hint so that it
can be instantiated using reflection.
Closes gh-28954 | spring-context/src/test/java/org/springframework/context/aot/GeneratedClassHandlerTests.java | @@ -0,0 +1,79 @@
+/*
+ * 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 | 7c2453c3738426327d1f489006775c619c497694.json | Integrate class proxy generation in AOT processing
This commit updates ApplicationContextAotGenerator to register a
handler that process Cglib generated classes. The handler registers
such classes to the GeneratedFiles and provide a hint so that it
can be instantiated using reflection.
Closes gh-28954 | spring-context/src/testFixtures/java/org/springframework/context/testfixture/context/generator/annotation/CglibConfiguration.java | @@ -0,0 +1,39 @@
+/*
+ * 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 | 7c2453c3738426327d1f489006775c619c497694.json | Integrate class proxy generation in AOT processing
This commit updates ApplicationContextAotGenerator to register a
handler that process Cglib generated classes. The handler registers
such classes to the GeneratedFiles and provide a hint so that it
can be instantiated using reflection.
Closes gh-28954 | spring-core/src/main/java/org/springframework/cglib/core/ReflectUtils.java | @@ -20,16 +20,12 @@
import java.beans.IntrospectionException;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
-import java.io.ByteArrayInputStream;
-import java.io.OutputStream;
import java.lang.invoke.MethodHandles;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTa... | true |
Other | spring-projects | spring-framework | 7c2453c3738426327d1f489006775c619c497694.json | Integrate class proxy generation in AOT processing
This commit updates ApplicationContextAotGenerator to register a
handler that process Cglib generated classes. The handler registers
such classes to the GeneratedFiles and provide a hint so that it
can be instantiated using reflection.
Closes gh-28954 | spring-core/src/main/java/org/springframework/cglib/core/SpringNamingPolicy.java | @@ -22,8 +22,7 @@
* and using a plain counter suffix instead of a hash code suffix (as of 6.0).
*
* <p>This allows for reliably discovering pre-generated Spring proxy classes
- * in the classpath (as written at runtime when the "cglib.generatedClasses"
- * system property points to a specific directory to store t... | true |
Other | spring-projects | spring-framework | d6f73994c2385c98b9d70853f684866861364d80.json | Fix malformed HTML in CGLIB javadoc
See gh-28955 | spring-core/src/main/java/org/springframework/cglib/core/GeneratorStrategy.java | @@ -16,7 +16,7 @@
package org.springframework.cglib.core;
/**
- * The <code>GeneratorStrategy</code. is responsible for taking a
+ * The <code>GeneratorStrategy</code> is responsible for taking a
* {@link ClassGenerator} and producing a byte array containing the
* data for the generated <code>Class</code>. By ... | true |
Other | spring-projects | spring-framework | d6f73994c2385c98b9d70853f684866861364d80.json | Fix malformed HTML in CGLIB javadoc
See gh-28955 | spring-core/src/main/java/org/springframework/cglib/reflect/MethodDelegate.java | @@ -65,7 +65,7 @@
* }
*
* public int alternateMain( String[] args ) {
- * for (int i = 0; i < args.length; i++) {
+ * for (int i = 0; i < args.length; i++) {
* System.out.println( args[i] );
* }
* return args.length; | true |
Other | spring-projects | spring-framework | 5c68a278b552a1f57f15ea404319862f1f42c0ad.json | Add SchedulerFactoryBean runtime hints
Also require oracle/graalvm-reachability-metadata#19.
Closes gh-28725 | spring-context-support/src/main/java/org/springframework/scheduling/quartz/SchedulerFactoryBeanRuntimeHints.java | @@ -0,0 +1,64 @@
+/*
+ * 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 | 5c68a278b552a1f57f15ea404319862f1f42c0ad.json | Add SchedulerFactoryBean runtime hints
Also require oracle/graalvm-reachability-metadata#19.
Closes gh-28725 | spring-context-support/src/main/resources/META-INF/spring/aot.factories | @@ -1,2 +1,3 @@
org.springframework.aot.hint.RuntimeHintsRegistrar= \
-org.springframework.mail.javamail.JavaMailMimeTypesRuntimeHints
\ No newline at end of file
+org.springframework.mail.javamail.JavaMailMimeTypesRuntimeHints,\
+org.springframework.scheduling.quartz.SchedulerFactoryBeanRuntimeHints
\ No newline at e... | true |
Other | spring-projects | spring-framework | 5c68a278b552a1f57f15ea404319862f1f42c0ad.json | Add SchedulerFactoryBean runtime hints
Also require oracle/graalvm-reachability-metadata#19.
Closes gh-28725 | spring-context-support/src/test/java/org/springframework/scheduling/quartz/SchedulerFactoryBeanRuntimeHintsTests.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 | dfc06eda7ab6b35da822abfb86db48df1791057d.json | Upgrade Java 8 version in CI image and .sdkmanrc | .sdkmanrc | @@ -1,3 +1,3 @@
# Enable auto-env through the sdkman_auto_env config
# Add key=value pairs of SDKs to use below
-java=8.0.342-librca
+java=8.0.345-librca | true |
Other | spring-projects | spring-framework | dfc06eda7ab6b35da822abfb86db48df1791057d.json | Upgrade Java 8 version in CI image and .sdkmanrc | ci/images/get-jdk-url.sh | @@ -3,7 +3,7 @@ set -e
case "$1" in
java8)
- echo "https://github.com/bell-sw/Liberica/releases/download/8u342+7/bellsoft-jdk8u342+7-linux-amd64.tar.gz"
+ echo "https://github.com/bell-sw/Liberica/releases/download/8u345+1/bellsoft-jdk8u345+1-linux-amd64.tar.gz"
;;
java11)
echo "https://github.com/bell... | true |
Other | spring-projects | spring-framework | cd2b7afc8751804fa97d28bbf95b41fe03347dac.json | Avoid reflection on OptionalValidatorFactoryBean
Closes gh-28939 | spring-messaging/src/main/java/org/springframework/messaging/simp/config/AbstractMessageBrokerConfiguration.java | @@ -22,7 +22,6 @@
import java.util.List;
import java.util.Map;
-import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.BeanInitializationException;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.ApplicationContext;
@@ -71,6 +70,7 @@... | true |
Other | spring-projects | spring-framework | cd2b7afc8751804fa97d28bbf95b41fe03347dac.json | Avoid reflection on OptionalValidatorFactoryBean
Closes gh-28939 | spring-webflux/src/main/java/org/springframework/web/reactive/config/WebFluxConfigurationSupport.java | @@ -22,7 +22,6 @@
import reactor.core.publisher.Mono;
-import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.BeanInitializationException;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.ApplicationContext;
@@ -45,6 +44,7 @@
import... | true |
Other | spring-projects | spring-framework | cd2b7afc8751804fa97d28bbf95b41fe03347dac.json | Avoid reflection on OptionalValidatorFactoryBean
Closes gh-28939 | spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupport.java | @@ -25,7 +25,6 @@
import jakarta.servlet.ServletContext;
-import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.BeanFactoryUtils;
import org.springframework.beans.factory.BeanInitializationException;
import org.springframework.beans.factory.annotation.Qualifier;
@@ -68,6 +67,7 @@
... | true |
Other | spring-projects | spring-framework | 7e719fe3f844f066faed786366e666175eb96ed7.json | Use Jakarta EE XML namespaces instead of Java EE
Closes gh-28903 | spring-web/src/main/resources/META-INF/web-fragment.xml | @@ -1,8 +1,8 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<web-fragment xmlns="http://java.sun.com/xml/ns/javaee"
+<?xml version="1.0" encoding="UTF-8"?>
+<web-fragment xmlns="https://jakarta.ee/xml/ns/jakartaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/n... | true |
Other | spring-projects | spring-framework | 7e719fe3f844f066faed786366e666175eb96ed7.json | Use Jakarta EE XML namespaces instead of Java EE
Closes gh-28903 | src/docs/asciidoc/web/websocket.adoc | @@ -215,12 +215,12 @@ through the use of the `<absolute-ordering />` element in `web.xml`, as the foll
[source,xml,indent=0,subs="verbatim,quotes,attributes"]
----
- <web-app xmlns="http://java.sun.com/xml/ns/javaee"
+ <web-app xmlns="https://jakarta.ee/xml/ns/jakartaee"
xmlns:xsi="http://www.w3.org/2001/XMLSche... | true |
Other | spring-projects | spring-framework | fea29ea4cdcb364988267eccd333f58f9aa8a87f.json | Upgrade Gradle plugins | build.gradle | @@ -1,17 +1,17 @@
plugins {
- id 'io.spring.dependency-management' version '1.0.11.RELEASE' apply false
+ id 'io.spring.dependency-management' version '1.0.12.RELEASE' apply false
id 'io.spring.nohttp' version '0.0.10'
- id "io.freefair.aspectj" version '6.4.0' apply false
+ id 'io.freefair.aspectj' version '6.5.0.3... | false |
Other | spring-projects | spring-framework | 843221b4481be10f89e269cf5ba5505126bf3c8f.json | Fix broken Javadoc links
See gh-28906 | spring-test/src/main/java/org/springframework/test/context/MergedContextConfiguration.java | @@ -62,7 +62,7 @@
* @see ActiveProfiles
* @see TestPropertySource
* @see ContextConfigurationAttributes
- * @see SmartContextLoader#loadContext(MergedContextConfiguration, boolean)
+ * @see SmartContextLoader#loadContext(MergedContextConfiguration)
*/
public class MergedContextConfiguration implements Serializ... | true |
Other | spring-projects | spring-framework | 843221b4481be10f89e269cf5ba5505126bf3c8f.json | Fix broken Javadoc links
See gh-28906 | spring-test/src/main/java/org/springframework/test/context/support/AbstractContextLoader.java | @@ -128,7 +128,7 @@ public void processContextConfiguration(ContextConfigurationAttributes configAtt
* @see TestPropertySourceUtils#addPropertiesFilesToEnvironment
* @see TestPropertySourceUtils#addInlinedPropertiesToEnvironment
* @see ApplicationContextInitializer#initialize(ConfigurableApplicationContext)
- ... | true |
Other | spring-projects | spring-framework | 843221b4481be10f89e269cf5ba5505126bf3c8f.json | Fix broken Javadoc links
See gh-28906 | spring-test/src/main/java/org/springframework/test/context/web/WebMergedContextConfiguration.java | @@ -50,7 +50,7 @@
* @see org.springframework.test.context.ContextConfiguration
* @see org.springframework.test.context.ActiveProfiles
* @see org.springframework.test.context.ContextConfigurationAttributes
- * @see org.springframework.test.context.SmartContextLoader#loadContext(MergedContextConfiguration, boolean)... | true |
Other | spring-projects | spring-framework | 51e594ae81c68d8ae1a1dd11287207dbedb9d8ab.json | Upgrade Java 17 version in CI image | ci/images/get-jdk-url.sh | @@ -9,7 +9,7 @@ case "$1" in
echo "https://github.com/bell-sw/Liberica/releases/download/11.0.16+8/bellsoft-jdk11.0.16+8-linux-amd64.tar.gz"
;;
java17)
- echo "https://github.com/bell-sw/Liberica/releases/download/17.0.3.1+2/bellsoft-jdk17.0.3.1+2-linux-amd64.tar.gz"
+ echo "https://github.com/bell-sw/Liberic... | false |
Other | spring-projects | spring-framework | 86a762b5ee400f17237750bb01754e0f0590d9da.json | Upgrade Java 8 version in CI image | ci/images/get-jdk-url.sh | @@ -3,7 +3,7 @@ set -e
case "$1" in
java8)
- echo "https://github.com/bell-sw/Liberica/releases/download/8u333+2/bellsoft-jdk8u333+2-linux-amd64.tar.gz"
+ echo "https://github.com/bell-sw/Liberica/releases/download/8u342+7/bellsoft-jdk8u342+7-linux-amd64.tar.gz"
;;
java11)
echo "https://github.com/bell... | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.