Skip to content

Commit dabf4b5

Browse files
committed
minor javadoc cleanup
1 parent 52c52a5 commit dabf4b5

File tree

3 files changed

+5
-17
lines changed

3 files changed

+5
-17
lines changed

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -490,8 +490,6 @@ public TypeResolverBuilder<?> findPropertyContentTypeResolver(MapperConfig<?> co
490490
* Method that can be called to check whether this member has
491491
* an annotation that suggests whether value for matching property
492492
* is required or not.
493-
*
494-
* @since 2.0
495493
*/
496494
public Boolean hasRequiredMarker(AnnotatedMember m) { return null; }
497495

@@ -503,6 +501,9 @@ public TypeResolverBuilder<?> findPropertyContentTypeResolver(MapperConfig<?> co
503501
* otherwise it will only be included for views included in returned
504502
* array. View matches are checked using class inheritance rules (sub-classes
505503
* 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}
506507
*
507508
* @param a Annotated property (represented by a method, field or ctor parameter)
508509
* @return Array of views (represented by classes) that the property is included in;

src/test/java/com/fasterxml/jackson/databind/views/TestViewDeserialization.java

-6
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
66

77
public class TestViewDeserialization extends BaseMapTest
88
{
9-
/*
10-
/**********************************************************
11-
/* Helper types
12-
/**********************************************************
13-
*/
14-
159
// Classes that represent views
1610
static class ViewA { }
1711
static class ViewAA extends ViewA { }

src/test/java/com/fasterxml/jackson/databind/views/TestViewSerialization.java

+2-9
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@
1414
public class TestViewSerialization
1515
extends BaseMapTest
1616
{
17-
/*
18-
/**********************************************************
19-
/* Helper types
20-
/**********************************************************
21-
*/
22-
2317
// Classes that represent views
2418
static class ViewA { }
2519
static class ViewAA extends ViewA { }
@@ -68,20 +62,19 @@ static class VisibilityBean {
6862
public String value = "x";
6963
}
7064

71-
// [JACKSON-868]
7265
public static class WebView { }
7366
public static class OtherView { }
7467
public static class Foo {
7568
@JsonView(WebView.class)
7669
public int getFoo() { return 3; }
7770
}
78-
71+
7972
/*
8073
/**********************************************************
8174
/* Unit tests
8275
/**********************************************************
8376
*/
84-
77+
8578
@SuppressWarnings("unchecked")
8679
public void testSimple() throws IOException
8780
{

0 commit comments

Comments
 (0)