AnnotationHandlers { static void clearHandlers() { synchronized (LOCK) { if (handlers != null) { handlers.clear(); handlers = null; } } } AnnotationHandlers(); @SuppressWarnings({"unchecked", "ConstantConditions"}) @Nullable static T obtainHandler(@NonNull final Class<T> classOfHandler, @NonNull final Class<?> annotatedClass);  }
@Test public void testClearHandlersWhenAlreadyCleared() { AnnotationHandlers.clearHandlers(); AnnotationHandlers.clearHandlers(); }