Skip to content

Commit 21e2002

Browse files
committed
Update release notes wrt #3609
1 parent 0809e7b commit 21e2002

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

release-notes/CREDITS-2.x

+5-1
Original file line numberDiff line numberDiff line change
@@ -1493,4 +1493,8 @@ Jordi Ortolá Ankum (Tomasito665@github)
14931493
Arnaud Solé (Bluexin@github)
14941494
* Contributed #3505: Fix deduction deserializer with DefaultTypeResolverBuilder
14951495
(2.14.0)
1496-
1496+
1497+
Richard Kwasnicki (Richie94@github)
1498+
* Contributed #3609: Allow non-boolean return type for "is-getters" with
1499+
`MapperFeature.ALLOW_IS_GETTERS_FOR_NON_BOOLEAN`
1500+
(2.14.0)

release-notes/VERSION-2.x

+3
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ Project: jackson-databind
6464
argument as `JsonPointer` if valid expression
6565
#3590: Add check in primitive value deserializers to avoid deep wrapper array
6666
nesting wrt `UNWRAP_SINGLE_VALUE_ARRAYS`
67+
#3609: Allow non-boolean return type for "is-getters" with
68+
`MapperFeature.ALLOW_IS_GETTERS_FOR_NON_BOOLEAN`
69+
(contributed by Richard K)
6770

6871
2.13.4 (03-Sep-2022)
6972

src/main/java/com/fasterxml/jackson/databind/MapperFeature.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -487,9 +487,11 @@ public enum MapperFeature implements ConfigFeature
487487
ALLOW_EXPLICIT_PROPERTY_RENAMING(false),
488488

489489
/**
490-
* Feature that when enabled will allow getters with is-Prefix also for non-boolean return types.
490+
* Feature that when enabled will allow getters with is-Prefix also for
491+
* non-boolean return types; if disabled only methods that return
492+
* {@code boolean} or {@code Boolean} qualify as "is getters".
491493
* <p>
492-
* Feature is disabled by default.
494+
* Feature is disabled by default for backwards compatibility.
493495
*
494496
* @since 2.14
495497
*/

src/main/java/com/fasterxml/jackson/databind/introspect/DefaultAccessorNamingStrategy.java

+4
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ public interface BaseNameValidator {
4444
protected final boolean _isGettersNonBoolean;
4545

4646
protected final String _getterPrefix;
47+
48+
/**
49+
* @since 2.14
50+
*/
4751
protected final String _isGetterPrefix;
4852

4953
/**

0 commit comments

Comments
 (0)