Skip to content

Instantly share code, notes, and snippets.

@gnodet
Created September 13, 2010 16:46
Show Gist options
  • Save gnodet/577579 to your computer and use it in GitHub Desktop.
Save gnodet/577579 to your computer and use it in GitHub Desktop.
private static final SecurityManagerEx sm = new SecurityManagerEx();
private transient Class[] classContext = sm.getThrowableContext(this);
==============
private static final SecurityManagerEx sm;
static {
try {
sm = new SecurityManagerEx();
} catch (THrowable t) {
sm = null;
}
private transient Class[] classContext = sm != null ? sm.getThrowableContext(this) : null;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment