You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix NullInputStream available(), close(), and read()
- Deprecate NullInputStream.INSTANCE in favor of constructors
- close() does not close
- available() should return 0 after close()
- read() should return -1 after close()
- add init()
Copy file name to clipboardExpand all lines: src/changes/changes.xml
+14-10Lines changed: 14 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,7 @@ The <action> type attribute can be add,update,fix,remove.
52
52
<actiondev="ggregory"type="add"issue="IO-831"due-to="Elliotte Rusty Harold, Thach Le, Gary Gregory">Add getInputStream() for 'https' and 'http' in URIOrigin #630.</action>
<actiondev="ggregory"type="fix"due-to="Gary Gregory">Add missing unit tests.</action>
57
58
<actiondev="ggregory"type="fix"due-to="Gary Gregory">FileUtils.lastModifiedFileTime(File) calls Objects.requireNonNull() on the wrong object.</action>
@@ -61,16 +62,19 @@ The <action> type attribute can be add,update,fix,remove.
61
62
<actiondev="ggregory"type="fix"due-to="sullis">Add test for CircularByteBuffer clear() #620.</action>
62
63
<actiondev="ggregory"type="fix"due-to="Gary Gregory">PathUtils.isPosix(Path, LinkOption...) should return false on null input.</action>
63
64
<actiondev="ggregory"type="fix"due-to="Gary Gregory">AutoCloseInputStream(InputStream) uses ClosedInputStream.INSTANCE when its input is null.</action>
64
-
<actiondev="ggregory"type="add"due-to="Gary Gregory">Avoid NullPointerException in ProxyInputStream.available() when the underlying input stream is null.</action>
65
-
<actiondev="ggregory"type="add"due-to="Gary Gregory">BufferedFileChannelInputStream.available() returns 0 before any reads.</action>
66
-
<actiondev="ggregory"type="add"due-to="Gary Gregory">BufferedFileChannelInputStream.available() should return 0 when the stream is closed instead of throwing an exception.</action>
67
-
<actiondev="ggregory"type="add"due-to="Gary Gregory">CharSequenceInputStream.available() should return 0 after the stream is closed.</action>
68
-
<actiondev="ggregory"type="add"due-to="Gary Gregory">BoundedInputStream.available() should return 0 when the stream is closed.</action>
69
-
<actiondev="ggregory"type="add"due-to="Gary Gregory">CircularInputStream.available() should return 0 when the stream is closed.</action>
70
-
<actiondev="ggregory"type="add"due-to="Gary Gregory">InfiniteCircularInputStream.available() should return 0 when the stream is closed.</action>
71
-
<actiondev="ggregory"type="add"due-to="Gary Gregory">ChecksumInputStream(InputStream, Checksum, long, long) should fail-fast on null Checksum input.</action>
72
-
<actiondev="ggregory"type="add"due-to="Gary Gregory">BufferedFileChannelInputStream.read() should return -1 after the stream is closed.</action>
73
-
<actiondev="ggregory"type="add"due-to="Gary Gregory">BOMInputStream.read() should return -1 after the stream is closed.</action>
65
+
<actiondev="ggregory"type="fix"due-to="Gary Gregory">Avoid NullPointerException in ProxyInputStream.available() when the underlying input stream is null.</action>
66
+
<actiondev="ggregory"type="fix"due-to="Gary Gregory">BufferedFileChannelInputStream.available() returns 0 before any reads.</action>
67
+
<actiondev="ggregory"type="fix"due-to="Gary Gregory">BufferedFileChannelInputStream.available() should return 0 when the stream is closed instead of throwing an exception.</action>
68
+
<actiondev="ggregory"type="fix"due-to="Gary Gregory">CharSequenceInputStream.available() should return 0 after the stream is closed.</action>
69
+
<actiondev="ggregory"type="fix"due-to="Gary Gregory">BoundedInputStream.available() should return 0 when the stream is closed.</action>
70
+
<actiondev="ggregory"type="fix"due-to="Gary Gregory">CircularInputStream.available() should return 0 when the stream is closed.</action>
71
+
<actiondev="ggregory"type="fix"due-to="Gary Gregory">InfiniteCircularInputStream.available() should return 0 when the stream is closed.</action>
72
+
<actiondev="ggregory"type="fix"due-to="Gary Gregory">ChecksumInputStream(InputStream, Checksum, long, long) should fail-fast on null Checksum input.</action>
73
+
<actiondev="ggregory"type="fix"due-to="Gary Gregory">BufferedFileChannelInputStream.read() should return -1 after the stream is closed.</action>
74
+
<actiondev="ggregory"type="fix"due-to="Gary Gregory">BOMInputStream.read() should return -1 after the stream is closed.</action>
75
+
<actiondev="ggregory"type="fix"due-to="Gary Gregory">Deprecate NullInputStream.INSTANCE in favor of constructors.</action>
76
+
<actiondev="ggregory"type="fix"due-to="Gary Gregory">NullInputStream.available() should return 0 after the stream is closed.</action>
77
+
<actiondev="ggregory"type="fix"due-to="Gary Gregory">NullInputStream.read() should return -1 after the stream is closed.</action>
74
78
<!-- UPDATE -->
75
79
<actiondev="ggregory"type="update"due-to="Dependabot">Bump tests commons.bytebuddy.version from 1.14.13 to 1.14.17 #615, #621, #631, #635.</action>
76
80
<actiondev="ggregory"type="update"due-to="Dependabot">Bump tests commons-codec:commons-codec from 1.16.1 to 1.17.0.</action>
0 commit comments