Example usage for java.lang ClassLoader setDefaultAssertionStatus

List of usage examples for java.lang ClassLoader setDefaultAssertionStatus

Introduction

In this page you can find the example usage for java.lang ClassLoader setDefaultAssertionStatus.

Prototype

public void setDefaultAssertionStatus(boolean enabled) 

Source Link

Document

Sets the default assertion status for this class loader.

Usage

From source file:Main.java

public static void main(String[] args) {
    ClassLoader cl = ClassLoader.getSystemClassLoader();
    cl.setDefaultAssertionStatus(true);
    new Loaded().go();
}

From source file:com.galeoconsulting.leonardinius.api.impl.ChainingClassLoader.java

@Override
public synchronized void setDefaultAssertionStatus(boolean enabled) {
    for (ClassLoader classloader : classLoaders) {
        classloader.setDefaultAssertionStatus(enabled);
    }/*w  w w .  jav  a  2  s. c  o  m*/
}