mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
Throwable.initCause should return 'this'
This commit is contained in:
parent
df20ce92f7
commit
86704591e7
@ -31,9 +31,10 @@ public class Throwable {
|
||||
return cause;
|
||||
}
|
||||
|
||||
public void initCause(Throwable e) {
|
||||
public Throwable initCause(Throwable e) {
|
||||
if (cause == null) {
|
||||
cause = e;
|
||||
return this;
|
||||
} else {
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user