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 2020/11/21 02:31:14 UTC
[commons-email] branch master updated: No need to initialize to
default value.
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-email.git
The following commit(s) were added to refs/heads/master by this push:
new ddc6015 No need to initialize to default value.
ddc6015 is described below
commit ddc60155d467d167c7b77d6b86c07e6a9a4293e4
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Nov 20 21:31:10 2020 -0500
No need to initialize to default value.
---
src/test/java/org/apache/commons/mail/HtmlEmailTest.java | 3 +--
src/test/java/org/apache/commons/mail/SendWithAttachmentsTest.java | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/test/java/org/apache/commons/mail/HtmlEmailTest.java b/src/test/java/org/apache/commons/mail/HtmlEmailTest.java
index 9711527..df6502a 100644
--- a/src/test/java/org/apache/commons/mail/HtmlEmailTest.java
+++ b/src/test/java/org/apache/commons/mail/HtmlEmailTest.java
@@ -296,10 +296,9 @@ public class HtmlEmailTest extends AbstractEmailTest
public void testSend() throws EmailException, IOException
{
final EmailAttachment attachment = new EmailAttachment();
- File testFile = null;
/** File to used to test file attachments (Must be valid) */
- testFile = File.createTempFile("commons-email-testfile", ".txt");
+ File testFile = File.createTempFile("commons-email-testfile", ".txt");
testFile.deleteOnExit();
// ====================================================================
diff --git a/src/test/java/org/apache/commons/mail/SendWithAttachmentsTest.java b/src/test/java/org/apache/commons/mail/SendWithAttachmentsTest.java
index a224998..06817fa 100644
--- a/src/test/java/org/apache/commons/mail/SendWithAttachmentsTest.java
+++ b/src/test/java/org/apache/commons/mail/SendWithAttachmentsTest.java
@@ -109,10 +109,9 @@ public class SendWithAttachmentsTest extends AbstractEmailTest
public void testSendWAttachments() throws EmailException, IOException
{
final EmailAttachment attachment = new EmailAttachment();
- File testFile = null;
/** File to used to test file attachments (Must be valid) */
- testFile = File.createTempFile("commons-email-testfile", ".txt");
+ File testFile = File.createTempFile("commons-email-testfile", ".txt");
// ====================================================================
// Test Success