Skip to content

Commit

Permalink
Remove null check before calling initCause
Browse files Browse the repository at this point in the history
  • Loading branch information
GoeLin committed Feb 21, 2025
1 parent 705540f commit a335e4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,7 @@ private void readObject(ObjectInputStream stream)
c = decode(encodedKeyIntern);
} catch (IOException e) {
InvalidObjectException ioe = new InvalidObjectException("Invalid encoding");
if (ioe != null) {
ioe.initCause(e);
}
ioe.initCause(e);
throw ioe;
}
if (!Arrays.equals(c.key, key) || !c.x.equals(x) || !c.p.equals(p)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,7 @@ private void readObject(ObjectInputStream stream)
c = decode(encodedKeyIntern);
} catch (IOException e) {
InvalidObjectException ioe = new InvalidObjectException("Invalid encoding");
if (ioe != null) {
ioe.initCause(e);
}
ioe.initCause(e);
throw ioe;
}
if (!Arrays.equals(c.key, key) || !c.y.equals(y) || !c.p.equals(p)
Expand Down

0 comments on commit a335e4f

Please sign in to comment.