Check for a behavior change in the java.io.LineNumberReader class

The definition of line terminator in the java.io.LineNumberReader class was changed in Java SE 16 to include end of stream as well as one of the previously defined terminators \n, \r, or \r\n followed by end of stream. For example, the following file contains one line under the previous definition but two lines under the new definition.

first line\n
second line

You will need to evaluate whether your application is affected by the behavior change and make any necessary updates.

For more information on this change, see Line Terminator Definition Changed in java.io.LineNumberReader.