RFR: JDK-8291974 PrivateCredentialPermission should not use local variable to enable debugging [v2]
    Florent Guillaume 
    duke at openjdk.org
       
    Tue Oct  4 22:17:12 UTC 2022
    
    
  
On Tue, 4 Oct 2022 21:59:14 GMT, Mark Powers <mpowers at openjdk.org> wrote:
>> 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.
@mcpowers the idea would be to use
    String a = """
            xxx\
            yyy\
        """;
-------------
PR: https://git.openjdk.org/jdk/pull/10206
    
    
More information about the security-dev
mailing list