From d079da627fbfe56498c3fe00e7b0698fa0b3230d Mon Sep 17 00:00:00 2001 From: Tatu Saloranta Date: Mon, 4 May 2026 11:09:29 -0700 Subject: [PATCH] Remove default value for @JsonApplyView.value --- .../jackson/annotation/JsonApplyView.java | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/fasterxml/jackson/annotation/JsonApplyView.java b/src/main/java/com/fasterxml/jackson/annotation/JsonApplyView.java index b3a78cac..8a2426c9 100644 --- a/src/main/java/com/fasterxml/jackson/annotation/JsonApplyView.java +++ b/src/main/java/com/fasterxml/jackson/annotation/JsonApplyView.java @@ -14,8 +14,15 @@ * @JsonApplyView(BasicView.class) * public MyValue value; * - * which would specify that property annotated would be processed - * using View identified by {@code BasicView.class}. + * which specifies that the property annotated (and nested values reach through it) + * would be processed using View identified by {@code BasicView.class}. + *

+ * It is also possible to disable View processing for given property by: + *

+ *  @JsonApplyView(JsonApplyView.NONE.class)
+ *  public MyValue fullValue;
+ *
+ * which similarly applies to properties reachable via {@code fullValue}. *

* Note: initially processing only covers serialization. * @@ -32,10 +39,11 @@ * special value {@link JsonApplyView.NONE} indicates that no View * should used. */ - public Class value() default NONE.class; + public Class value(); /** - * Special view indicating no views should be used for processing annotated property. + * Special view indicating no views should be used for processing annotated property: + * usually implemented by setting "Active View" to {@code null} value. */ static public interface NONE {} }