Class Assertions

java.lang.Object
org.elasticsearch.Assertions

public final class Assertions
extends java.lang.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 Summary

    Fields 
    Modifier and Type Field Description
    static boolean ENABLED  
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ENABLED

      public static final boolean ENABLED