Skip to content

Commit 09e6e36

Browse files
committed
Variable: Normalize spelling
1 parent 37d17bc commit 09e6e36

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ protected void handleFile(final File file, final int depth, final Collection<Str
172172
static class TestMultiThreadCancelWalker extends DirectoryWalker<File> {
173173
private final String cancelFileName;
174174
private final boolean suppressCancel;
175-
private boolean cancelled;
175+
private boolean canceled;
176176
public List<File> results;
177177

178178
TestMultiThreadCancelWalker(final String cancelFileName, final boolean suppressCancel) {
@@ -199,26 +199,26 @@ protected void handleCancelled(final File startDirectory, final Collection<File>
199199
@Override
200200
protected void handleDirectoryEnd(final File directory, final int depth, final Collection<File> results) throws IOException {
201201
results.add(directory);
202-
assertFalse(cancelled);
202+
assertFalse(canceled);
203203
if (cancelFileName.equals(directory.getName())) {
204-
cancelled = true;
204+
canceled = true;
205205
}
206206
}
207207

208208
/** Handles a file by adding the File to the result set. */
209209
@Override
210210
protected void handleFile(final File file, final int depth, final Collection<File> results) throws IOException {
211211
results.add(file);
212-
assertFalse(cancelled);
212+
assertFalse(canceled);
213213
if (cancelFileName.equals(file.getName())) {
214-
cancelled = true;
214+
canceled = true;
215215
}
216216
}
217217

218218
/** Handles Cancelled. */
219219
@Override
220220
protected boolean handleIsCancelled(final File file, final int depth, final Collection<File> results) throws IOException {
221-
return cancelled;
221+
return canceled;
222222
}
223223
}
224224
// Directories

0 commit comments

Comments
 (0)