Skip to content

Commit b34ea84

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents bd3f8b5 + d4bfb6f commit b34ea84

36 files changed

Lines changed: 469 additions & 309 deletions

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
6464
# Initializes the CodeQL tools for scanning.
6565
- name: Initialize CodeQL
66-
uses: github/codeql-action/init@9e907b5e64f6b83e7804b09294d44122997950d6 # v4.32.3
66+
uses: github/codeql-action/init@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v4.34.0
6767
with:
6868
languages: ${{ matrix.language }}
6969
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -74,7 +74,7 @@ jobs:
7474
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
7575
# If this step fails, then you should remove it and run the build manually (see below)
7676
- name: Autobuild
77-
uses: github/codeql-action/autobuild@9e907b5e64f6b83e7804b09294d44122997950d6 # v4.32.3
77+
uses: github/codeql-action/autobuild@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v4.34.0
7878

7979
# ℹ️ Command-line programs to run using the OS shell.
8080
# 📚 https://git.io/JvXDl
@@ -88,4 +88,4 @@ jobs:
8888
# make release
8989

9090
- name: Perform CodeQL Analysis
91-
uses: github/codeql-action/analyze@9e907b5e64f6b83e7804b09294d44122997950d6 # v4.32.3
91+
uses: github/codeql-action/analyze@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v4.34.0

.github/workflows/scorecards-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ jobs:
5959
publish_results: true
6060

6161
- name: "Upload artifact"
62-
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # 6.0.0
62+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
6363
with:
6464
name: SARIF file
6565
path: results.sarif
6666
retention-days: 5
6767

6868
- name: "Upload to code-scanning"
69-
uses: github/codeql-action/upload-sarif@9e907b5e64f6b83e7804b09294d44122997950d6 # v4.32.3
69+
uses: github/codeql-action/upload-sarif@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v4.34.0
7070
with:
7171
sarif_file: results.sarif

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<groupId>org.apache.commons</groupId>
2121
<artifactId>commons-parent</artifactId>
22-
<version>96</version>
22+
<version>97</version>
2323
</parent>
2424
<modelVersion>4.0.0</modelVersion>
2525
<groupId>commons-io</groupId>
@@ -132,7 +132,7 @@ file comparators, endian transformation classes, and much more.
132132
</commons.osgi.import>
133133
<commons.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-io/</commons.scmPubUrl>
134134
<commons.scmPubCheckoutDirectory>site-content</commons.scmPubCheckoutDirectory>
135-
<commons.bytebuddy.version>1.18.4</commons.bytebuddy.version>
135+
<commons.bytebuddy.version>1.18.7</commons.bytebuddy.version>
136136
<japicmp.skip>false</japicmp.skip>
137137
<commons.release.isDistModule>true</commons.release.isDistModule>
138138
<!-- JaCoCo: Don't make code coverage worse than: -->

src/changes/changes.xml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,20 @@ The <action> type attribute can be add,update,fix,remove.
6060
<action type="fix" dev="ggregory" due-to="Gary Gregory">All thread names are now prefixed with "commons-io-".</action>
6161
<action type="fix" dev="ggregory" due-to="Kishor, Mashrur Mia" issue="IO-639">ReversedLinesFileReader does not read first line if its empty #829.</action>
6262
<action type="fix" dev="ggregory" due-to="Peter De Maeyer" issue="IO-886">Fixed incorrect regular expression in PathUtils.RelativeSortedPaths.extractKey(String, String).</action>
63-
63+
<action type="fix" dev="ggregory" due-to="Martin Wiesner">Fix typos in Javadoc of FileUtils and related test classes #833.</action>
64+
<action type="fix" dev="ggregory" due-to="Daniel Vega, Gary Gregory" issue="IO-887">WriterOutputStream from a builder fails on malformed or unmappable input bytes.</action>
65+
<action type="fix" dev="ggregory" due-to="Gary Gregory">BoundedReader now extends ProxyReader.</action>
6466
<!-- ADD -->
6567
<action type="add" dev="ggregory" due-to="Gary Gregory, Piotr P. Karwasz">Add and use IOUtils.closeQuietlySuppress(Closeable, Throwable) #818.</action>
68+
<action type="add" dev="ggregory" due-to="Gary Gregory">Add ProxyWriter.setReference(Writer).</action>
69+
<action type="add" dev="ggregory" due-to="Gary Gregory">Add ProxyWriter.unwrap().</action>
70+
<action type="add" dev="ggregory" due-to="Gary Gregory">Add ProxyReader.setReference(Reader).</action>
71+
<action type="add" dev="ggregory" due-to="Gary Gregory">Add ProxyReader.unrwap().</action>
72+
<action type="add" dev="ggregory" due-to="Gary Gregory">Make ProxyOutputStream.unrwap() public.</action>
6673
<!-- UPDATE -->
67-
<action type="update" dev="ggregory" due-to="Gary Gregory, Dependabot">Bump org.apache.commons:commons-parent from 91 to 96 #816.</action>
74+
<action type="update" dev="ggregory" due-to="Gary Gregory, Dependabot">Bump org.apache.commons:commons-parent from 91 to 97 #816.</action>
6875
<action type="update" dev="ggregory" due-to="Gary Gregory, Dependabot">Bump commons-codec:commons-codec from 1.19.0 to 1.21.0 #812.</action>
69-
<action type="update" dev="ggregory" due-to="Gary Gregory, Dependabot">Bump commons.bytebuddy.version from 1.17.8 to 1.18.4 #814, #820.</action>
76+
<action type="update" dev="ggregory" due-to="Gary Gregory, Dependabot">Bump commons.bytebuddy.version from 1.17.8 to 1.18.7 #814, #820.</action>
7077
<action type="update" dev="ggregory" due-to="Gary Gregory, Dependabot">Bump commons-lang3 from 3.19.0 to 3.20.0.</action>
7178
</release>
7279
<release version="2.21.0" date="2025-11-04" description="Version 2.21.0: Java 8 or later is required.">

src/main/java/org/apache/commons/io/FileSystem.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,10 @@
3232
import java.util.Objects;
3333

3434
/**
35-
* Abstracts an OS' file system details, currently supporting the single use case of converting a file name String to a
36-
* legal file name with {@link #toLegalFileName(String, char)}.
35+
* Enumerates file system details for operating systems, currently supporting the single use case of converting a file name String to a legal file name with
36+
* {@link #toLegalFileName(String, char)}.
3737
* <p>
38-
* The starting point of any operation is {@link #getCurrent()} which gets you the enum for the file system that matches
39-
* the OS hosting the running JVM.
38+
* The starting point of any operation is {@link #getCurrent()} which gets you the enum for the file system that matches the OS hosting the running JVM.
4039
* </p>
4140
*
4241
* @since 2.7

src/main/java/org/apache/commons/io/FileUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1555,7 +1555,7 @@ public static File getTempDirectory() {
15551555
* WARNING: this method relies on the Java system property 'java.io.tmpdir'
15561556
* which may or may not have a trailing file separator.
15571557
* This can affect code that uses String processing to manipulate pathnames rather
1558-
* than the standard libary methods in classes such as {@link File}
1558+
* than the standard library methods in classes such as {@link File}
15591559
*
15601560
* @return the path to the system temporary directory as a String.
15611561
* @since 2.0

src/main/java/org/apache/commons/io/FilenameUtils.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,8 +1556,8 @@ private static char toSeparator(final boolean unixSeparator) {
15561556
* </pre>
15571557
* The sequence "*?" does not work properly at present in match strings.
15581558
*
1559-
* @param fileName the file name to match on.
1560-
* @param wildcardMatcher the wildcard string to match against.
1559+
* @param fileName the file name to match on, may be null.
1560+
* @param wildcardMatcher the wildcard string to match against, may be null.
15611561
* @return true if the file name matches the wildcard string.
15621562
* @see IOCase#SENSITIVE
15631563
*/
@@ -1573,8 +1573,8 @@ public static boolean wildcardMatch(final String fileName, final String wildcard
15731573
* single or multiple (zero or more) wildcard characters.
15741574
* The sequence "*?" does not work properly at present in match strings.
15751575
*
1576-
* @param fileName the file name to match on.
1577-
* @param wildcardMatcher the wildcard string to match against.
1576+
* @param fileName the file name to match on, may be null.
1577+
* @param wildcardMatcher the wildcard string to match against, may be null.
15781578
* @param ioCase what case sensitivity rule to use, null means case-sensitive.
15791579
* @return true if the file name matches the wildcard string.
15801580
* @since 1.3

src/main/java/org/apache/commons/io/IOCase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import java.util.stream.Stream;
2222

2323
/**
24-
* Enumeration of IO case sensitivity.
24+
* Enumerates IO case sensitivity types.
2525
* <p>
2626
* Different filing systems have different rules for case-sensitivity.
2727
* Windows is case-insensitive, Unix is case-sensitive.
@@ -95,7 +95,7 @@ public static boolean isCaseSensitive(final IOCase ioCase) {
9595
/**
9696
* Returns the given value if not-null, the defaultValue if null.
9797
*
98-
* @param value the value to test.
98+
* @param value the value to test, may be null.
9999
* @param defaultValue the default value.
100100
* @return the given value if not-null, the defaultValue if null.
101101
* @since 2.12.0

src/main/java/org/apache/commons/io/IOUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1803,7 +1803,7 @@ public static long copyLarge(final InputStream input, final OutputStream output,
18031803
output.write(buffer, 0, read);
18041804
totalRead += read;
18051805
if (length > 0) { // only adjust length if not reading to the end
1806-
// Note the cast must work because buffer.length is an integer
1806+
// Note the cast must work because bufferLength = buffer.length is an integer
18071807
bytesToRead = (int) Math.min(length - totalRead, bufferLength);
18081808
}
18091809
}

src/main/java/org/apache/commons/io/file/StandardDeleteOption.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import org.apache.commons.io.IOUtils;
2323

2424
/**
25-
* Defines the standard delete options.
25+
* Enumerates the standard delete options.
2626
*
2727
* @since 2.8.0
2828
*/

0 commit comments

Comments
 (0)