RFR: JDK-8285504 Minor cleanup could be done in javax.net [v2]

Mark Powers duke at openjdk.java.net
Wed Apr 27 16:53:43 UTC 2022


On Tue, 26 Apr 2022 19:08:50 GMT, Weijun Wang <weijun at openjdk.org> wrote:

>> Mark Powers has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Alan Bateman comments
>
> src/java.base/share/classes/javax/net/ssl/SSLSocketFactory.java line 96:
> 
>> 94:                 s = s.trim();
>> 95:                 if (s.isEmpty()) {
>> 96:                     s = null;
> 
> According to the implementation of `Security::getProperty`. The return value is already trimmed.

Removed those lines.

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

PR: https://git.openjdk.java.net/jdk/pull/8384



More information about the security-dev mailing list