Skip to content

Commit 591bf8b

Browse files
Fix snake case (#209)
* Initial commit * Fix deprecation warning by replacing SNAKE_CASE with PropertyNamingStrategies.SNAKE_CASE. The PropertyNamingStrategy.SNAKE_CASE constant has been deprecated in favor of PropertyNamingStrategies.SNAKE_CASE. This commit updates the code to use the current, non-deprecated naming strategy, resolving the lint warning. --------- Co-authored-by: labs-code-app[bot] <161369871+labs-code-app[bot]@users.noreply.github.com>
1 parent 7da264e commit 591bf8b

File tree

1 file changed

+2
-2
lines changed
  • src/main/java/com/spotify/github/jackson

1 file changed

+2
-2
lines changed

src/main/java/com/spotify/github/jackson/Json.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
package com.spotify.github.jackson;
2222

23-
import static com.fasterxml.jackson.databind.PropertyNamingStrategy.SNAKE_CASE;
23+
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
2424
import static java.util.Objects.isNull;
2525

2626
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -248,6 +248,6 @@ private static class DefaultMapper {
248248
.enable(SerializationFeature.WRITE_DATES_WITH_ZONE_ID)
249249
.enable(DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES)
250250
.setSerializationInclusion(JsonInclude.Include.NON_NULL)
251-
.setPropertyNamingStrategy(SNAKE_CASE);
251+
.setPropertyNamingStrategy(PropertyNamingStrategies.SNAKE_CASE);
252252
}
253253
}

0 commit comments

Comments
 (0)