コード例 #1
0
 @Override // since 2.6
 public String[] findPropertiesToIgnore(Annotated ac, boolean forSerialization) {
   JsonIgnoreProperties ignore = _findAnnotation(ac, JsonIgnoreProperties.class);
   if (ignore == null) {
     return null;
   }
   // 13-May-2015, tatu: As per [databind#95], allow read-only/write-only props
   if (forSerialization) {
     if (ignore.allowGetters()) {
       return null;
     }
   } else {
     if (ignore.allowSetters()) {
       return null;
     }
   }
   return ignore.value();
 }
コード例 #2
0
 @Override
 @Deprecated // since 2.6, remove from 2.7 or later
 public String[] findPropertiesToIgnore(Annotated ac) {
   JsonIgnoreProperties ignore = _findAnnotation(ac, JsonIgnoreProperties.class);
   return (ignore == null) ? null : ignore.value();
 }