RFR: JDK-8291509 Minor cleanup could be done in sun.security [v6]
Weijun Wang
weijun at openjdk.org
Tue Sep 6 17:56:02 UTC 2022
On Tue, 6 Sep 2022 16:59:38 GMT, Sean Mullan <mullan at openjdk.org> wrote:
>> Mark Powers has updated the pull request incrementally with one additional commit since the last revision:
>>
>> white space
>
> src/java.base/share/classes/sun/security/provider/PolicyParser.java line 1180:
>
>> 1178: // and then in a java string, it's escaped again
>> 1179:
>> 1180: out.print(name.replaceAll("\\\\", "\\\\\\\\").replaceAll("\"", "\\\\\\\""));
>
> Why does IJ say this is the same? This appears to replace backslash-quote with quote.
My understanding: In regex, there is no need to escape `"`, so `"` is the same as `"`.
-------------
PR: https://git.openjdk.org/jdk/pull/9972
More information about the security-dev
mailing list