import hayashi.yuu.tools.mail.SiteData;\r
\r
/**\r
- * <p>Eメールを送信するためのクラス<br/>\r
- * JavaMailを使用する</p>\r
+ * Eメールを送信するためのクラス<br>\r
+ * JavaMailを使用する\r
* @see <a href="http://java.sun.com/products/javamail/javadocs/index.html">JavaMail API</a>\r
*\r
* @author hayashi\r
* @param attachment 添付するファイル(attachment)\r
* @throws FileNotFoundException 添付するファイルが見つからなかった。\r
*/\r
- public void setAttachment(File attachment) throws FileNotFoundException {\r
+ @SuppressWarnings("resource")\r
+ public void setAttachment(File attachment) throws FileNotFoundException {\r
new FileInputStream(attachment); // ファイルが実存することをチェックする。\r
attachments.addElement(attachment);\r
attachNames.addElement(attachment.getName());\r
* @param name 添付するファイルの表示名\r
* @throws FileNotFoundException 添付するファイルが見つからなかった。\r
*/\r
- public void setAttachment(File attachment, String name) throws FileNotFoundException {\r
+ @SuppressWarnings("resource")\r
+ public void setAttachment(File attachment, String name) throws FileNotFoundException {\r
new FileInputStream(attachment); // ファイルが実存することをチェックする。\r
attachments.addElement(attachment);\r
attachNames.addElement(name);\r