Skip to content

Commit 6e463b9

Browse files
authored
Fix typos in Javadoc of FileUtils and related test classes (#833)
1 parent 4e93f50 commit 6e463b9

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

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/test/java/org/apache/commons/io/FileUtilsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ private Path createCircularOsSymbolicLink(final String linkName, final String ta
214214

215215
/**
216216
* May throw java.nio.file.FileSystemException: C:\Users\...\FileUtilsTestCase\cycle: A required privilege is not held
217-
* by the client. On Windows, you are fine if you run a terminal with aadministrator permissions.
217+
* by the client. On Windows, you are fine if you run a terminal with administrator permissions.
218218
*
219219
* @return The link path.
220220
*/

src/test/java/org/apache/commons/io/FileUtilsWaitForTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void testIO_488() throws InterruptedException {
4848
// This will wait (assuming the file is not found)
4949
assertFalse(FileUtils.waitFor(NOSUCHFILE, seconds), "Should not find file");
5050
wasInterrupted.set(Thread.currentThread().isInterrupted());
51-
}, "commos-io-Test-IO-488-Thread");
51+
}, "commons-io-Test-IO-488-Thread");
5252
thread1.start();
5353
Thread.sleep(500); // This should be enough to ensure the waitFor loop has been entered
5454
thread1.interrupt(); // Try to interrupt waitFor

src/test/java/org/apache/commons/io/function/IOIterableTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ void testSpliterator() {
9191
}
9292

9393
@Test
94-
void testUnrwap() {
94+
void testUnwrap() {
9595
assertSame(fixture.list, iterable.unwrap());
9696
assertSame(fixture.unwrap(), iterable.unwrap());
9797
}

0 commit comments

Comments
 (0)