RFR: JDK-8291974 PrivateCredentialPermission should not use local variable to enable debugging [v2]
Mark Powers
mpowers at openjdk.org
Tue Oct 4 22:01:16 UTC 2022
On Tue, 4 Oct 2022 19:28:27 GMT, Sean Mullan <mullan at openjdk.org> wrote:
>> Or use string concatenation, e.g. "xxx" + "yyy".
>
> This looks like a good candidate for Text Blocks: https://openjdk.org/jeps/378
String a = """
xxx
yyy
""";
is not the same as
String a =
"xxx" +
"yyy"
;
`a` contains an embedded newline; `b` does not.
-------------
PR: https://git.openjdk.org/jdk/pull/10206
More information about the security-dev
mailing list