error-prone
error-prone copied to clipboard
new check suggestion: Throwable self-suppression
This snippet unconditionally throws an IllegalStateException and could be statically detected:
Throwable t = new Throwable();
t.addSuppressed(t);