You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/01/17 15:28:23 UTC
[commons-net] 02/02: Better local name.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git
commit 25789394b4671864a0476f3a381538a667cf6121
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Jan 17 10:28:16 2021 -0500
Better local name.
---
.../org/apache/commons/net/examples/mail/IMAPExportMbox.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/main/java/org/apache/commons/net/examples/mail/IMAPExportMbox.java b/src/main/java/org/apache/commons/net/examples/mail/IMAPExportMbox.java
index 1ba0754..cdf6c30 100644
--- a/src/main/java/org/apache/commons/net/examples/mail/IMAPExportMbox.java
+++ b/src/main/java/org/apache/commons/net/examples/mail/IMAPExportMbox.java
@@ -204,12 +204,12 @@ public final class IMAPExportMbox
chunkListener = new MboxListener(
new BufferedWriter(new FileWriter(mbox, false)), eol, printHash, printMarker, checkSequence);
} else {
- final File mbox = new File(file);
- if (mbox.exists() && mbox.length() > 0) {
- throw new IOException("mailbox file: " + mbox + " already exists and is non-empty!");
+ final File mboxFile = new File(file);
+ if (mboxFile.exists() && mboxFile.length() > 0) {
+ throw new IOException("mailbox file: " + mboxFile + " already exists and is non-empty!");
}
- System.out.println("Creating file " + mbox);
- chunkListener = new MboxListener(new BufferedWriter(new FileWriter(mbox)), eol, printHash, printMarker, checkSequence);
+ System.out.println("Creating file " + mboxFile);
+ chunkListener = new MboxListener(new BufferedWriter(new FileWriter(mboxFile)), eol, printHash, printMarker, checkSequence);
}
final String path = uri.getPath();