Skip to content

Commit

Permalink
Fix #2880 by reverting part of change for #2715 (reintroduce deprecat…
Browse files Browse the repository at this point in the history
…ed constants)
  • Loading branch information
cowtowncoder committed Oct 13, 2020
1 parent bb15151 commit 63af35e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions release-notes/VERSION-2.x
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Project: jackson-databind

#2878: Revert change initially made to fix #2805: change in signature
of `ObjectMapper.treeToValue()` regarding exceptions
#2880: Revert removal of 2.7-deprecated `PropertyNamingStrategy` constants
(reported by brettkail-wk@github)

2.12.0-rc1 (12-Oct-2020)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -387,4 +387,34 @@ public String translate(String input){
return translateLowerCaseWithSeparator(input, '.');
}
}

/*
/**********************************************************
/* Deprecated variants, aliases
/**********************************************************
*/

/**
* @deprecated Since 2.7 use {@link PropertyNamingStrategies#SNAKE_CASE} instead.
*/
@Deprecated // since 2.7
public static final PropertyNamingStrategy CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES = SNAKE_CASE;

/**
* @deprecated Since 2.7 use {@link PropertyNamingStrategies#UPPER_CAMEL_CASE} instead;
*/
@Deprecated // since 2.7
public static final PropertyNamingStrategy PASCAL_CASE_TO_CAMEL_CASE = UPPER_CAMEL_CASE;

/**
* @deprecated In 2.7 use {@link PropertyNamingStrategies#SnakeCaseStrategy} instead
*/
@Deprecated // since 2.7
public static class LowerCaseWithUnderscoresStrategy extends SnakeCaseStrategy {}

/**
* @deprecated In 2.7 use {@link PropertyNamingStrategies#UpperCamelCaseStrategy} instead
*/
@Deprecated // since 2.7
public static class PascalCaseStrategy extends UpperCamelCaseStrategy { }
}

0 comments on commit 63af35e

Please sign in to comment.