Skip to content

Commit

Permalink
Trivial improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
k-tamura committed Mar 27, 2017
1 parent 4c28867 commit 0c88f7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ public class EmailUtils {

private static final Logger log = LoggerFactory.getLogger(EmailUtils.class);

// squid:S1118: Utility classes should not have public constructors
private EmailUtils() {
throw new IllegalAccessError("Utility class");
}

public static boolean isReadyToSendEmail() {
if (ApplicationUtils.getSmtpHost() == null || "".equals(ApplicationUtils.getSmtpHost())
|| ApplicationUtils.getSmtpPort() == null || "".equals(ApplicationUtils.getSmtpPort())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ protected void doGet(HttpServletRequest req, HttpServletResponse res) throws Ser
+ MessageUtils.getMsg("label.submit", locale) + "\"/></td>");
bodyHtml.append("</tr>");
bodyHtml.append("</table>");
bodyHtml.append("<br>");
bodyHtml.append(MessageUtils.getMsg("msg.note.mail.header.injection", locale));
if (req.getAttribute("message") != null) {
bodyHtml.append("<br><br>");
Expand Down

0 comments on commit 0c88f7f

Please sign in to comment.