java.util classes. The detection is turned on or off based on
whether the system property org.openjdk.java.util.stream.tripwire is
considered true according to Boolean#getBoolean(String).
This should normally be turned off for production use.
API Note
Typical usage would be for boxing code to do:
if (Tripwire.ENABLED)
Tripwire.trip(getClass(), "{0} calling PrimitiveIterator.OfInt.nextInt()");
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final boolean | ENABLED
Should debugging checks be enabled? |
| private static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static void | trip(Class<?>
Name of the class generating the message trippingClass, String A message format string of the type expected by
msg)PlatformLoggerProduces a log warning, using |
| ENABLED | back to summary |
|---|---|
| pack-priv static final boolean ENABLED Should debugging checks be enabled? | |
| TRIPWIRE_PROPERTY | back to summary |
|---|---|
| private static final String TRIPWIRE_PROPERTY | |
| Tripwire | back to summary |
|---|---|
| private Tripwire() | |
| trip | back to summary |
|---|---|
| pack-priv static void trip(Class<?> trippingClass, String msg) Produces a log warning, using
| |