Skip to content

Commit 68d0a1a

Browse files
committed
DATAREST-931 - Polishing.
Switched to non-deprecated property naming strategy in test case.
1 parent 50d2678 commit 68d0a1a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ public <T> T apply(IncomingRequest request, T target) throws Exception {
8585
}
8686
}
8787

88+
@SuppressWarnings("unchecked")
8889
<T> T applyPatch(InputStream source, T target) throws Exception {
89-
9090
return getPatchOperations(source).apply(target, (Class<T>) target.getClass());
9191
}
9292

spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/DomainObjectReaderUnitTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public void doesNotConsiderIgnoredProperties() throws Exception {
104104
public void considersMappedFieldNamesWhenApplyingNodeToDomainObject() throws Exception {
105105

106106
ObjectMapper mapper = new ObjectMapper();
107-
mapper.setPropertyNamingStrategy(PropertyNamingStrategy.PASCAL_CASE_TO_CAMEL_CASE);
107+
mapper.setPropertyNamingStrategy(PropertyNamingStrategy.UPPER_CAMEL_CASE);
108108

109109
JsonNode node = new ObjectMapper().readTree("{\"FirstName\":\"Carter\",\"LastName\":\"Beauford\"}");
110110

0 commit comments

Comments
 (0)