Skip to content

Commit

Permalink
Remove bogus @Nullable annotation from DataInputStream.read. (#69)
Browse files Browse the repository at this point in the history
I suspect that this was just an accident from the large initial commit
of Checker Framework annotations:
https://github.com/typetools/jdk/blame/f4d40f209b5b6e229199a6c134b105d54d9241dd/src/java.base/share/classes/java/io/DataInputStream.java#L113
  • Loading branch information
cpovirk authored Oct 7, 2024
1 parent 88b8ffc commit 416afad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/java.base/share/classes/java/io/DataInputStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public DataInputStream(InputStream in) {
* @see java.io.FilterInputStream#in
* @see java.io.InputStream#read(byte[], int, int)
*/
public final int read(byte @Nullable [] b) throws IOException {
public final int read(byte[] b) throws IOException {
return in.read(b, 0, b.length);
}

Expand Down

0 comments on commit 416afad

Please sign in to comment.