@@ -50,6 +50,7 @@ public class JavaMailEmailService extends EmailServicesHelper implements
5050 /**
5151 * The logger.
5252 */
53+ @ SuppressWarnings ("unused" )
5354 private static final Log logger = LogFactory
5455 .getLog (JavaMailEmailService .class );
5556
@@ -69,7 +70,6 @@ public void setEntityManager(EntityManager em)
6970 public void sendSettlementEmail (Long sid , byte [] settlementReport ,
7071 byte [] expenseReport )
7172 {
72- //int emailSendResult = 0;
7373 // do not send email if sid is not valid
7474 if (sid != 0l ) {
7575 Query queryGetSettlementForId = em
@@ -93,12 +93,6 @@ public void sendSettlementEmail(Long sid, byte[] settlementReport,
9393 // send email
9494 sendSettlementNotice (sb , ubl , settlementReport , expenseReport );
9595 }
96- // if (emailSendResult == 0) {
97- // logger.info("Email was sent succesfuly.");
98- // } else {
99- // logger.error("Email not sent.");
100- // }
101- // return emailSendResult;
10296 }
10397
10498 /**
@@ -107,8 +101,6 @@ public void sendSettlementEmail(Long sid, byte[] settlementReport,
107101 @ Async
108102 public void sendWelcomeEmail (UserBean ub )
109103 {
110- // @SuppressWarnings("unused")
111- //int result = 0;
112104 if (null != ub ) {
113105 if (null != ub .getEmailId ()) {
114106 if (!"" .equalsIgnoreCase (ub .getEmailId ())) {
@@ -124,8 +116,6 @@ public void sendWelcomeEmail(UserBean ub)
124116 @ Async
125117 public void sendPasswordResetEmail (UserBean ub )
126118 {
127- // @SuppressWarnings("unused")
128- //int result = 0;
129119 if (null != ub .getEmailId ()) {
130120 if (!"" .equalsIgnoreCase (ub .getEmailId ())) {
131121 sendPasswordResetEmail0 (ub );
0 commit comments