On Wed, 14 Sep 2022 16:03:48 GMT, Xue-Lei Andrew Fan <xue...@openjdk.org> wrote:
>> Hi, >> >> Please review this simple code cleanup. >> >> The following checking for key in the makeSessionKey() method is redundant >> as it the same checking has been performance before calling the method. >> >> >> if (k == null) { >> throw new InvalidKeyException("Empty key"); >> } >> if (!isKeySizeValid(k.length)) { >> throw new InvalidKeyException("Invalid AES key length: " + >> k.length + " bytes"); >> } >> >> >> No new regression test, simple cleanup. >> >> Thanks, >> Xuelei > > Xue-Lei Andrew Fan has updated the pull request incrementally with two > additional commits since the last revision: > > - remove unused throws in comment > - remove unused throws Marked as reviewed by mullan (Reviewer). ------------- PR: https://git.openjdk.org/jdk/pull/10263