8281728: Redundant null check in LineNumberInputStream.read

Reviewed-by: redestad
This commit is contained in:
Andrey Turbanov 2022-02-15 07:10:10 +00:00
parent 11f943d148
commit 622970e47c

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1995, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -149,9 +149,7 @@ public class LineNumberInputStream extends FilterInputStream {
if (c == -1) {
break;
}
if (b != null) {
b[off + i] = (byte)c;
}
b[off + i] = (byte)c;
}
} catch (IOException ee) {
}