mirror of
https://github.com/corda/corda.git
synced 2025-01-22 12:28:11 +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;
|
return cause;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void initCause(Throwable e) {
|
public Throwable initCause(Throwable e) {
|
||||||
if (cause == null) {
|
if (cause == null) {
|
||||||
cause = e;
|
cause = e;
|
||||||
|
return this;
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalStateException();
|
throw new IllegalStateException();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user