File tree 3 files changed +5
-17
lines changed
main/java/com/fasterxml/jackson/databind
test/java/com/fasterxml/jackson/databind/views
3 files changed +5
-17
lines changed Original file line number Diff line number Diff line change @@ -490,8 +490,6 @@ public TypeResolverBuilder<?> findPropertyContentTypeResolver(MapperConfig<?> co
490
490
* Method that can be called to check whether this member has
491
491
* an annotation that suggests whether value for matching property
492
492
* is required or not.
493
- *
494
- * @since 2.0
495
493
*/
496
494
public Boolean hasRequiredMarker (AnnotatedMember m ) { return null ; }
497
495
@@ -503,6 +501,9 @@ public TypeResolverBuilder<?> findPropertyContentTypeResolver(MapperConfig<?> co
503
501
* otherwise it will only be included for views included in returned
504
502
* array. View matches are checked using class inheritance rules (sub-classes
505
503
* inherit inclusions of super-classes)
504
+ *<p>
505
+ * Since 2.9 this method may also be called to find "default view(s)" for
506
+ * {@link AnnotatedClass}
506
507
*
507
508
* @param a Annotated property (represented by a method, field or ctor parameter)
508
509
* @return Array of views (represented by classes) that the property is included in;
Original file line number Diff line number Diff line change 6
6
7
7
public class TestViewDeserialization extends BaseMapTest
8
8
{
9
- /*
10
- /**********************************************************
11
- /* Helper types
12
- /**********************************************************
13
- */
14
-
15
9
// Classes that represent views
16
10
static class ViewA { }
17
11
static class ViewAA extends ViewA { }
Original file line number Diff line number Diff line change 14
14
public class TestViewSerialization
15
15
extends BaseMapTest
16
16
{
17
- /*
18
- /**********************************************************
19
- /* Helper types
20
- /**********************************************************
21
- */
22
-
23
17
// Classes that represent views
24
18
static class ViewA { }
25
19
static class ViewAA extends ViewA { }
@@ -68,20 +62,19 @@ static class VisibilityBean {
68
62
public String value = "x" ;
69
63
}
70
64
71
- // [JACKSON-868]
72
65
public static class WebView { }
73
66
public static class OtherView { }
74
67
public static class Foo {
75
68
@ JsonView (WebView .class )
76
69
public int getFoo () { return 3 ; }
77
70
}
78
-
71
+
79
72
/*
80
73
/**********************************************************
81
74
/* Unit tests
82
75
/**********************************************************
83
76
*/
84
-
77
+
85
78
@ SuppressWarnings ("unchecked" )
86
79
public void testSimple () throws IOException
87
80
{
You can’t perform that action at this time.
0 commit comments