Class Assertions


public final class Assertions extends Object
Provides a static final field that can be used to check if assertions are enabled. Since this field might be used elsewhere to check if assertions are enabled, if you are running with assertions enabled for specific packages or classes, you should enable assertions on this class too (e.g., -ea org.elasticsearch.Assertions -ea org.elasticsearch.cluster.service.MasterService).
  • Field Details


      public static final boolean ENABLED