RFR: JDK-8285263 Minor cleanup could be done in java.security [v5]

Mark Powers duke at openjdk.java.net
Fri Jun 10 21:15:05 UTC 2022


On Wed, 8 Jun 2022 16:01:48 GMT, Weijun Wang <weijun at openjdk.org> wrote:

>> Mark Powers has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 11 commits:
>> 
>>  - Merge
>>  - fourth iteration
>>  - Merge
>>  - Merge
>>  - third iteration
>>  - Merge
>>  - Merge
>>  - second iteration
>>  - Merge
>>  - Merge
>>  - ... and 1 more: https://git.openjdk.org/jdk/compare/4d6fb515...44140a01
>
> src/java.base/share/classes/java/security/Security.java line 260:
> 
>> 258:         }
>> 259: 
>> 260:         return null;
> 
> If `entry` is always null, then we don't need to declare it at all.

Agreed.

-------------

PR: https://git.openjdk.org/jdk/pull/8319



More information about the security-dev mailing list