Skip to content

Commit 388974f

Browse files
author
Gary Gregory
committed
Javadoc standardize "behaviour" -> "behavior".
1 parent 5b2c6ab commit 388974f

13 files changed

Lines changed: 15 additions & 15 deletions

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
*
106106
* @deprecated Use IOUtils. Will be removed in 2.0.
107107
* Methods renamed to IOUtils.write() or IOUtils.copy().
108-
* Null handling behaviour changed in IOUtils (null data does not
108+
* Null handling behavior changed in IOUtils (null data does not
109109
* throw NullPointerException).
110110
*/
111111
@Deprecated

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
/**
2929
* Abstract class that walks through a directory hierarchy and provides
30-
* subclasses with convenient hooks to add specific behaviour.
30+
* subclasses with convenient hooks to add specific behavior.
3131
* <p>
3232
* This class operates with a {@link FileFilter} and maximum depth to
3333
* limit the files and directories visited.
@@ -43,7 +43,7 @@
4343
* <li><a href="#filter">2. Filter Example</a> - using
4444
* {@link FileFilter}(s) with <code>DirectoryWalker</code>.</li>
4545
* <li><a href="#cancel">3. Cancellation</a> - how to implement cancellation
46-
* behaviour.</li>
46+
* behavior.</li>
4747
* </ul>
4848
*
4949
* <h2 id="example">1. Example Implementation</h2>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2586,7 +2586,7 @@ private static String[] toSuffixes(final String... extensions) {
25862586

25872587
//-----------------------------------------------------------------------
25882588
/**
2589-
* Implements the same behaviour as the "touch" utility on Unix. It creates
2589+
* Implements the same behavior as the "touch" utility on Unix. It creates
25902590
* a new file with size 0 or, if the file exists already, it is opened and
25912591
* closed without modifying it, but updating the file date and time.
25922592
* <p>

src/main/java/org/apache/commons/io/input/ProxyInputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ protected void afterRead(final int n) throws IOException {
229229
* Handle any IOExceptions thrown.
230230
* <p>
231231
* This method provides a point to implement custom exception
232-
* handling. The default behaviour is to re-throw the exception.
232+
* handling. The default behavior is to re-throw the exception.
233233
* @param e The IOException thrown
234234
* @throws IOException if an I/O error occurs
235235
* @since 2.0

src/main/java/org/apache/commons/io/input/ProxyReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ protected void afterRead(final int n) throws IOException {
252252
* Handle any IOExceptions thrown.
253253
* <p>
254254
* This method provides a point to implement custom exception
255-
* handling. The default behaviour is to re-throw the exception.
255+
* handling. The default behavior is to re-throw the exception.
256256
* @param e The IOException thrown
257257
* @throws IOException if an I/O error occurs
258258
* @since 2.0

src/main/java/org/apache/commons/io/input/ReversedLinesFileReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ public String readLine() throws IOException {
241241
}
242242
}
243243

244-
// aligned behaviour with BufferedReader that doesn't return a last, empty line
244+
// aligned behavior with BufferedReader that doesn't return a last, empty line
245245
if(EMPTY_STRING.equals(line) && !trailingNewlineOfFileSkipped) {
246246
trailingNewlineOfFileSkipped = true;
247247
line = readLine();

src/main/java/org/apache/commons/io/output/ProxyCollectionWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public void flush() throws IOException {
175175
/**
176176
* Handle any IOExceptions thrown.
177177
* <p>
178-
* This method provides a point to implement custom exception handling. The default behaviour is to re-throw the
178+
* This method provides a point to implement custom exception handling. The default behavior is to re-throw the
179179
* exception.
180180
* </p>
181181
*

src/main/java/org/apache/commons/io/output/ProxyOutputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ protected void afterWrite(final int n) throws IOException {
160160
* Handle any IOExceptions thrown.
161161
* <p>
162162
* This method provides a point to implement custom exception
163-
* handling. The default behaviour is to re-throw the exception.
163+
* handling. The default behavior is to re-throw the exception.
164164
* @param e The IOException thrown
165165
* @throws IOException if an I/O error occurs
166166
* @since 2.0

src/main/java/org/apache/commons/io/output/ProxyWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ protected void afterWrite(final int n) throws IOException {
253253
* Handle any IOExceptions thrown.
254254
* <p>
255255
* This method provides a point to implement custom exception
256-
* handling. The default behaviour is to re-throw the exception.
256+
* handling. The default behavior is to re-throw the exception.
257257
* </p>
258258
*
259259
* @param e The IOException thrown

src/test/java/org/apache/commons/io/input/ReversedLinesFileReaderTestParamFile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
import org.junit.jupiter.params.provider.MethodSource;
3434

3535
/**
36-
* Test checks symmetric behaviour with BufferedReader
36+
* Test checks symmetric behavior with BufferedReader
3737
*/
3838
public class ReversedLinesFileReaderTestParamFile {
3939
public static Stream<Arguments> testDataIntegrityWithBufferedReader() {

0 commit comments

Comments
 (0)