mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8281728: Redundant null check in LineNumberInputStream.read
Reviewed-by: redestad
This commit is contained in:
parent
11f943d148
commit
622970e47c
1 changed files with 2 additions and 4 deletions
|
@ -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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -149,10 +149,8 @@ public class LineNumberInputStream extends FilterInputStream {
|
||||||
if (c == -1) {
|
if (c == -1) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (b != null) {
|
|
||||||
b[off + i] = (byte)c;
|
b[off + i] = (byte)c;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} catch (IOException ee) {
|
} catch (IOException ee) {
|
||||||
}
|
}
|
||||||
return i;
|
return i;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue