Javadoc standardize "behaviour" -> "behavior".
MODIFY
src/main/java/org/apache/commons/io/CopyUtils.java
src/main/java/org/apache/commons/io/CopyUtils.java
*
* @deprecated Use IOUtils. Will be removed in 2.0.
* Methods renamed to IOUtils.write() or IOUtils.copy().
- * Null handling behaviour changed in IOUtils (null data does not
+ * Null handling behavior changed in IOUtils (null data does not
* throw NullPointerException).
*/
@Deprecated

MODIFY
src/main/java/org/apache/commons/io/DirectoryWalker.java
src/main/java/org/apache/commons/io/DirectoryWalker.java
/**
* Abstract class that walks through a directory hierarchy and provides
- * subclasses with convenient hooks to add specific behaviour.
+ * subclasses with convenient hooks to add specific behavior.
* <p>
* This class operates with a {@link FileFilter} and maximum depth to
* limit the files and directories visited.
* <li><a href="#filter">2. Filter Example</a> - using
* {@link FileFilter}(s) with <code>DirectoryWalker</code>.</li>
* <li><a href="#cancel">3. Cancellation</a> - how to implement cancellation
- * behaviour.</li>
+ * behavior.</li>
* </ul>
*
* <h2 id="example">1. Example Implementation</h2>

MODIFY
src/main/java/org/apache/commons/io/FileUtils.java
src/main/java/org/apache/commons/io/FileUtils.java
@@ -2586,7 +2586,7 @@ public static File toFile(final URL url) {
//-----------------------------------------------------------------------
/**
- * Implements the same behaviour as the "touch" utility on Unix. It creates
+ * Implements the same behavior as the "touch" utility on Unix. It creates
* a new file with size 0 or, if the file exists already, it is opened and
* closed without modifying it, but updating the file date and time.
* <p>

MODIFY
src/main/java/org/apache/commons/io/input/ProxyInputStream.java
src/main/java/org/apache/commons/io/input/ProxyInputStream.java
@@ -229,7 +229,7 @@ protected void afterRead(final int n) throws IOException {
* Handle any IOExceptions thrown.
* <p>
* This method provides a point to implement custom exception
- * handling. The default behaviour is to re-throw the exception.
+ * handling. The default behavior is to re-throw the exception.
* @param e The IOException thrown
* @throws IOException if an I/O error occurs
* @since 2.0

MODIFY
src/main/java/org/apache/commons/io/input/ProxyReader.java
src/main/java/org/apache/commons/io/input/ProxyReader.java
@@ -252,7 +252,7 @@ protected void afterRead(final int n) throws IOException {
* Handle any IOExceptions thrown.
* <p>
* This method provides a point to implement custom exception
- * handling. The default behaviour is to re-throw the exception.
+ * handling. The default behavior is to re-throw the exception.
* @param e The IOException thrown
* @throws IOException if an I/O error occurs
* @since 2.0

MODIFY
src/main/java/org/apache/commons/io/input/ReversedLinesFileReader.java
src/main/java/org/apache/commons/io/input/ReversedLinesFileReader.java
@@ -241,7 +241,7 @@ public String readLine() throws IOException {
}
}
- // aligned behaviour with BufferedReader that doesn't return a last, empty line
+ // aligned behavior with BufferedReader that doesn't return a last, empty line
if(EMPTY_STRING.equals(line) && !trailingNewlineOfFileSkipped) {
trailingNewlineOfFileSkipped = true;
line = readLine();

MODIFY
src/main/java/org/apache/commons/io/output/ProxyCollectionWriter.java
src/main/java/org/apache/commons/io/output/ProxyCollectionWriter.java
@@ -175,7 +175,7 @@ public void flush() throws IOException {
/**
* Handle any IOExceptions thrown.
* <p>
- * This method provides a point to implement custom exception handling. The default behaviour is to re-throw the
+ * This method provides a point to implement custom exception handling. The default behavior is to re-throw the
* exception.
* </p>
*

MODIFY
src/main/java/org/apache/commons/io/output/ProxyOutputStream.java
src/main/java/org/apache/commons/io/output/ProxyOutputStream.java
@@ -160,7 +160,7 @@ protected void afterWrite(final int n) throws IOException {
* Handle any IOExceptions thrown.
* <p>
* This method provides a point to implement custom exception
- * handling. The default behaviour is to re-throw the exception.
+ * handling. The default behavior is to re-throw the exception.
* @param e The IOException thrown
* @throws IOException if an I/O error occurs
* @since 2.0

MODIFY
src/main/java/org/apache/commons/io/output/ProxyWriter.java
src/main/java/org/apache/commons/io/output/ProxyWriter.java
@@ -253,7 +253,7 @@ protected void afterWrite(final int n) throws IOException {
* Handle any IOExceptions thrown.
* <p>
* This method provides a point to implement custom exception
- * handling. The default behaviour is to re-throw the exception.
+ * handling. The default behavior is to re-throw the exception.
* </p>
*
* @param e The IOException thrown

MODIFY
src/test/java/org/apache/commons/io/input/ReversedLinesFileReaderTestParamFile.java
src/test/java/org/apache/commons/io/input/ReversedLinesFileReaderTestParamFile.java
import org.junit.jupiter.params.provider.MethodSource;
/**
- * Test checks symmetric behaviour with BufferedReader
+ * Test checks symmetric behavior with BufferedReader
*/
public class ReversedLinesFileReaderTestParamFile {
public static Stream<Arguments> testDataIntegrityWithBufferedReader() {

MODIFY
src/test/java/org/apache/commons/io/input/TailerTest.java
src/test/java/org/apache/commons/io/input/TailerTest.java
@@ -283,7 +283,7 @@ public void testTailerEndOfFileReached() throws Exception {
write(file, "line7", "line8", "line9");
TestUtils.sleep(testDelayMillis);
- // May be > 3 times due to underlying OS behaviour wrt streams
+ // May be > 3 times due to underlying OS behavior wrt streams
assertTrue(listener.reachedEndOfFile >= 3, "end of file reached at least 3 times");
}
@@ -401,7 +401,7 @@ public void testStopWithNoFileUsingExecutor() throws Exception {
}
@Test
- public void testIO335() throws Exception { // test CR behaviour
+ public void testIO335() throws Exception { // test CR behavior
// Create & start the Tailer
final long delayMillis = 50;
final File file = new File(temporaryFolder, "tailer-testio334.txt");

MODIFY
src/test/java/org/apache/commons/io/testtools/YellOnCloseWriter.java
src/test/java/org/apache/commons/io/testtools/YellOnCloseWriter.java
import org.apache.commons.io.output.ProxyWriter;
/**
- * Helper class for checking behaviour of IO classes.
+ * Helper class for checking behavior of IO classes.
*/
public class YellOnCloseWriter extends ProxyWriter {

MODIFY
src/test/java/org/apache/commons/io/testtools/YellOnFlushAndCloseOutputStream.java
src/test/java/org/apache/commons/io/testtools/YellOnFlushAndCloseOutputStream.java
import org.apache.commons.io.output.ProxyOutputStream;
/**
- * Helper class for checking behaviour of IO classes.
+ * Helper class for checking behavior of IO classes.
*/
public class YellOnFlushAndCloseOutputStream extends ProxyOutputStream {

Javadoc standardize "behaviour" -> "behavior".