Package org.elasticsearch
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
-