Skip to content

Commit 8a1d147

Browse files
committed
Remove 3.x deprecations.
Removed all deprecations that have accumulated in the 3.x timeline so far.
1 parent 161a3a9 commit 8a1d147

File tree

8 files changed

+2
-276
lines changed

8 files changed

+2
-276
lines changed

spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/ControllerUtils.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,8 @@
1515
*/
1616
package org.springframework.data.rest.webmvc;
1717

18-
import java.util.Collections;
1918
import java.util.Optional;
2019

21-
import org.springframework.hateoas.CollectionModel;
22-
import org.springframework.hateoas.EntityModel;
2320
import org.springframework.hateoas.RepresentationModel;
2421
import org.springframework.http.HttpHeaders;
2522
import org.springframework.http.HttpStatus;
@@ -32,13 +29,6 @@
3229
*/
3330
public class ControllerUtils {
3431

35-
/**
36-
* Use {@link CollectionModel#empty()} instead.
37-
*
38-
* @deprecated since 3.3
39-
*/
40-
@Deprecated public static final Iterable<EntityModel<?>> EMPTY_RESOURCE_LIST = Collections.emptyList();
41-
4232
public static <R extends RepresentationModel<?>> ResponseEntity<RepresentationModel<?>> toResponseEntity(
4333
HttpStatus status, HttpHeaders headers, Optional<R> resource) {
4434

spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RestMediaTypes.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,11 @@
2626
*/
2727
public class RestMediaTypes {
2828

29-
3029
public static final MediaType HAL_JSON = MediaTypes.HAL_JSON;
3130

3231
public static final MediaType JSON_PATCH_JSON = MediaType.valueOf("application/json-patch+json");
3332
public static final MediaType MERGE_PATCH_JSON = MediaType.valueOf("application/merge-patch+json");
3433

35-
/**
36-
* @deprecated Migrate to {@link MediaTypes#ALPS_JSON_VALUE}.
37-
*/
38-
@Deprecated
39-
public static final String ALPS_JSON_VALUE = "application/alps+json";
40-
41-
/**
42-
* @deprecated Migrate to {@link MediaTypes#ALPS_JSON}.
43-
*/
44-
@Deprecated
45-
public static final MediaType ALPS_JSON = MediaType.parseMediaType(MediaTypes.ALPS_JSON_VALUE);
46-
4734
public static final String SCHEMA_JSON_VALUE = "application/schema+json";
4835
public static final MediaType SCHEMA_JSON = MediaType.valueOf(SCHEMA_JSON_VALUE);
4936

spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/DelegatingHandlerMapping.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@
4141
* @author Oliver Gierke
4242
* @soundtrack Benny Greb - Stabila (Moving Parts)
4343
*/
44-
class DelegatingHandlerMapping
45-
implements org.springframework.data.rest.webmvc.support.DelegatingHandlerMapping, Ordered {
44+
class DelegatingHandlerMapping implements MatchableHandlerMapping, Iterable<HandlerMapping>, Ordered {
4645

4746
private final List<HandlerMapping> delegates;
4847
private final @Nullable PathPatternParser parser;

spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/DomainObjectReader.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,8 @@ private static void copyRemainingProperties(MappedProperties properties, Object
189189
* @param target
190190
* @param mapper
191191
* @return
192-
* @deprecated
193192
*/
194-
@Deprecated
195-
public <T> T merge(ObjectNode source, T target, ObjectMapper mapper) {
193+
<T> T merge(ObjectNode source, T target, ObjectMapper mapper) {
196194

197195
try {
198196
return doMerge(source, target, mapper);

spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/Patch.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,6 @@ public int size() {
4747
return operations.size();
4848
}
4949

50-
/**
51-
* Returns all underlying {@link PatchOperation}s.
52-
*
53-
* @return
54-
* @deprecated since 3.2, prefer streaming via {@link #stream()}.
55-
*/
56-
@Deprecated
57-
public List<PatchOperation> getOperations() {
58-
return operations;
59-
}
60-
6150
/**
6251
* Applies the Patch to a given Object graph. Makes a copy of the given object so that it will remain unchanged after
6352
* application of the patch and in case any errors occur while performing the patch.

spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/mapping/LinkCollectingAssociationHandler.java

Lines changed: 0 additions & 113 deletions
This file was deleted.

spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/mapping/NestedLinkCollectingAssociationHandler.java

Lines changed: 0 additions & 85 deletions
This file was deleted.

spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/support/DelegatingHandlerMapping.java

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)