On Mon, 11 Apr 2022 04:51:18 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> 
wrote:

> If this is true, then I guess we can remove `if (array[counter - 1] == '\r')` 
> check too as it is always true in windows.

If user uses system line separator then it vll be '\r\n' and it vll enter this 
loop, but if user manually enters \n in the string (unusual case) then it vll 
enter the else part....... To handle those unusual scenarios else case is 
required I guess.......

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

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

Reply via email to