mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8274079: Cleanup unnecessary calls to Throwable.initCause() in java.base module
Reviewed-by: weijun
This commit is contained in:
parent
8609ea55ac
commit
1459180f35
22 changed files with 55 additions and 132 deletions
|
@ -1712,9 +1712,7 @@ public class ObjectStreamClass implements Serializable {
|
|||
} else if (th instanceof Error) {
|
||||
throw (Error) th;
|
||||
} else {
|
||||
IOException ex = new IOException("unexpected exception type");
|
||||
ex.initCause(th);
|
||||
throw ex;
|
||||
throw new IOException("unexpected exception type", th);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue