This is an automated email from the ASF dual-hosted git repository.
garydgregory pushed a change to branch release
in repository https://gitbox.apache.org/repos/asf/commons-io.git
omit 7874bc8ed Prepare for the release candidate 2.22.0 RC1
add ed2de7535 [IO-884] IOUtils.contentEquals(Reader,Reader) makes an
invalid assumption about read return value
add 2862268d9 Bump commons.rc.version from RC1 to RC2
add 1fe472cf1 Bump commons.bytebuddy.version from 1.18.3 to 1.18.4
add a207334e2 Bump org.apache.commons:commons-parent from 95 to 96
add 283db9f37 Bump actions/setup-java from 5.1.0 to 5.2.0
add 3901b51c0 Add IOUtilsTest.testToByteArray_InputStream_Empty()
add 7bc386f86 Add JUnit assertions
add a9a571d27 Bump actions/checkout from 6.0.1 to 6.0.2
add f8e233273 Rename new method
add 60a5f9891 Sort members
add 9c6ed7a9e Merge if expressions that have the same true block
add 994da0a26 Prepare for the next release candidate
add 40b954f7a Bump github/codeql-action from 4.31.10 to 4.31.11
add 2eb4ff6a6 Rename new method
add e026bf9cd ReadAheadInputStream now restores the current thread's
interrupt flag when catching InterruptedException
add ec8254e46 Update test to match InterruptedException guidelines
add 35cf21fae Update test to match InterruptedException guidelines
add dc6542951 Update test to match InterruptedException guidelines
add a1ed47cf6 Update test to match InterruptedException guidelines
add c9e7cd748 Update test to match InterruptedException guidelines
add e6ada9779 FileAlterationMonitor.stop(long) now restores the current
thread's interrupt flag when catching InterruptedException.
add c1f13a503 FileCleaningTracker now restores the current thread's
interrupt flag when catching InterruptedException.
add a2f3ab9dd ThreadMonitor.run() now restores the current thread's
interrupt flag when catching InterruptedException.
add 82a97a547 ThrottledInputStream.throttle() now restores the current
thread's interrupt flag when catching InterruptedException.
add e061d95bb Bump github/codeql-action from 4.31.11 to 4.32.0
add b83664fab Bump commons-codec:commons-codec from 1.20.0 to 1.21.0.
add ada974465 ThrottledInputStream.throttle() doesn't preserve the
original InterruptedException as the cause of its InterruptedIOException
add b6629582f Test fix for ReadAheadInputStream now restores the current
thread's interrupt flag when catching InterruptedException.
add 9882f7d94 Change timeout for testCloseInterrupt to 30 seconds
add ef2c5e3c5 Better internal name
add e69cedbc3 Push down null invariant check and Javadoc.
add 12d849263 Javadoc
add 9df1e7ffa Better internal typing
add eabcbf5e9 Javadoc and comments
add 70ad75d71 Make internal class final
add 58909e8e3 Better test name
add 8bae73649 Better internal names
add b44a56419 Javadoc
add 6eb4fa078 Give test threads better names for debugging
add 107ca91f7 Give threads better names for debugging
add 66d299a28 Simplify expression
add 61fd1a57d Document recent change.
add 948923711 Javadoc
add ce78b3c75 Remove type cast
add d19966011 Javadoc
add 61216e59b Split out copy tests out of PathUtilsTest into a new class
PathUtilsCopyTest.
add b46789625 Javadoc
add cf1246f4d Follow JUnit 5 convention for method visibility
add b398cc0f1 Remove unused import
add 7a86d112b Delete temporary directory after each test
add bffc7259a Refactor test assertions.
add 2d56ea59c Test should clean up after itself better.
add 29392cd55 Bump github/codeql-action from 4.32.0 to 4.32.2
add e2f7a3e2b Use max-parallel: 20 as asked by Apache Infra
add 239d136ba IO-639: Fixed ReversedLinesFileReader does not read first
line if it's empty (#829)
add 4708e989c [IO-639] ReversedLinesFileReader does not read first line if
it's empty
add 8df502d23 Wrap calculations to show how they are constructed
add 3163c625b Bump actions/cache from 5.0.2 to 5.0.3
add 3cc801f26 IO-886 Replaced incorrect regular expression replaceAll with
plain replace (#828)
add d7f1943aa [IO-886] Fixed incorrect regular expression in
PathUtils.RelativeSortedPaths.extractKey(String, String). #828
add 511a6c35e Fix typo in test method file name
add 32716754c Normalize Javadoc spelling
add 31149134d Add timeout support to
`AbstractOrigin.URIOrigin.getInputStream(OpenOption...)` (#831)
add 723ee034b Bump github/codeql-action from 4.32.2 to 4.32.3
add 01641e812 Don't use the Maven target folder as a temporary test
fixture.
add f8c9f5ba9 Don't use the Maven target folder as a temporary test
fixture.
add a6e417f43 Don't use the Maven name "target" for a test fixture to
avoid confusion
add 206dfdb2b Don't use the Maven "target" directory as a test fixture.
add 5fd2bb382 Don't use the Maven "target" directory as a test fixture.
add dd6266db6 Don't use the Maven "target" directory as a test fixture.
add d817d8820 Try to address link issue on GitHub
add b63f1f558 On GitHub CI on Windows, the cloned repository is on a
different volume than the Java temporary directory.
add c5c152e05 Allowance for Java 25, GitHub CI on Windows, when cloned
repository is on a different volume than the Java temporary directory.
add d355890c4 Javadoc
add 2aac01048 Let JUnit manage the temporary directory tree.
add 2dd12489d Bump github/codeql-action from 4.32.0 to 4.32.4
add b6092f601 Bump org.apache.commons:commons-parent from 96 to 97.
add 9eef094c2 Split test
add 744db000d Use assertThrows().
add d4032376f Import instead of using a FQCN
add 92c4ec4cc Use assertThrows().
add 23005542e Bump github/codeql-action from 4.32.4 to 4.32.5
add 4e93f50b3 Bump github/codeql-action from 4.32.5 to 4.32.6
add 6e463b997 Fix typos in Javadoc of FileUtils and related test classes
(#833)
add 54b29bf04 Fix typos in Javadoc of FileUtils and related test classes
#833
add 7d389e09f Bump actions/upload-artifact from 6.0.0 to 7.0.0
add 5edc4f31b Comment
add 1daddcf71 Remove @SuppressWarnings
add 56ab30447 Simplify test names
add 2ab3e9c37 Add ProxyWriter.setReference(Writer)
add c5b2f7c57 Bump commons.bytebuddy.version from 1.18.4 to 1.18.7.
add f115b1054 Add ProxyReader.setReference(Reader)
add 8fb3ee7cb Add tests
add a475675f2 Make ProxyOutputStream.unrwap() public
add 5d98b952e Add ProxyWriter.unwrap()
add faac3725a Javadoc
add 350a4bff8 Javadoc
add 1f4332aa6 [IO-887] WriterOutputStream fails on malformed input by
default for Cp850 input bytes.
add 0e74b70fb [IO-887] WriterOutputStream fails on malformed input by
default for malformed or unmappable input bytes
add fc19e6727 [IO-887] WriterOutputStream from a builder fails on
malformed or unmappable input bytes
add be9252459 Internal refactoring.
add af79add64 Javadoc
add 1534ecf73 Rename test variables
add 489490961 BoundedReader now extends ProxyReader
add b6f03df13 Rename internal methods
add 368a3991e Add reference to "Safe Deserialization" section
add a58bee3c9 Add missing test.
add 1b611a9f5 Javadoc
add 3e462135b Javadoc
add 84a9583fb Extra processing not needed
add a49555745 Bump github/codeql-action from 4.32.6 to 4.34.0
add d4bfb6f42 Javadoc
add f47d9346a Don't initialize instance variables to default values
add 9248954fc Javadoc
add ea8c10de5 Reuse IOUtils.buffer(Reader)
add da9055b94 [IO-885] Path visits follow links (#832)
add 53c5c3579 [IO-885] Path visits follow links #832
add bfb06f859 Use BOMInputStream type in tests
add 6fde09261 Javadoc
add cd5765aca [IO-883] ByteArraySeekableByteChannel should optionally
configure a read-only channel (#834)
add 3a47f3927 BOMInputStream fail-fast and tracks its ByteOrderMark as a
final (#835)
add 066800bda BOMInputStream fail-fast and tracks its ByteOrderMark as a
final #835.
add 53a338abd Match internal naming with WindowsLineEndingInputStream
add 90469ef86 Refactor UnixLineEndingInputStream and
WindowsLineEndingInputStream to reduce duplication.
add 039033864 Javadoc
add 5fe205681 [IO-857"][Javadoc] PathUtils.cleanDirectory() methods vs
FileUtils.
add 9dc9e5983 [IO-857"][Javadoc] PathUtils.cleanDirectory() methods vs
FileUtils.
add 248e10eb7 Bump github/codeql-action from 4.34.0 to 4.34.1
add e4d853767 CloseShieldInputStream now supports a custom close shield as
a function (#836)
add 736cd5373 CloseShieldInputStream now supports a custom close shield as
a function #836
add 8882df3d5 Bump Bump actions/cache from 5.0.3 to 5.0.4
add 51271bfdf Bump actions/dependency-review-action from 4.8.2 to 4.9.0
add 09477eaba Bump github/codeql-action from 4.34.1 to 4.35.1
add 022a83ec0 Bump commons.bytebuddy.version from 1.18.7 to 1.18.8 (#838)
add c778bf76e Bump commons.bytebuddy.version from 1.18.7 to 1.18.8 #838
add e734b307d Remove useless lambda block.
add d731559a8 Make the test more lenient with timing.
add cb7951167 Use static imports only for JUnit
add c9fd28986 Reset commons.rc.version
add 6a4d8677e Reset release date for the next release
add 144edb722 Javadoc
add 8259e6ff9 Javadoc
add d4c40de7e Javadoc
add 38150616a Javadoc
add 76feb708d Javadoc
add 0d8768b6e Add FlushShieldOutputStream (#841)
add 25f00210e Add FlushShieldOutputStrea to workaround issues in generic
code that ends up calling third parties like like
org.tukaani.xz.LZMAOutputStream.flush()
add 8b947091b Add FlushShieldOutputStream to workaround issues in generic
code that ends up calling third parties like like
org.tukaani.xz.LZMAOutputStream.flush()
add 3d1b9dc1c Feature/channel filters (#837)
add 853b91cf6 Add filter channels.
add 530e346bf Bump org.apache.commons:commons-parent from 97 to 98
add 2ab33b4c1 [IO- 889] Add test for Tailer close() (#842)
add 93de0e4eb Add CloseShieldChannelFilterByteChannelTest
add ec308acc2 Fix Javadoc typo
add f96d650e9 Javadoc
add 01de46e5b Update Javadoc and constructors in the channels package
(#843)
add db99d0238 Bump actions/cache from 5.0.4 to 5.0.5
add 738d8edda Bump actions/upload-artifact from 7.0.0 to 7.0.1
add 61e347b6f Fix JaCoCo report generation
add 6857f3858 Add missing test for
UnsynchronizedBufferedReader.UnsynchronizedBufferedReader(Reader, int)
add 443f21daf Add missing test for UnsynchronizedBufferedReader.mark(int)
add 354e37c79 Add missing test for UnsynchronizedBufferedReader.skip(int)
add a7cc1bab7 AbstractStreamBuilder.setBufferSizeDefault(int) now resets
to default for input less than or equal to zero.
add 5ee4bc461 Better action description.
add d4d257328 Bump github/codeql-action from 4.35.1 to 4.35.2
add 7cc1ede58 Sort members
add d9184ed63 Use final
add 43b99945e Prepare for the next release candidate
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (7874bc8ed)
\
N -- N -- N refs/heads/release (43b99945e)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
No new revisions were added by this update.
Summary of changes:
.github/workflows/codeql-analysis.yml | 11 +-
.github/workflows/dependency-review.yml | 4 +-
.github/workflows/maven.yml | 7 +-
.github/workflows/scorecards-analysis.yml | 6 +-
RELEASE-NOTES.txt | 149 +++
pom.xml | 13 +-
src/changes/changes.xml | 41 +-
src/changes/release-notes.vm | 1 +
src/main/java/org/apache/commons/io/Charsets.java | 59 +-
.../java/org/apache/commons/io/EndianUtils.java | 39 +-
.../java/org/apache/commons/io/FileCleaner.java | 2 +-
.../org/apache/commons/io/FileCleaningTracker.java | 39 +-
.../org/apache/commons/io/FileDeleteStrategy.java | 2 +-
.../java/org/apache/commons/io/FileSystem.java | 7 +-
src/main/java/org/apache/commons/io/FileUtils.java | 19 +-
.../java/org/apache/commons/io/FilenameUtils.java | 77 +-
src/main/java/org/apache/commons/io/IOCase.java | 4 +-
src/main/java/org/apache/commons/io/IOUtils.java | 1348 +++++++++-----------
.../java/org/apache/commons/io/LineIterator.java | 9 +-
.../java/org/apache/commons/io/ThreadMonitor.java | 3 +-
.../apache/commons/io/build/AbstractOrigin.java | 118 +-
.../commons/io/build/AbstractStreamBuilder.java | 30 +-
.../io/channels/ByteArraySeekableByteChannel.java | 93 +-
.../commons/io/channels/CloseShieldChannel.java | 12 +-
.../io/channels/CloseShieldChannelHandler.java | 5 +-
.../apache/commons/io/channels/FileChannels.java | 5 +-
.../commons/io/channels/FilterByteChannel.java | 125 ++
.../apache/commons/io/channels/FilterChannel.java | 146 +++
.../commons/io/channels/FilterFileChannel.java} | 92 +-
.../io/channels/FilterReadableByteChannel.java | 120 ++
.../io/channels/FilterSeekableByteChannel.java | 134 ++
.../io/channels/FilterWritableByteChannel.java | 120 ++
.../commons/io/file/CountingPathVisitor.java | 3 +-
.../java/org/apache/commons/io/file/PathUtils.java | 20 +-
.../commons/io/file/StandardDeleteOption.java | 2 +-
.../commons/io/filefilter/AndFileFilter.java | 3 +-
.../io/filefilter/CanExecuteFileFilter.java | 2 +-
.../commons/io/filefilter/CanReadFileFilter.java | 2 +-
.../commons/io/filefilter/CanWriteFileFilter.java | 3 +-
...eam.java => AbstractLineEndingInputStream.java} | 58 +-
.../apache/commons/io/input/BOMInputStream.java | 163 +--
.../org/apache/commons/io/input/BoundedReader.java | 37 +-
.../apache/commons/io/input/BrokenInputStream.java | 2 +-
.../io/input/BufferedFileChannelInputStream.java | 5 +-
.../commons/io/input/CloseShieldInputStream.java | 69 +-
.../java/org/apache/commons/io/input/Input.java | 22 +-
.../apache/commons/io/input/ProxyInputStream.java | 7 +-
.../org/apache/commons/io/input/ProxyReader.java | 37 +-
.../commons/io/input/ReadAheadInputStream.java | 19 +-
.../apache/commons/io/input/ReaderInputStream.java | 8 +-
.../commons/io/input/ReversedLinesFileReader.java | 27 +-
.../commons/io/input/TailerListenerAdapter.java | 2 +-
.../commons/io/input/ThrottledInputStream.java | 26 +-
.../io/input/UnixLineEndingInputStream.java | 44 +-
.../input/UnsynchronizedByteArrayInputStream.java | 6 +-
.../io/input/WindowsLineEndingInputStream.java | 34 +-
.../apache/commons/io/input/XmlStreamReader.java | 271 ++--
.../commons/io/monitor/FileAlterationMonitor.java | 6 +-
.../io/output/AbstractByteArrayOutputStream.java | 4 +-
.../commons/io/output/ByteArrayOutputStream.java | 8 +-
.../commons/io/output/ChunkedOutputStream.java | 2 +-
.../io/output/DeferredFileOutputStream.java | 4 +-
.../commons/io/output/FileWriterWithEncoding.java | 2 +-
.../commons/io/output/FlushShieldOutputStream.java | 119 ++
.../commons/io/output/ProxyOutputStream.java | 11 +-
.../org/apache/commons/io/output/ProxyWriter.java | 37 +-
.../UnsynchronizedByteArrayOutputStream.java | 8 +-
.../commons/io/output/WriterOutputStream.java | 32 +-
.../io/serialization/FullClassNameMatcher.java | 3 +-
.../serialization/ValidatingObjectInputStream.java | 47 +-
.../commons/io/serialization/package-info.java | 2 +
src/site/xdoc/security.xml | 5 +
.../apache/commons/io/FileCleaningTrackerTest.java | 64 +-
.../org/apache/commons/io/FileSystemUtilsTest.java | 8 +-
.../commons/io/FileUtilsCleanDirectoryTest.java | 21 +-
.../commons/io/FileUtilsCleanSymlinksTest.java | 4 +
.../io/FileUtilsCopyDirectoryToDirectoryTest.java | 19 +-
.../java/org/apache/commons/io/FileUtilsTest.java | 190 +--
.../apache/commons/io/FileUtilsWaitForTest.java | 2 +-
.../org/apache/commons/io/FilenameUtilsTest.java | 2 +-
.../java/org/apache/commons/io/IOUtilsTest.java | 92 +-
.../org/apache/commons/io/ThreadMonitorTest.java | 1 +
.../io/build/AbstractStreamBuilderTest.java | 67 +-
.../org/apache/commons/io/build/URIOriginTest.java | 62 +-
.../ByteArraySeekableByteChannelCompressTest.java | 74 +-
.../channels/ByteArraySeekableByteChannelTest.java | 107 +-
.../CloseShieldChannelFilterByteChannelTest.java | 168 +++
.../commons/io/channels/FileChannelsTest.java | 2 +-
.../commons/io/channels/FilterByteChannelTest.java | 143 +++
.../commons/io/channels/FilterChannelTest.java | 93 ++
.../commons/io/channels/FilterFileChannelTest.java | 450 +++++++
.../io/channels/FilterReadableByteChannelTest.java | 133 ++
.../io/channels/FilterSeekableByteChannelTest.java | 220 ++++
.../io/channels/FilterWritableByteChannelTest.java | 132 ++
.../io/channels/FixedReadSizeFileChannelProxy.java | 2 +-
.../io/channels/NonBlockingFileChannelProxy.java | 2 +-
.../commons/io/file/AbstractTempDirTest.java | 26 +-
.../io/file/AccumulatorPathVisitorTest.java | 1 +
.../commons/io/file/CleaningPathVisitorTest.java | 4 +-
.../io/file/CountersEqualsAndHashCodeTest.java | 40 +-
.../commons/io/file/CountingPathVisitorTest.java | 6 +-
.../commons/io/file/DeletingPathVisitorTest.java | 3 +-
.../apache/commons/io/file/FilesUncheckTest.java | 73 +-
.../io/file/PathUtilsCleanDirectoryTest.java | 6 +
.../apache/commons/io/file/PathUtilsCopyTest.java | 461 +++++++
.../commons/io/file/PathUtilsDeleteFileTest.java | 3 +-
.../commons/io/file/PathUtilsIsEmptyTest.java | 20 +-
.../org/apache/commons/io/file/PathUtilsTest.java | 119 +-
.../apache/commons/io/file/TempDirectoryTest.java | 8 +-
.../org/apache/commons/io/file/TempFileTest.java | 8 +-
.../commons/io/filefilter/FileFilterTest.java | 2 +-
.../apache/commons/io/function/IOIterableTest.java | 2 +-
.../apache/commons/io/function/UncheckTest.java | 35 +-
.../commons/io/input/BOMInputStreamTest.java | 62 +-
.../apache/commons/io/input/BoundedReaderTest.java | 26 +-
.../ChunkedReader.java} | 39 +-
.../io/input/CloseShieldInputStreamTest.java | 27 +
.../io/input/MemoryMappedFileInputStreamTest.java | 3 +-
.../commons/io/input/ProxyInputStreamTest.java | 19 +
.../apache/commons/io/input/ProxyReaderTest.java | 21 +
.../commons/io/input/QueueInputStreamTest.java | 2 +-
.../commons/io/input/ReadAheadInputStreamTest.java | 26 +
.../input/ReversedLinesFileReaderSimpleTest.java | 5 +-
.../apache/commons/io/input/TailerCloseTest.java | 98 ++
.../org/apache/commons/io/input/TailerTest.java | 41 +-
.../commons/io/input/ThrottledInputStreamTest.java | 20 +
.../UnsynchronizedBufferedInputStreamTest.java | 4 +-
.../io/input/UnsynchronizedBufferedReaderTest.java | 28 +
.../UnsynchronizedByteArrayInputStreamTest.java | 32 +-
.../io/input/XmlStreamReaderUtilitiesTest.java | 4 +-
.../io/input/compatibility/XmlStreamReader.java | 7 +-
.../io/output/FlushShieldOutputStreamTest.java | 135 ++
.../commons/io/output/ProxyOutputStreamTest.java | 60 +-
.../apache/commons/io/output/ProxyWriterTest.java | 54 +
.../commons/io/output/WriterOutputStreamTest.java | 16 +
.../ValidatingObjectInputStreamTest.java | 53 +-
.../java/org/apache/commons/io/test/TestUtils.java | 7 +-
137 files changed, 5643 insertions(+), 2023 deletions(-)
create mode 100644
src/main/java/org/apache/commons/io/channels/FilterByteChannel.java
create mode 100644
src/main/java/org/apache/commons/io/channels/FilterChannel.java
rename src/{test/java/org/apache/commons/io/channels/FileChannelProxy.java =>
main/java/org/apache/commons/io/channels/FilterFileChannel.java} (57%)
create mode 100644
src/main/java/org/apache/commons/io/channels/FilterReadableByteChannel.java
create mode 100644
src/main/java/org/apache/commons/io/channels/FilterSeekableByteChannel.java
create mode 100644
src/main/java/org/apache/commons/io/channels/FilterWritableByteChannel.java
copy src/main/java/org/apache/commons/io/input/{AbstractInputStream.java =>
AbstractLineEndingInputStream.java} (51%)
create mode 100644
src/main/java/org/apache/commons/io/output/FlushShieldOutputStream.java
create mode 100644
src/test/java/org/apache/commons/io/channels/CloseShieldChannelFilterByteChannelTest.java
create mode 100644
src/test/java/org/apache/commons/io/channels/FilterByteChannelTest.java
create mode 100644
src/test/java/org/apache/commons/io/channels/FilterChannelTest.java
create mode 100644
src/test/java/org/apache/commons/io/channels/FilterFileChannelTest.java
create mode 100644
src/test/java/org/apache/commons/io/channels/FilterReadableByteChannelTest.java
create mode 100644
src/test/java/org/apache/commons/io/channels/FilterSeekableByteChannelTest.java
create mode 100644
src/test/java/org/apache/commons/io/channels/FilterWritableByteChannelTest.java
create mode 100644
src/test/java/org/apache/commons/io/file/PathUtilsCopyTest.java
copy src/test/java/org/apache/commons/io/{test/ThrowOnCloseReader.java =>
input/ChunkedReader.java} (57%)
create mode 100644
src/test/java/org/apache/commons/io/input/TailerCloseTest.java
create mode 100644
src/test/java/org/apache/commons/io/output/FlushShieldOutputStreamTest.java