On Wed, 9 Feb 2022 18:51:22 GMT, Andrey Turbanov <aturba...@openjdk.org> wrote:

> At start of method `b` is already checked for null.
> 
> https://github.com/openjdk/jdk/blob/178b962e01cc6c150442bf41dc6bd199caff0042/src/java.base/share/classes/java/io/LineNumberInputStream.java#L129-L131
> 
> Found by IntelliJ IDEA
> ![IDEA 
> warning](https://user-images.githubusercontent.com/741251/153844753-a36c7d4f-6fc1-4618-9d22-04541af155b2.png)

This pull request has now been integrated.

Changeset: 622970e4
Author:    Andrey Turbanov <aturba...@openjdk.org>
URL:       
https://git.openjdk.java.net/jdk/commit/622970e47cedd6e0b94b74235aa984ad79281389
Stats:     4 lines in 1 file changed: 0 ins; 2 del; 2 mod

8281728: Redundant null check in LineNumberInputStream.read

Reviewed-by: redestad

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

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

Reply via email to