From 8b293a9f10c28ab90ed55edeb123b835ce460e84 Mon Sep 17 00:00:00 2001 From: chandrasegar Date: Mon, 26 Feb 2024 13:46:53 +0530 Subject: [PATCH] unwanted comments deleted --- .../mailsender/DAO/Impl/MailDAOImpl.java | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/src/main/java/entgra/mailsender/DAO/Impl/MailDAOImpl.java b/src/main/java/entgra/mailsender/DAO/Impl/MailDAOImpl.java index fd0dd30..ef1e4b4 100644 --- a/src/main/java/entgra/mailsender/DAO/Impl/MailDAOImpl.java +++ b/src/main/java/entgra/mailsender/DAO/Impl/MailDAOImpl.java @@ -10,15 +10,11 @@ import entgra.mailsender.exception.MailProcessingException; import org.springframework.stereotype.Component; import javax.sql.DataSource; -import java.io.*; -import java.sql.Connection; -import java.sql.DriverManager; -import java.sql.PreparedStatement; -import java.sql.SQLException; -import java.sql.Timestamp; -import java.sql.ResultSet; -import java.sql.Blob; -import java.sql.Date; +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.sql.*; import java.time.LocalDate; import java.util.ArrayList; import java.util.List; @@ -35,10 +31,6 @@ public class MailDAOImpl implements MailDAO { this.dataSource = dataSource; } -// private Connection getConnection() throws SQLException { -// return DriverManager.getConnection("jdbc:mysql://localhost:3306/email_sending", "root", "StrongPassword123!"); -// } - @Override public int addMail(MailModel mailModel) throws SQLException { try {