On Thu, 22 May 2025 12:19:45 GMT, Krushna948 <d...@openjdk.org> wrote:

>> If this instance was configured with decryption, this method will return a 
>> new instance configured with decryption and the factory provider.  I use "a 
>> copy" so the user knows they are adding a new configuration and this 
>> instance is staying the same
>
> It's little confusing Returns a copy here, and @return a new PEMEncoder 
> instance configured to the {@code Provider}.
> Technically it's a new instance by any means ?

Yes, it's a new instance that copies the configuration.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/17543#discussion_r2112426415

Reply via email to