title: Ignore Jackson @JsonFilter annotated on class
body: <p>I have the code below... I want Jackson to ignore the @JsonFilter on a class in the else condition below. I only want it to consider the @JsonFilter in the event I have some filters. </p>
  
  <pre><code>@JsonFilter("filter")
  public class Test {
  
  }
  
  
    if (filters != null)
          mapper.writer(filters).writeValue(jsonGenerator,
                  response.getOriginalResponse());
      else
          mapper.writeValue(jsonGenerator, response.getOriginalResponse());
  </code></pre>