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 | 2d2726b8f77d7139c2dfdd0e4c0bc1b7591282d7.json | Add RequestBody resolver and minor improvements
Support for RequestBody arguments.
List supported arguments on HttpExchange.
Improve null handling.
See gh-28386 | spring-web/src/test/java/org/springframework/web/service/invoker/HttpMethodArgumentResolverTests.java | @@ -22,6 +22,7 @@
import org.springframework.web.service.annotation.GetExchange;
import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatIllegalStateException;
/**
@@ -44,14 +45,18 @@ void requestMethodOverride() {
}
@Test
- void ignoreOtherArgum... | true |
Other | spring-projects | spring-framework | 2d2726b8f77d7139c2dfdd0e4c0bc1b7591282d7.json | Add RequestBody resolver and minor improvements
Support for RequestBody arguments.
List supported arguments on HttpExchange.
Improve null handling.
See gh-28386 | spring-web/src/test/java/org/springframework/web/service/invoker/RequestBodyArgumentResolverTests.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 | 2d2726b8f77d7139c2dfdd0e4c0bc1b7591282d7.json | Add RequestBody resolver and minor improvements
Support for RequestBody arguments.
List supported arguments on HttpExchange.
Improve null handling.
See gh-28386 | spring-web/src/test/java/org/springframework/web/service/invoker/UrlArgumentResolverTests.java | @@ -23,14 +23,15 @@
import org.springframework.web.service.annotation.GetExchange;
import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatIllegalStateException;
/**
- * Unit tests for {@link HttpUrlArgumentResolver}.
+ * Unit tests for {@link UrlArgum... | true |
Other | spring-projects | spring-framework | 2794553d2e12a7c74f7654fc093bcfc93de1723d.json | Add resolvers for URI, cookies, and request params
See gh-28386 | spring-web/src/main/java/org/springframework/web/service/invoker/CookieValueArgumentResolver.java | @@ -0,0 +1,71 @@
+/*
+ * 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 | 2794553d2e12a7c74f7654fc093bcfc93de1723d.json | Add resolvers for URI, cookies, and request params
See gh-28386 | spring-web/src/main/java/org/springframework/web/service/invoker/HttpRequestValues.java | @@ -18,22 +18,29 @@
import java.net.URI;
+import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
import java.util.Collections;
+import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
+import java.util.function.Function;
import org.reactive... | true |
Other | spring-projects | spring-framework | 2794553d2e12a7c74f7654fc093bcfc93de1723d.json | Add resolvers for URI, cookies, and request params
See gh-28386 | spring-web/src/main/java/org/springframework/web/service/invoker/HttpServiceProxyFactory.java | @@ -189,6 +189,9 @@ private List<HttpServiceArgumentResolver> initArgumentResolvers(ConversionServic
List<HttpServiceArgumentResolver> resolvers = new ArrayList<>(this.customResolvers);
resolvers.add(new RequestHeaderArgumentResolver(conversionService));
resolvers.add(new PathVariableArgumentResolver(conver... | true |
Other | spring-projects | spring-framework | 2794553d2e12a7c74f7654fc093bcfc93de1723d.json | Add resolvers for URI, cookies, and request params
See gh-28386 | spring-web/src/main/java/org/springframework/web/service/invoker/HttpUrlArgumentResolver.java | @@ -0,0 +1,47 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 2794553d2e12a7c74f7654fc093bcfc93de1723d.json | Add resolvers for URI, cookies, and request params
See gh-28386 | spring-web/src/main/java/org/springframework/web/service/invoker/RequestHeaderArgumentResolver.java | @@ -27,8 +27,9 @@
*
* <p>The argument may be:
* <ul>
- * <li>{@code Map} or {@link org.springframework.util.MultiValueMap} with
- * multiple headers and value(s).
+ * <li>{@code Map<String, ?>} or
+ * {@link org.springframework.util.MultiValueMap MultiValueMap<String, ?>}
+ * with multiple headers and value... | true |
Other | spring-projects | spring-framework | 2794553d2e12a7c74f7654fc093bcfc93de1723d.json | Add resolvers for URI, cookies, and request params
See gh-28386 | spring-web/src/main/java/org/springframework/web/service/invoker/RequestParamArgumentResolver.java | @@ -0,0 +1,75 @@
+/*
+ * 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 | 2794553d2e12a7c74f7654fc093bcfc93de1723d.json | Add resolvers for URI, cookies, and request params
See gh-28386 | spring-web/src/test/java/org/springframework/web/service/invoker/CookieValueArgumentResolverTests.java | @@ -0,0 +1,186 @@
+/*
+ * 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 | 2794553d2e12a7c74f7654fc093bcfc93de1723d.json | Add resolvers for URI, cookies, and request params
See gh-28386 | spring-web/src/test/java/org/springframework/web/service/invoker/HttpUrlArgumentResolverTests.java | @@ -0,0 +1,61 @@
+/*
+ * 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 | 2794553d2e12a7c74f7654fc093bcfc93de1723d.json | Add resolvers for URI, cookies, and request params
See gh-28386 | spring-web/src/test/java/org/springframework/web/service/invoker/RequestParamArgumentResolverTests.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 | 217117ced04da7e68d171c09b103bf1e91536a09.json | Remove Jakarta Mail dependency from spring-web
This commit removes the dependency that the spring-web module has on
Jakarta Mail.
In FormHttpMessageConverter, a dependency on
jakarta.mail.internet.MimeUtility was replaced by existing encoding
logic in ContentDisposition.
In StandardMultipartHttpServletRequest, a dep... | spring-web/spring-web.gradle | @@ -15,7 +15,6 @@ dependencies {
optional("jakarta.el:jakarta.el-api")
optional("jakarta.faces:jakarta.faces-api")
optional("jakarta.json.bind:jakarta.json.bind-api")
- optional("jakarta.mail:jakarta.mail-api")
optional("jakarta.validation:jakarta.validation-api")
optional("jakarta.xml.bind:jakarta.xml.bind-a... | true |
Other | spring-projects | spring-framework | 217117ced04da7e68d171c09b103bf1e91536a09.json | Remove Jakarta Mail dependency from spring-web
This commit removes the dependency that the spring-web module has on
Jakarta Mail.
In FormHttpMessageConverter, a dependency on
jakarta.mail.internet.MimeUtility was replaced by existing encoding
logic in ContentDisposition.
In StandardMultipartHttpServletRequest, a dep... | spring-web/src/main/java/org/springframework/http/ContentDisposition.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.
@@ -33,6 +33,7 @@
import org.springframework.u... | true |
Other | spring-projects | spring-framework | 217117ced04da7e68d171c09b103bf1e91536a09.json | Remove Jakarta Mail dependency from spring-web
This commit removes the dependency that the spring-web module has on
Jakarta Mail.
In FormHttpMessageConverter, a dependency on
jakarta.mail.internet.MimeUtility was replaced by existing encoding
logic in ContentDisposition.
In StandardMultipartHttpServletRequest, a dep... | spring-web/src/main/java/org/springframework/http/converter/FormHttpMessageConverter.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.IOException... | true |
Other | spring-projects | spring-framework | 217117ced04da7e68d171c09b103bf1e91536a09.json | Remove Jakarta Mail dependency from spring-web
This commit removes the dependency that the spring-web module has on
Jakarta Mail.
In FormHttpMessageConverter, a dependency on
jakarta.mail.internet.MimeUtility was replaced by existing encoding
logic in ContentDisposition.
In StandardMultipartHttpServletRequest, a dep... | spring-web/src/main/java/org/springframework/web/multipart/support/StandardMultipartHttpServletRequest.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2021 the original author or authors.
+ * Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -20,7 +20,6 @@
import java.io.IOException;
... | true |
Other | spring-projects | spring-framework | 217117ced04da7e68d171c09b103bf1e91536a09.json | Remove Jakarta Mail dependency from spring-web
This commit removes the dependency that the spring-web module has on
Jakarta Mail.
In FormHttpMessageConverter, a dependency on
jakarta.mail.internet.MimeUtility was replaced by existing encoding
logic in ContentDisposition.
In StandardMultipartHttpServletRequest, a dep... | spring-web/src/test/java/org/springframework/http/ContentDispositionTests.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.
@@ -92,6 +92,18 @@ void parseBase64EncodedShift... | true |
Other | spring-projects | spring-framework | caaf83b8e6534b8c9a3806661022ac8185985876.json | Add tests for binding to a Part field
See gh-27830 | spring-test/src/test/java/org/springframework/test/web/servlet/samples/standalone/MultipartControllerTests.java | @@ -39,6 +39,9 @@
import org.springframework.stereotype.Controller;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.ui.Model;
+import org.springframework.util.StreamUtils;
+import org.springframework.validation.BindException;
+import org.springframework.validation.BindingResult;
impo... | true |
Other | spring-projects | spring-framework | caaf83b8e6534b8c9a3806661022ac8185985876.json | Add tests for binding to a Part field
See gh-27830 | spring-web/src/main/java/org/springframework/web/bind/ServletRequestDataBinder.java | @@ -104,11 +104,14 @@ public ServletRequestDataBinder(@Nullable Object target, String objectName) {
* HTTP parameters: i.e. "uploadedFile" to an "uploadedFile" bean property,
* invoking a "setUploadedFile" setter method.
* <p>The type of the target property for a multipart file can be MultipartFile,
- * byte[... | true |
Other | spring-projects | spring-framework | caaf83b8e6534b8c9a3806661022ac8185985876.json | Add tests for binding to a Part field
See gh-27830 | spring-web/src/main/java/org/springframework/web/bind/support/WebRequestDataBinder.java | @@ -108,7 +108,8 @@ public WebRequestDataBinder(@Nullable Object target, String objectName) {
* HTTP parameters: i.e. "uploadedFile" to an "uploadedFile" bean property,
* invoking a "setUploadedFile" setter method.
* <p>The type of the target property for a multipart file can be Part, MultipartFile,
- * byte[... | true |
Other | spring-projects | spring-framework | b1384ddafa9c6aac76312c103ba69c901f7b75f1.json | Add HttpServiceProxyFactory builder
See gh-28386 | spring-web/src/main/java/org/springframework/web/service/invoker/HttpServiceProxyFactory.java | @@ -18,9 +18,11 @@
import java.lang.reflect.Method;
import java.time.Duration;
-import java.util.HashMap;
+import java.util.ArrayList;
import java.util.List;
import java.util.Map;
+import java.util.function.Function;
+import java.util.stream.Collectors;
import org.aopalliance.intercept.MethodInterceptor;
impo... | true |
Other | spring-projects | spring-framework | b1384ddafa9c6aac76312c103ba69c901f7b75f1.json | Add HttpServiceProxyFactory builder
See gh-28386 | spring-web/src/test/java/org/springframework/web/service/invoker/HttpMethodArgumentResolverTests.java | @@ -34,7 +34,7 @@ public class HttpMethodArgumentResolverTests {
private final TestHttpClientAdapter clientAdapter = new TestHttpClientAdapter();
- private final Service service = this.clientAdapter.createService(Service.class, new HttpMethodArgumentResolver());
+ private final Service service = this.clientAdapte... | true |
Other | spring-projects | spring-framework | b1384ddafa9c6aac76312c103ba69c901f7b75f1.json | Add HttpServiceProxyFactory builder
See gh-28386 | spring-web/src/test/java/org/springframework/web/service/invoker/PathVariableArgumentResolverTests.java | @@ -21,7 +21,6 @@
import org.junit.jupiter.api.Test;
-import org.springframework.core.convert.support.DefaultConversionService;
import org.springframework.lang.Nullable;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.service.annotation.GetExchange;
@@ -39,8 +38,7 @@ ... | true |
Other | spring-projects | spring-framework | b1384ddafa9c6aac76312c103ba69c901f7b75f1.json | Add HttpServiceProxyFactory builder
See gh-28386 | spring-web/src/test/java/org/springframework/web/service/invoker/TestHttpClientAdapter.java | @@ -16,14 +16,10 @@
package org.springframework.web.service.invoker;
-import java.time.Duration;
-import java.util.Arrays;
-
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import org.springframework.core.ParameterizedTypeReference;
-import org.springframework.core.ReactiveAdapterRegis... | true |
Other | spring-projects | spring-framework | b1384ddafa9c6aac76312c103ba69c901f7b75f1.json | Add HttpServiceProxyFactory builder
See gh-28386 | spring-webflux/src/test/java/org/springframework/web/reactive/function/client/support/WebClientHttpServiceProxyTests.java | @@ -19,7 +19,6 @@
import java.io.IOException;
import java.time.Duration;
-import java.util.Collections;
import java.util.function.Consumer;
import okhttp3.mockwebserver.MockResponse;
@@ -30,7 +29,6 @@
import reactor.core.publisher.Mono;
import reactor.test.StepVerifier;
-import org.springframework.core.Reac... | true |
Other | spring-projects | spring-framework | 8a46e968751f566b3bc87623bc0a2957789d47ce.json | Add remaining HttpExchange annotations
See gh-28386 | spring-web/src/main/java/org/springframework/web/service/annotation/DeleteExchange.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 | 8a46e968751f566b3bc87623bc0a2957789d47ce.json | Add remaining HttpExchange annotations
See gh-28386 | spring-web/src/main/java/org/springframework/web/service/annotation/HeadExchange.java | @@ -0,0 +1,58 @@
+/*
+ * 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 | 8a46e968751f566b3bc87623bc0a2957789d47ce.json | Add remaining HttpExchange annotations
See gh-28386 | spring-web/src/main/java/org/springframework/web/service/annotation/HttpExchange.java | @@ -25,20 +25,47 @@
import org.springframework.core.annotation.AliasFor;
import org.springframework.web.bind.annotation.Mapping;
+
/**
- * Supported method parameters:
+ * Annotation that declares an HTTP service method as an HTTP endpoint defined
+ * through attributes of the annotation and method argument values... | true |
Other | spring-projects | spring-framework | 8a46e968751f566b3bc87623bc0a2957789d47ce.json | Add remaining HttpExchange annotations
See gh-28386 | spring-web/src/main/java/org/springframework/web/service/annotation/OptionsExchange.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 | 8a46e968751f566b3bc87623bc0a2957789d47ce.json | Add remaining HttpExchange annotations
See gh-28386 | spring-web/src/main/java/org/springframework/web/service/annotation/PatchExchange.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 | 8a46e968751f566b3bc87623bc0a2957789d47ce.json | Add remaining HttpExchange annotations
See gh-28386 | spring-web/src/main/java/org/springframework/web/service/annotation/PutExchange.java | @@ -55,4 +55,10 @@
@AliasFor(annotation = HttpExchange.class)
String contentType() default "";
+ /**
+ * Alias for {@link HttpExchange#accept()}.
+ */
+ @AliasFor(annotation = HttpExchange.class)
+ String[] accept() default {};
+
} | true |
Other | spring-projects | spring-framework | 8a46e968751f566b3bc87623bc0a2957789d47ce.json | Add remaining HttpExchange annotations
See gh-28386 | spring-web/src/main/java/org/springframework/web/service/invoker/HttpClientAdapter.java | @@ -33,18 +33,58 @@
*/
public interface HttpClientAdapter {
+ /**
+ * Perform the given request, and release the response content, if any.
+ * @param requestValues the request to perform
+ * @return {@code Mono} that completes when the request is fully executed
+ * and the response content is released.
+ */
... | true |
Other | spring-projects | spring-framework | 01fd489b47f8f2a3e1fdb5a3779c930c29e9ee57.json | Upgrade Ubuntu version in CI images | ci/images/ci-image/Dockerfile | @@ -1,4 +1,4 @@
-FROM ubuntu:focal-20220302
+FROM ubuntu:focal-20220404
ADD setup.sh /setup.sh
ADD get-jdk-url.sh /get-jdk-url.sh | false |
Other | spring-projects | spring-framework | e0090545f5029dc1cba2c984ce86e428dbee5991.json | Upgrade Kotlin to 1.6.20
Closes gh-28036 | build.gradle | @@ -3,8 +3,8 @@ plugins {
id 'io.spring.nohttp' version '0.0.10'
id "io.freefair.aspectj" version '6.4.0' apply false
id 'org.jetbrains.dokka' version '1.6.10' apply false
- id 'org.jetbrains.kotlin.jvm' version '1.6.20-RC' apply false
- id "org.jetbrains.kotlin.plugin.serialization" version '1.6.20-RC' apply fal... | false |
Other | spring-projects | spring-framework | 002546b3e4b8d791ea6acccb81eb3168f51abb15.json | Refine PropertyDescriptor filtering
Restrict property paths under `Class` and properties of types
`ClassLoader` or `ProtectionDomain`. | spring-beans/src/main/java/org/springframework/beans/CachedIntrospectionResults.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.
@@ -22,6 +22,7 @@
import java.beans.PropertyDe... | false |
Other | spring-projects | spring-framework | e681e713d4aa75be988d77f0108f80ecf15e21e9.json | Initialize NativeDetector at build time
Closes gh-28244 | spring-core/src/main/resources/META-INF/native-image/org.springframework/spring-core/native-image.properties | @@ -0,0 +1 @@
+Args = --initialize-at-build-time=org.springframework.core.NativeDetector | false |
Other | spring-projects | spring-framework | 77a8cbcbecc54744b059e41f24c362f587db21d2.json | Remove outdated comment in NativeDetector
`-H:+InlineBeforeAnalysis` is enabled by default as of
GraalVM 21.3. | spring-core/src/main/java/org/springframework/core/NativeDetector.java | @@ -19,9 +19,6 @@
/**
* A common delegate for detecting a GraalVM native image environment.
*
- * <p>Requires using the {@code -H:+InlineBeforeAnalysis} native image compiler flag in order to allow code removal at
- * build time.
- *
* @author Sebastien Deleuze
* @since 5.3.4
*/ | false |
Other | spring-projects | spring-framework | e90225336a57fa269ec40d6e238e4a27541b56fc.json | Use JPA from Jakarta | spring-test/src/test/java/org/springframework/test/context/junit/jupiter/orm/JpaEntityListenerTests.java | @@ -18,11 +18,11 @@
import java.util.List;
-import javax.persistence.EntityManager;
-import javax.persistence.EntityManagerFactory;
-import javax.persistence.PersistenceContext;
import javax.sql.DataSource;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.EntityManagerFactory;
+import jaka... | true |
Other | spring-projects | spring-framework | e90225336a57fa269ec40d6e238e4a27541b56fc.json | Use JPA from Jakarta | spring-test/src/test/java/org/springframework/test/context/junit/jupiter/orm/domain/JpaPersonRepository.java | @@ -16,8 +16,8 @@
package org.springframework.test.context.junit.jupiter.orm.domain;
-import javax.persistence.EntityManager;
-import javax.persistence.PersistenceContext;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.PersistenceContext;
import org.springframework.stereotype.Repository;... | true |
Other | spring-projects | spring-framework | e90225336a57fa269ec40d6e238e4a27541b56fc.json | Use JPA from Jakarta | spring-test/src/test/java/org/springframework/test/context/junit/jupiter/orm/domain/Person.java | @@ -16,11 +16,11 @@
package org.springframework.test.context.junit.jupiter.orm.domain;
-import javax.persistence.Entity;
-import javax.persistence.EntityListeners;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
+import jakarta.persistence.Entity;
+... | true |
Other | spring-projects | spring-framework | e90225336a57fa269ec40d6e238e4a27541b56fc.json | Use JPA from Jakarta | spring-test/src/test/java/org/springframework/test/context/junit/jupiter/orm/domain/PersonListener.java | @@ -19,13 +19,13 @@
import java.util.ArrayList;
import java.util.List;
-import javax.persistence.PostLoad;
-import javax.persistence.PostPersist;
-import javax.persistence.PostRemove;
-import javax.persistence.PostUpdate;
-import javax.persistence.PrePersist;
-import javax.persistence.PreRemove;
-import javax.persi... | true |
Other | spring-projects | spring-framework | 1d302bf38445e3db559c9618c5ede71ca74bea1a.json | Introduce tests for gh-28228 | spring-test/src/test/java/org/springframework/test/context/junit/jupiter/orm/JpaEntityListenerTests.java | @@ -0,0 +1,198 @@
+/*
+ * 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 | 1d302bf38445e3db559c9618c5ede71ca74bea1a.json | Introduce tests for gh-28228 | spring-test/src/test/java/org/springframework/test/context/junit/jupiter/orm/domain/JpaPersonRepository.java | @@ -0,0 +1,61 @@
+/*
+ * 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 | 1d302bf38445e3db559c9618c5ede71ca74bea1a.json | Introduce tests for gh-28228 | spring-test/src/test/java/org/springframework/test/context/junit/jupiter/orm/domain/Person.java | @@ -0,0 +1,65 @@
+/*
+ * 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 | 1d302bf38445e3db559c9618c5ede71ca74bea1a.json | Introduce tests for gh-28228 | spring-test/src/test/java/org/springframework/test/context/junit/jupiter/orm/domain/PersonListener.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 | 1d302bf38445e3db559c9618c5ede71ca74bea1a.json | Introduce tests for gh-28228 | spring-test/src/test/java/org/springframework/test/context/junit/jupiter/orm/domain/PersonRepository.java | @@ -0,0 +1,35 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 1d302bf38445e3db559c9618c5ede71ca74bea1a.json | Introduce tests for gh-28228 | spring-test/src/test/java/org/springframework/test/context/junit4/orm/HibernateSessionFlushingTests.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.
@@ -44,6 +44,7 @@
* @author Juergen Hoeller
... | true |
Other | spring-projects | spring-framework | 4b150fd451ad06647f04f95631627198b3df929f.json | Update copyright date in reference manual
Closes gh-28237 | src/docs/asciidoc/index.adoc | @@ -36,7 +36,7 @@ Brannen, Ramnivas Laddad, Arjen Poutsma, Chris Beams, Tareq Abedrabbo, Andy Clem
Syer, Oliver Gierke, Rossen Stoyanchev, Phillip Webb, Rob Winch, Brian Clozel, Stephane
Nicoll, Sebastien Deleuze, Jay Bryant, Mark Paluch
-Copyright © 2002 - 2021 Pivotal, Inc. All Rights Reserved.
+Copyright © 2002 ... | false |
Other | spring-projects | spring-framework | 135506f67238a57bfb2fa8bff6480de611eda1d6.json | Update copyright year of EvaluationTests
See gh-28238 | spring-expression/src/test/java/org/springframework/expression/spel/EvaluationTests.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. | false |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-test/src/main/java/org/springframework/mock/http/client/MockClientHttpResponse.java | @@ -20,6 +20,7 @@
import java.io.InputStream;
import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.http.client.ClientHttpResponse;
import org.springframework.mock.http.MockHttpInputMessage;
import org.springframework.util.Assert;
@@ -32,62 +33,65... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-test/src/main/java/org/springframework/mock/http/client/reactive/MockClientHttpResponse.java | @@ -30,6 +30,7 @@
import org.springframework.core.io.buffer.DefaultDataBufferFactory;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseCookie;
... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-test/src/main/java/org/springframework/test/web/client/MockMvcClientHttpRequestFactory.java | @@ -23,6 +23,7 @@
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.http.client.ClientHttpRequest;
import org.springframework.http.client.ClientHttpRequestF... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-test/src/main/java/org/springframework/test/web/client/response/DefaultResponseCreator.java | @@ -22,7 +22,7 @@
import org.springframework.core.io.Resource;
import org.springframework.http.HttpHeaders;
-import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.http.MediaType;
import org.springframework.http.client.ClientHttpRequest;
import org... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-test/src/main/java/org/springframework/test/web/client/response/MockRestResponseCreators.java | @@ -21,6 +21,7 @@
import org.springframework.core.io.Resource;
import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.http.MediaType;
import org.springframework.lang.Nullable;
import org.springframework.test.web.client.ResponseCreator;
@@ -113,12 +... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-test/src/main/java/org/springframework/test/web/reactive/server/ExchangeResult.java | @@ -31,6 +31,7 @@
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseCookie;
import org.springframew... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-test/src/main/java/org/springframework/test/web/reactive/server/HttpHandlerConnector.java | @@ -31,6 +31,8 @@
import org.springframework.http.HttpCookie;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.http.client.reactive.ClientHttpConnector;
i... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-test/src/main/java/org/springframework/test/web/reactive/server/StatusAssertions.java | @@ -22,6 +22,7 @@
import org.hamcrest.MatcherAssert;
import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.test.util.AssertionErrors;
/**
@@ -45,19 +46,19 @@ public class StatusAssertions {
/**
- * Assert the response status as an {@link H... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-test/src/main/java/org/springframework/test/web/servlet/result/StatusResultMatchers.java | @@ -19,6 +19,7 @@
import org.hamcrest.Matcher;
import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.test.web.servlet.MvcResult;
import org.springframework.test.web.servlet.ResultMatcher;
@@ -104,9 +105,7 @@ public ResultMatcher is5xxServerError(... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-test/src/test/java/org/springframework/test/web/client/response/ResponseCreatorsTests.java | @@ -22,6 +22,7 @@
import org.junit.jupiter.api.Test;
import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.http.MediaType;
import org.springframework.mock.http.client.MockClientHttpResponse;
import org.springframework.test.web.client.ResponseCreat... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/http/ProblemDetail.java | @@ -55,7 +55,7 @@ public class ProblemDetail {
/**
* Protected constructor for subclasses.
* <p>To create a {@link ProblemDetail} instance, use static factory methods,
- * {@link #forStatus(HttpStatus)} or {@link #forRawStatusCode(int)}.
+ * {@link #forStatus(HttpStatusCode)} or {@link #forStatus(int)}.
* ... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/http/ResponseEntity.java | @@ -31,7 +31,7 @@
import org.springframework.util.ObjectUtils;
/**
- * Extension of {@link HttpEntity} that adds an {@link HttpStatus} status code.
+ * Extension of {@link HttpEntity} that adds an {@link HttpStatusCode} status code.
* Used in {@code RestTemplate} as well as in {@code @Controller} methods.
*
*... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/http/client/AbstractClientHttpResponse.java | @@ -18,19 +18,21 @@
import java.io.IOException;
-import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
/**
* Abstract base for {@link ClientHttpResponse}.
*
* @author Arjen Poutsma
* @since 3.1.1
+ * @deprecated with no direct replacement
*/
+@Deprecated
public ... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/http/client/BufferingClientHttpResponseWrapper.java | @@ -21,7 +21,7 @@
import java.io.InputStream;
import org.springframework.http.HttpHeaders;
-import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.lang.Nullable;
import org.springframework.util.StreamUtils;
@@ -46,11 +46,12 @@ final class Bufferin... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/http/client/ClientHttpResponse.java | @@ -20,7 +20,7 @@
import java.io.IOException;
import org.springframework.http.HttpInputMessage;
-import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
/**
* Represents a client-side HTTP response.
@@ -36,26 +36,21 @@
public interface ClientHttpResponse extends HttpInputM... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/http/client/HttpComponentsClientHttpResponse.java | @@ -26,6 +26,7 @@
import org.apache.http.util.EntityUtils;
import org.springframework.http.HttpHeaders;
+import org.springframework.http.HttpStatusCode;
import org.springframework.lang.Nullable;
import org.springframework.util.StreamUtils;
@@ -40,7 +41,7 @@
* @since 3.1
* @see HttpComponentsClientHttpReques... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/http/client/OkHttp3ClientHttpResponse.java | @@ -23,6 +23,7 @@
import okhttp3.ResponseBody;
import org.springframework.http.HttpHeaders;
+import org.springframework.http.HttpStatusCode;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
import org.springframework.util.StreamUtils;
@@ -35,7 +36,7 @@
* @author Roy Clarkson
... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/http/client/SimpleClientHttpResponse.java | @@ -21,6 +21,7 @@
import java.net.HttpURLConnection;
import org.springframework.http.HttpHeaders;
+import org.springframework.http.HttpStatusCode;
import org.springframework.lang.Nullable;
import org.springframework.util.StreamUtils;
import org.springframework.util.StringUtils;
@@ -34,7 +35,7 @@
* @author Bria... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/http/client/reactive/ClientHttpResponse.java | @@ -16,7 +16,7 @@
package org.springframework.http.client.reactive;
-import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.http.ReactiveHttpInputMessage;
import org.springframework.http.ResponseCookie;
import org.springframework.util.MultiValueMa... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/http/client/reactive/ClientHttpResponseDecorator.java | @@ -20,7 +20,7 @@
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.http.HttpHeaders;
-import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.http.ResponseCookie;
import org.springframework.util.Assert;
import org.spr... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/http/client/reactive/HttpComponentsClientHttpResponse.java | @@ -29,7 +29,7 @@
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.core.io.buffer.DataBufferFactory;
import org.springframework.http.HttpHeaders;
-import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.http.ResponseCook... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/http/client/reactive/JdkClientHttpResponse.java | @@ -35,7 +35,7 @@
import org.springframework.core.io.buffer.DataBufferFactory;
import org.springframework.core.io.buffer.DataBufferUtils;
import org.springframework.http.HttpHeaders;
-import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.http.Respons... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/http/client/reactive/JettyClientHttpResponse.java | @@ -27,7 +27,7 @@
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.http.HttpHeaders;
-import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.http.ResponseCookie;
import org.springframework.lang.Nullable;
import org.s... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/http/client/reactive/ReactorClientHttpResponse.java | @@ -34,7 +34,7 @@
import org.springframework.core.io.buffer.NettyDataBufferFactory;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
-import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.http.ResponseCookie;
... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/http/server/DelegatingServerHttpResponse.java | @@ -20,7 +20,7 @@
import java.io.OutputStream;
import org.springframework.http.HttpHeaders;
-import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.util.Assert;
/**
@@ -52,7 +52,7 @@ public ServerHttpResponse getDelegate() {
}
@Override
- pu... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/http/server/ServerHttpResponse.java | @@ -21,7 +21,7 @@
import java.io.IOException;
import org.springframework.http.HttpOutputMessage;
-import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
/**
* Represents a server-side HTTP response.
@@ -35,7 +35,7 @@ public interface ServerHttpResponse extends HttpOutputMe... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/http/server/ServletServerHttpResponse.java | @@ -26,7 +26,7 @@
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.http.HttpHeaders;
-import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
import org.springframewor... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/http/server/reactive/AbstractServerHttpResponse.java | @@ -31,7 +31,7 @@
import org.springframework.core.io.buffer.DataBufferUtils;
import org.springframework.core.io.buffer.PooledDataBuffer;
import org.springframework.http.HttpHeaders;
-import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.http.Response... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/http/server/reactive/ReactorServerHttpResponse.java | @@ -34,7 +34,7 @@
import org.springframework.core.io.buffer.DataBufferUtils;
import org.springframework.core.io.buffer.NettyDataBufferFactory;
import org.springframework.http.HttpHeaders;
-import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.http.Re... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/http/server/reactive/ServerHttpResponse.java | @@ -16,7 +16,7 @@
package org.springframework.http.server.reactive;
-import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.http.ReactiveHttpOutputMessage;
import org.springframework.http.ResponseCookie;
import org.springframework.lang.Nullable;
@... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/http/server/reactive/ServerHttpResponseDecorator.java | @@ -24,7 +24,7 @@
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.core.io.buffer.DataBufferFactory;
import org.springframework.http.HttpHeaders;
-import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.http.ResponseCook... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/http/server/reactive/ServletServerHttpResponse.java | @@ -34,7 +34,7 @@
import org.springframework.core.io.buffer.DataBufferFactory;
import org.springframework.core.io.buffer.DataBufferUtils;
import org.springframework.http.HttpHeaders;
-import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.http.MediaTy... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/http/server/reactive/UndertowServerHttpResponse.java | @@ -35,7 +35,7 @@
import org.springframework.core.io.buffer.DataBufferFactory;
import org.springframework.core.io.buffer.DataBufferUtils;
import org.springframework.http.HttpHeaders;
-import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.http.Respons... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/web/ErrorResponse.java | @@ -17,7 +17,7 @@
package org.springframework.web;
import org.springframework.http.HttpHeaders;
-import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.http.ProblemDetail;
@@ -41,18 +41,9 @@
public interface ErrorResponse {
/**
- * Return t... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/web/ErrorResponseException.java | @@ -16,13 +16,12 @@
package org.springframework.web;
-
import java.net.URI;
import org.springframework.core.NestedExceptionUtils;
import org.springframework.core.NestedRuntimeException;
import org.springframework.http.HttpHeaders;
-import org.springframework.http.HttpStatus;
+import org.springframework.http.... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/web/HttpMediaTypeException.java | @@ -35,7 +35,7 @@ public abstract class HttpMediaTypeException extends ServletException implements
private final List<MediaType> supportedMediaTypes;
- private final ProblemDetail body = ProblemDetail.forRawStatusCode(getRawStatusCode());
+ private final ProblemDetail body = ProblemDetail.forStatus(getStatusCode(... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/web/HttpMediaTypeNotAcceptableException.java | @@ -21,6 +21,7 @@
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.http.MediaType;
import org.springframework.util.CollectionUtils;
@@ -55,8 +56,8 @@ public HttpMediaTypeNotAcceptableException(Lis... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/web/HttpMediaTypeNotSupportedException.java | @@ -21,6 +21,7 @@
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.http.MediaType;
import org.springframework.lang.Nullable;
import org.springframework.ut... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/web/HttpRequestMethodNotSupportedException.java | @@ -25,6 +25,7 @@
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.http.ProblemDetail;
import org.springframework.lang.Nullable;
import org.springframewor... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/web/bind/MethodArgumentNotValidException.java | @@ -18,6 +18,7 @@
import org.springframework.core.MethodParameter;
import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.http.ProblemDetail;
import org.springframework.validation.BindException;
import org.springframework.validation.BindingResult;
... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/web/bind/MissingPathVariableException.java | @@ -18,6 +18,7 @@
import org.springframework.core.MethodParameter;
import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
/**
* {@link ServletRequestBindingException} subclass that indicates that a path
@@ -85,10 +86,9 @@ public final MethodParameter getParameter() {
re... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/web/bind/ServletRequestBindingException.java | @@ -17,6 +17,7 @@
package org.springframework.web.bind;
import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.http.ProblemDetail;
import org.springframework.web.ErrorResponse;
import org.springframework.web.util.NestedServletException;
@@ -35,7 +3... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/web/client/DefaultResponseErrorHandler.java | @@ -23,6 +23,7 @@
import org.springframework.core.log.LogFormatUtils;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.http.MediaType;
import org.springframework.http.client.ClientHttpResponse;
impo... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/web/client/ExtractingResponseErrorHandler.java | @@ -23,6 +23,7 @@
import java.util.Map;
import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.http.client.ClientHttpResponse;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.lang.Nullable;
@@ -59,7 +60,7 ... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/web/client/HttpClientErrorException.java | @@ -20,6 +20,7 @@
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.lang.Nullable;
/**
@@ -37,30 +38,30 @@ public class HttpClientErrorException extends HttpStatusCodeException {
/**
* Constru... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/web/client/HttpMessageConverterExtractor.java | @@ -122,7 +122,7 @@ public T extractData(ClientHttpResponse response) throws IOException {
}
throw new UnknownContentTypeException(this.responseType, contentType,
- responseWrapper.getRawStatusCode(), responseWrapper.getStatusText(),
+ responseWrapper.getStatusCode(), responseWrapper.getStatusText(),
... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/web/client/HttpServerErrorException.java | @@ -20,6 +20,7 @@
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.lang.Nullable;
/**
@@ -37,30 +38,30 @@ public class HttpServerErrorException extends HttpStatusCodeException {
/**
* Constru... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/web/client/HttpStatusCodeException.java | @@ -20,11 +20,12 @@
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.lang.Nullable;
import org.springframework.util.StringUtils;
/**
- * Abstract base class for exceptions based on an {@link Http... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/web/client/MessageBodyClientHttpResponseWrapper.java | @@ -22,6 +22,7 @@
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.http.client.ClientHttpResponse;
import org.springframework.lang.Nullable;
@@ -58,9 +59,9 @@ public MessageBodyClientHttpResponseW... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/web/client/RestClientResponseException.java | @@ -21,6 +21,7 @@
import java.nio.charset.StandardCharsets;
import org.springframework.http.HttpHeaders;
+import org.springframework.http.HttpStatusCode;
import org.springframework.lang.Nullable;
/**
@@ -36,7 +37,7 @@ public class RestClientResponseException extends RestClientException {
private static final ... | true |
Other | spring-projects | spring-framework | 28ac0d3883e0c683fb995dffc0af7c8a82f3c3d0.json | Use HttpStatusCode interface
This commit contains changes made because of the introduction of
HttpStatusCode. In general, methods that used to return a HttpStatus
now return HttpStatusCode instead, and methods that returned raw status
codes are now deprecated.
See gh-28214 | spring-web/src/main/java/org/springframework/web/client/RestTemplate.java | @@ -33,7 +33,7 @@
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
-import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
import org.springframework.http.MediaType;
import org.springframework.... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.