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 <[email protected]> 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();
