RFR: 8002277: Refactor two PBE classes to simplify maintenance [v7]
Valerie Peng
valeriep at openjdk.java.net
Fri May 13 18:54:57 UTC 2022
On Thu, 12 May 2022 15:03:40 GMT, Weijun Wang <weijun at openjdk.org> wrote:
>> Valerie Peng has updated the pull request incrementally with one additional commit since the last revision:
>>
>> trivial syntax fix.
>
> src/java.base/share/classes/com/sun/crypto/provider/PKCS12PBECipherCore.java line 363:
>
>> 361: return core.implGetParameters();
>> 362: }
>> 363: @Override
>
> These 3 methods are the same in 3 classes. I wish we had a way to simplify this but I don't know myself.
Me neither. However, the refactoring is already reduced quite some code (~300 lines less for the two PBE classes), just can't be 100% lean.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8521
More information about the security-dev
mailing list