Skip to content
Permalink
Browse files
No need to initialize to default value.
  • Loading branch information
garydgregory committed Nov 21, 2020
1 parent affd6c4 commit ddc60155d467d167c7b77d6b86c07e6a9a4293e4
Showing 2 changed files with 2 additions and 4 deletions.
@@ -296,10 +296,9 @@ public void testEmbedDataSource() throws Exception
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();

// ====================================================================
@@ -109,10 +109,9 @@ public void testSendNoAttachments() throws EmailException, IOException
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

0 comments on commit ddc6015

Please sign in to comment.