title: Should I declare Jackson's ObjectMapper as a static field?
body: <p>The Jackson library's <code>ObjectMapper</code> class <a href="https://www.programming-books.io/essential/java/using-jackson-object-mapper-abee93d1c8c645d5a31af402c11e7617" rel="noreferrer">seems to be thread safe</a>.</p>
  
  <p>Does this mean that I should declare my <code>ObjectMapper</code> as a static field like this</p>
  
  <pre><code>class Me {
      private static final ObjectMapper mapper = new ObjectMapper();
  }
  </code></pre>
  
  <p>instead of as an instance-level field like this?</p>
  
  <pre><code>class Me {
      private final ObjectMapper mapper = new ObjectMapper();
  }
  </code></pre>