Condividi tramite


ClassLoader.ClearAssertionStatus Method

Definition

Sets the default assertion status for this class loader to false and discards any package defaults or class assertion status settings associated with the class loader.

[Android.Runtime.Register("clearAssertionStatus", "()V", "GetClearAssertionStatusHandler")]
public virtual void ClearAssertionStatus ();
[<Android.Runtime.Register("clearAssertionStatus", "()V", "GetClearAssertionStatusHandler")>]
abstract member ClearAssertionStatus : unit -> unit
override this.ClearAssertionStatus : unit -> unit
Attributes

Remarks

Sets the default assertion status for this class loader to false and discards any package defaults or class assertion status settings associated with the class loader. This method is provided so that class loaders can be made to ignore any command line or persistent assertion status settings and "start with a clean slate."

Android-note: AssertionStatuses are unsupported. This method is a no-op.

Added in 1.4.

Java documentation for java.lang.ClassLoader.clearAssertionStatus().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to