Suppress false positives by adding the suppression annotation @SuppressWarnings("ThreadSafe") to the enclosing element.
@SuppressWarnings("ThreadSafe")