1 package com.fasterxml.jackson.databind.introspect;
2
3 import com.fasterxml.jackson.core.Version;
4
5 import com.fasterxml.jackson.databind.*;
6
7 /**
8  * Dummy, "no-operation" implementation of {@link AnnotationIntrospector}.
9  * Can be used as is to suppress handling of annotations; or as a basis
10  * for simple configuration overrides (whether based on annotations or not).
11  */

12 public abstract class NopAnnotationIntrospector
13     extends AnnotationIntrospector
14     implements java.io.Serializable
15 {
16     private static final long serialVersionUID = 1L;
17
18     /**
19      * Static immutable and shareable instance that can be used as
20      * "null" introspector: one that never finds any annotation
21      * information.
22      */

23     public final static NopAnnotationIntrospector instance = new NopAnnotationIntrospector() {
24         private static final long serialVersionUID = 1L;
25
26         @Override
27         public Version version() {
28             return com.fasterxml.jackson.databind.cfg.PackageVersion.VERSION;
29         }
30     };
31
32     @Override
33     public Version version() {
34         return Version.unknownVersion();
35     }
36 }
37