Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 12F3E117DB for ; Wed, 9 Jul 2014 20:47:17 +0000 (UTC) Received: (qmail 87370 invoked by uid 500); 9 Jul 2014 20:47:16 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 87300 invoked by uid 500); 9 Jul 2014 20:47:16 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 87291 invoked by uid 99); 9 Jul 2014 20:47:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2014 20:47:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2014 20:47:06 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 8428A2388B42 for ; Wed, 9 Jul 2014 20:46:39 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r915608 [4/34] - in /websites/production/commons/content/proper/commons-email: ./ apidocs/ apidocs/org/apache/commons/mail/ apidocs/org/apache/commons/mail/class-use/ apidocs/org/apache/commons/mail/resolver/ apidocs/org/apache/commons/mail... Date: Wed, 09 Jul 2014 20:46:28 -0000 To: commits@commons.apache.org From: tn@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140709204639.8428A2388B42@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Modified: websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/Email.html ============================================================================== --- websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/Email.html (original) +++ websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/Email.html Wed Jul 9 20:46:21 2014 @@ -57,7 +57,7 @@ 049 * Subclasses are responsible for setting the message body. 050 * 051 * @since 1.0 -052 * @version $Id: Email.java 1563555 2014-02-02 02:51:10Z ggregory $ +052 * @version $Id: Email.java 1606709 2014-06-30 12:26:06Z ggregory $ 053 */ 054public abstract class Email 055{ @@ -338,7 +338,7 @@ 330 * @param d A boolean. 331 * @since 1.0 332 */ -333 public void setDebug(boolean d) +333 public void setDebug(final boolean d) 334 { 335 this.debug = d; 336 } @@ -356,7 +356,7 @@ 348 * @see #setAuthenticator 349 * @since 1.0 350 */ -351 public void setAuthentication(String userName, String password) +351 public void setAuthentication(final String userName, final String password) 352 { 353 this.setAuthenticator(new DefaultAuthenticator(userName, password)); 354 } @@ -372,7 +372,7 @@ 364 * @see Authenticator 365 * @since 1.0 366 */ -367 public void setAuthenticator(Authenticator newAuthenticator) +367 public void setAuthenticator(final Authenticator newAuthenticator) 368 { 369 this.authenticator = newAuthenticator; 370 } @@ -387,9 +387,9 @@ 379 * exists in the current JVM 380 * @since 1.0 381 */ -382 public void setCharset(String newCharset) +382 public void setCharset(final String newCharset) 383 { -384 Charset set = Charset.forName(newCharset); +384 final Charset set = Charset.forName(newCharset); 385 this.charset = set.name(); 386 } 387 @@ -399,7 +399,7 @@ 391 * @param aMimeMultipart aMimeMultipart 392 * @since 1.0 393 */ -394 public void setContent(MimeMultipart aMimeMultipart) +394 public void setContent(final MimeMultipart aMimeMultipart) 395 { 396 this.emailBody = aMimeMultipart; 397 } @@ -411,7 +411,7 @@ 403 * @param aContentType aContentType 404 * @since 1.0 405 */ -406 public void setContent(Object aObject, String aContentType) +406 public void setContent(final Object aObject, final String aContentType) 407 { 408 this.content = aObject; 409 this.updateContentType(aContentType); @@ -435,14 +435,14 @@ 427 this.contentType = aContentType; 428 429 // set the charset if the input was properly formed -430 String strMarker = "; charset="; +430 final String strMarker = "; charset="; 431 int charsetPos = aContentType.toLowerCase().indexOf(strMarker); 432 433 if (charsetPos != -1) 434 { 435 // find the next space (after the marker) 436 charsetPos += strMarker.length(); -437 int intCharsetEnd = +437 final int intCharsetEnd = 438 aContentType.toLowerCase().indexOf(" ", charsetPos); 439 440 if (intCharsetEnd != -1) @@ -461,7 +461,7 @@ 453 // whose content-type is some form of text. 454 if (this.contentType.startsWith("text/") && EmailUtils.isNotEmpty(this.charset)) 455 { -456 StringBuffer contentTypeBuf = new StringBuffer(this.contentType); +456 final StringBuffer contentTypeBuf = new StringBuffer(this.contentType); 457 contentTypeBuf.append(strMarker); 458 contentTypeBuf.append(this.charset); 459 this.contentType = contentTypeBuf.toString(); @@ -476,7 +476,7 @@ 468 * @param aHostName aHostName 469 * @since 1.0 470 */ -471 public void setHostName(String aHostName) +471 public void setHostName(final String aHostName) 472 { 473 checkSessionAlreadyInitialized(); 474 this.hostName = aHostName; @@ -491,7 +491,7 @@ 483 * @since 1.1 484 */ 485 @Deprecated -486 public void setTLS(boolean withTLS) +486 public void setTLS(final boolean withTLS) 487 { 488 setStartTLSEnabled(withTLS); 489 } @@ -503,7 +503,7 @@ 495 * @return An Email. 496 * @since 1.3 497 */ -498 public Email setStartTLSEnabled(boolean startTlsEnabled) +498 public Email setStartTLSEnabled(final boolean startTlsEnabled) 499 { 500 checkSessionAlreadyInitialized(); 501 this.startTlsEnabled = startTlsEnabled; @@ -518,7 +518,7 @@ 510 * @return An Email. 511 * @since 1.3 512 */ -513 public Email setStartTLSRequired(boolean startTlsRequired) +513 public Email setStartTLSRequired(final boolean startTlsRequired) 514 { 515 checkSessionAlreadyInitialized(); 516 this.startTlsRequired = startTlsRequired; @@ -532,7 +532,7 @@ 524 * @throws IllegalArgumentException if the port number is &lt; 1 525 * @since 1.0 526 */ -527 public void setSmtpPort(int aPortNumber) +527 public void setSmtpPort(final int aPortNumber) 528 { 529 checkSessionAlreadyInitialized(); 530 @@ -561,17 +561,17 @@ 553 * @throws IllegalArgumentException if the session is {@code null} 554 * @since 1.0 555 */ -556 public void setMailSession(Session aSession) +556 public void setMailSession(final Session aSession) 557 { 558 EmailUtils.notNull(aSession, "no mail session supplied"); 559 -560 Properties sessionProperties = aSession.getProperties(); -561 String auth = sessionProperties.getProperty(MAIL_SMTP_AUTH); +560 final Properties sessionProperties = aSession.getProperties(); +561 final String auth = sessionProperties.getProperty(MAIL_SMTP_AUTH); 562 563 if ("true".equalsIgnoreCase(auth)) 564 { -565 String userName = sessionProperties.getProperty(MAIL_SMTP_USER); -566 String password = sessionProperties.getProperty(MAIL_SMTP_PASSWORD); +565 final String userName = sessionProperties.getProperty(MAIL_SMTP_USER); +566 final String password = sessionProperties.getProperty(MAIL_SMTP_PASSWORD); 567 568 if (EmailUtils.isNotEmpty(userName) && EmailUtils.isNotEmpty(password)) 569 { @@ -601,7 +601,7 @@ 593 * @throws NamingException if the resource cannot be retrieved from JNDI directory 594 * @since 1.1 595 */ -596 public void setMailSessionFromJNDI(String jndiName) throws NamingException +596 public void setMailSessionFromJNDI(final String jndiName) throws NamingException 597 { 598 if (EmailUtils.isEmpty(jndiName)) 599 { @@ -634,7 +634,7 @@ 626 { 627 if (this.session == null) 628 { -629 Properties properties = new Properties(System.getProperties()); +629 final Properties properties = new Properties(System.getProperties()); 630 properties.setProperty(MAIL_TRANSPORT_PROTOCOL, SMTP); 631 632 if (EmailUtils.isEmpty(this.hostName)) @@ -714,7 +714,7 @@ 706 * @throws EmailException Indicates an invalid email address. 707 * @since 1.0 708 */ -709 public Email setFrom(String email) +709 public Email setFrom(final String email) 710 throws EmailException 711 { 712 return setFrom(email, null); @@ -734,7 +734,7 @@ 726 * @throws EmailException Indicates an invalid email address. 727 * @since 1.0 728 */ -729 public Email setFrom(String email, String name) +729 public Email setFrom(final String email, final String name) 730 throws EmailException 731 { 732 return setFrom(email, name, this.charset); @@ -751,7 +751,7 @@ 743 * @throws EmailException Indicates an invalid email address or charset. 744 * @since 1.1 745 */ -746 public Email setFrom(String email, String name, String charset) +746 public Email setFrom(final String email, final String name, final String charset) 747 throws EmailException 748 { 749 this.fromAddress = createInternetAddress(email, name, charset); @@ -772,7 +772,7 @@ 764 * @throws EmailException Indicates an invalid email address. 765 * @since 1.0 766 */ -767 public Email addTo(String email) +767 public Email addTo(final String email) 768 throws EmailException 769 { 770 return addTo(email, null); @@ -792,7 +792,7 @@ 784 * @throws EmailException Indicates an invalid email address. 785 * @since 1.3 786 */ -787 public Email addTo(String... emails) +787 public Email addTo(final String... emails) 788 throws EmailException 789 { 790 if (emails == null || emails.length == 0) @@ -800,7 +800,7 @@ 792 throw new EmailException("Address List provided was invalid"); 793 } 794 -795 for (String email : emails) +795 for (final String email : emails) 796 { 797 addTo(email, null); 798 } @@ -823,7 +823,7 @@ 815 * @throws EmailException Indicates an invalid email address. 816 * @since 1.0 817 */ -818 public Email addTo(String email, String name) +818 public Email addTo(final String email, final String name) 819 throws EmailException 820 { 821 return addTo(email, name, this.charset); @@ -840,7 +840,7 @@ 832 * @throws EmailException Indicates an invalid email address or charset. 833 * @since 1.1 834 */ -835 public Email addTo(String email, String name, String charset) +835 public Email addTo(final String email, final String name, final String charset) 836 throws EmailException 837 { 838 this.toList.add(createInternetAddress(email, name, charset)); @@ -858,7 +858,7 @@ 850 * @see javax.mail.internet.InternetAddress 851 * @since 1.0 852 */ -853 public Email setTo(Collection<InternetAddress> aCollection) throws EmailException +853 public Email setTo(final Collection<InternetAddress> aCollection) throws EmailException 854 { 855 if (aCollection == null || aCollection.isEmpty()) 856 { @@ -882,7 +882,7 @@ 874 * @throws EmailException Indicates an invalid email address. 875 * @since 1.0 876 */ -877 public Email addCc(String email) +877 public Email addCc(final String email) 878 throws EmailException 879 { 880 return this.addCc(email, null); @@ -902,7 +902,7 @@ 894 * @throws EmailException Indicates an invalid email address. 895 * @since 1.3 896 */ -897 public Email addCc(String... emails) +897 public Email addCc(final String... emails) 898 throws EmailException 899 { 900 if (emails == null || emails.length == 0) @@ -910,7 +910,7 @@ 902 throw new EmailException("Address List provided was invalid"); 903 } 904 -905 for (String email : emails) +905 for (final String email : emails) 906 { 907 addCc(email, null); 908 } @@ -932,7 +932,7 @@ 924 * @throws EmailException Indicates an invalid email address. 925 * @since 1.0 926 */ -927 public Email addCc(String email, String name) +927 public Email addCc(final String email, final String name) 928 throws EmailException 929 { 930 return addCc(email, name, this.charset); @@ -949,7 +949,7 @@ 941 * @throws EmailException Indicates an invalid email address or charset. 942 * @since 1.1 943 */ -944 public Email addCc(String email, String name, String charset) +944 public Email addCc(final String email, final String name, final String charset) 945 throws EmailException 946 { 947 this.ccList.add(createInternetAddress(email, name, charset)); @@ -967,7 +967,7 @@ 959 * @see javax.mail.internet.InternetAddress 960 * @since 1.0 961 */ -962 public Email setCc(Collection<InternetAddress> aCollection) throws EmailException +962 public Email setCc(final Collection<InternetAddress> aCollection) throws EmailException 963 { 964 if (aCollection == null || aCollection.isEmpty()) 965 { @@ -991,7 +991,7 @@ 983 * @throws EmailException Indicates an invalid email address 984 * @since 1.0 985 */ -986 public Email addBcc(String email) +986 public Email addBcc(final String email) 987 throws EmailException 988 { 989 return this.addBcc(email, null); @@ -1011,7 +1011,7 @@ 1003 * @throws EmailException Indicates an invalid email address 1004 * @since 1.3 1005 */ -1006 public Email addBcc(String... emails) +1006 public Email addBcc(final String... emails) 1007 throws EmailException 1008 { 1009 if (emails == null || emails.length == 0) @@ -1019,7 +1019,7 @@ 1011 throw new EmailException("Address List provided was invalid"); 1012 } 1013 -1014 for (String email : emails) +1014 for (final String email : emails) 1015 { 1016 addBcc(email, null); 1017 } @@ -1041,7 +1041,7 @@ 1033 * @throws EmailException Indicates an invalid email address 1034 * @since 1.0 1035 */ -1036 public Email addBcc(String email, String name) +1036 public Email addBcc(final String email, final String name) 1037 throws EmailException 1038 { 1039 return addBcc(email, name, this.charset); @@ -1058,7 +1058,7 @@ 1050 * @throws EmailException Indicates an invalid email address 1051 * @since 1.1 1052 */ -1053 public Email addBcc(String email, String name, String charset) +1053 public Email addBcc(final String email, final String name, final String charset) 1054 throws EmailException 1055 { 1056 this.bccList.add(createInternetAddress(email, name, charset)); @@ -1076,7 +1076,7 @@ 1068 * @see javax.mail.internet.InternetAddress 1069 * @since 1.0 1070 */ -1071 public Email setBcc(Collection<InternetAddress> aCollection) throws EmailException +1071 public Email setBcc(final Collection<InternetAddress> aCollection) throws EmailException 1072 { 1073 if (aCollection == null || aCollection.isEmpty()) 1074 { @@ -1100,7 +1100,7 @@ 1092 * @throws EmailException Indicates an invalid email address 1093 * @since 1.0 1094 */ -1095 public Email addReplyTo(String email) +1095 public Email addReplyTo(final String email) 1096 throws EmailException 1097 { 1098 return this.addReplyTo(email, null); @@ -1120,7 +1120,7 @@ 1112 * @throws EmailException Indicates an invalid email address 1113 * @since 1.0 1114 */ -1115 public Email addReplyTo(String email, String name) +1115 public Email addReplyTo(final String email, final String name) 1116 throws EmailException 1117 { 1118 return addReplyTo(email, name, this.charset); @@ -1137,7 +1137,7 @@ 1129 * @throws EmailException Indicates an invalid email address or charset. 1130 * @since 1.1 1131 */ -1132 public Email addReplyTo(String email, String name, String charset) +1132 public Email addReplyTo(final String email, final String name, final String charset) 1133 throws EmailException 1134 { 1135 this.replyList.add(createInternetAddress(email, name, charset)); @@ -1155,7 +1155,7 @@ 1147 * @see javax.mail.internet.InternetAddress 1148 * @since 1.1 1149 */ -1150 public Email setReplyTo(Collection<InternetAddress> aCollection) throws EmailException +1150 public Email setReplyTo(final Collection<InternetAddress> aCollection) throws EmailException 1151 { 1152 if (aCollection == null || aCollection.isEmpty()) 1153 { @@ -1177,11 +1177,11 @@ 1169 * @throws IllegalArgumentException if either of the provided header / value is null or empty 1170 * @since 1.0 1171 */ -1172 public void setHeaders(Map<String, String> map) +1172 public void setHeaders(final Map<String, String> map) 1173 { 1174 this.headers.clear(); 1175 -1176 for (Map.Entry<String, String> entry : map.entrySet()) +1176 for (final Map.Entry<String, String> entry : map.entrySet()) 1177 { 1178 addHeader(entry.getKey(), entry.getValue()); 1179 } @@ -1195,7 +1195,7 @@ 1187 * @since 1.0 1188 * @throws IllegalArgumentException if either {@code name} or {@code value} is null or empty 1189 */ -1190 public void addHeader(String name, String value) +1190 public void addHeader(final String name, final String value) 1191 { 1192 if (EmailUtils.isEmpty(name)) 1193 { @@ -1216,7 +1216,7 @@ 1208 * @return An Email. 1209 * @since 1.0 1210 */ -1211 public Email setSubject(String aSubject) +1211 public Email setSubject(final String aSubject) 1212 { 1213 this.subject = aSubject; 1214 return this; @@ -1233,7 +1233,7 @@ 1225 * @throws IllegalStateException when the mail session is already initialized 1226 * @since 1.0 1227 */ -1228 public Email setBounceAddress(String email) +1228 public Email setBounceAddress(final String email) 1229 { 1230 checkSessionAlreadyInitialized(); 1231 this.bounceAddress = email; @@ -1367,9 +1367,9 @@ 1359 1360 if (this.headers.size() > 0) 1361 { -1362 for (Map.Entry<String, String> entry : this.headers.entrySet()) +1362 for (final Map.Entry<String, String> entry : this.headers.entrySet()) 1363 { -1364 String foldedValue = createFoldedHeaderValue(entry.getKey(), entry.getValue()); +1364 final String foldedValue = createFoldedHeaderValue(entry.getKey(), entry.getValue()); 1365 this.message.addHeader(entry.getKey(), foldedValue); 1366 } 1367 } @@ -1381,11 +1381,11 @@ 1373 1374 if (this.popBeforeSmtp) 1375 { -1376 Store store = session.getStore("pop3"); +1376 final Store store = session.getStore("pop3"); 1377 store.connect(this.popHost, this.popUsername, this.popPassword); 1378 } 1379 } -1380 catch (MessagingException me) +1380 catch (final MessagingException me) 1381 { 1382 throw new EmailException(me); 1383 } @@ -1408,9 +1408,9 @@ 1400 Transport.send(this.message); 1401 return this.message.getMessageID(); 1402 } -1403 catch (Throwable t) +1403 catch (final Throwable t) 1404 { -1405 String msg = "Sending the email to the following server failed : " +1405 final String msg = "Sending the email to the following server failed : " 1406 + this.getHostName() 1407 + ":" 1408 + this.getSmtpPort(); @@ -1452,7 +1452,7 @@ 1444 * @param date Date to use as the sent date on the email 1445 * @since 1.0 1446 */ -1447 public void setSentDate(Date date) +1447 public void setSentDate(final Date date) 1448 { 1449 if (date != null) 1450 { @@ -1576,7 +1576,7 @@ 1568 * @return An InternetAddress[]. 1569 * @since 1.0 1570 */ -1571 protected InternetAddress[] toInternetAddressArray(List<InternetAddress> list) +1571 protected InternetAddress[] toInternetAddressArray(final List<InternetAddress> list) 1572 { 1573 return list.toArray(new InternetAddress[list.size()]); 1574 } @@ -1591,10 +1591,10 @@ 1583 * @since 1.0 1584 */ 1585 public void setPopBeforeSmtp( -1586 boolean newPopBeforeSmtp, -1587 String newPopHost, -1588 String newPopUsername, -1589 String newPopPassword) +1586 final boolean newPopBeforeSmtp, +1587 final String newPopHost, +1588 final String newPopUsername, +1589 final String newPopPassword) 1590 { 1591 this.popBeforeSmtp = newPopBeforeSmtp; 1592 this.popHost = newPopHost; @@ -1634,7 +1634,7 @@ 1626 * @param ssl whether to enable the SSL transport 1627 */ 1628 @Deprecated -1629 public void setSSL(boolean ssl) +1629 public void setSSL(final boolean ssl) 1630 { 1631 setSSLOnConnect(ssl); 1632 } @@ -1646,7 +1646,7 @@ 1638 * @return An Email. 1639 * @since 1.3 1640 */ -1641 public Email setSSLOnConnect(boolean ssl) +1641 public Email setSSLOnConnect(final boolean ssl) 1642 { 1643 checkSessionAlreadyInitialized(); 1644 this.sslOnConnect = ssl; @@ -1672,7 +1672,7 @@ 1664 * @return An Email. 1665 * @since 1.3 1666 */ -1667 public Email setSSLCheckServerIdentity(boolean sslCheckServerIdentity) +1667 public Email setSSLCheckServerIdentity(final boolean sslCheckServerIdentity) 1668 { 1669 checkSessionAlreadyInitialized(); 1670 this.sslCheckServerIdentity = sslCheckServerIdentity; @@ -1703,7 +1703,7 @@ 1695 * 1696 * @param sslSmtpPort the SSL port to use for the SMTP transport 1697 */ -1698 public void setSslSmtpPort(String sslSmtpPort) +1698 public void setSslSmtpPort(final String sslSmtpPort) 1699 { 1700 checkSessionAlreadyInitialized(); 1701 this.sslSmtpPort = sslSmtpPort; @@ -1733,7 +1733,7 @@ 1725 * @return An Email. 1726 * @since 1.3.2 1727 */ -1728 public Email setSendPartial(boolean sendPartial) +1728 public Email setSendPartial(final boolean sendPartial) 1729 { 1730 checkSessionAlreadyInitialized(); 1731 this.sendPartial = sendPartial; @@ -1798,7 +1798,7 @@ 1790 * @param socketConnectionTimeout the connection timeout 1791 * @since 1.2 1792 */ -1793 public void setSocketConnectionTimeout(int socketConnectionTimeout) +1793 public void setSocketConnectionTimeout(final int socketConnectionTimeout) 1794 { 1795 checkSessionAlreadyInitialized(); 1796 this.socketConnectionTimeout = socketConnectionTimeout; @@ -1822,7 +1822,7 @@ 1814 * @param socketTimeout the socket I/O timeout 1815 * @since 1.2 1816 */ -1817 public void setSocketTimeout(int socketTimeout) +1817 public void setSocketTimeout(final int socketTimeout) 1818 { 1819 checkSessionAlreadyInitialized(); 1820 this.socketTimeout = socketTimeout; @@ -1835,7 +1835,7 @@ 1827 * @param aSession mail session to be used 1828 * @return the newly created message 1829 */ -1830 protected MimeMessage createMimeMessage(Session aSession) +1830 protected MimeMessage createMimeMessage(final Session aSession) 1831 { 1832 return new MimeMessage(aSession); 1833 } @@ -1848,7 +1848,7 @@ 1840 * @return the folded header value 1841 * @throws IllegalArgumentException if either the name or value is null or empty 1842 */ -1843 private String createFoldedHeaderValue(String name, Object value) +1843 private String createFoldedHeaderValue(final String name, final Object value) 1844 { 1845 String result; 1846 @@ -1865,7 +1865,7 @@ 1857 { 1858 result = MimeUtility.fold(name.length() + 2, MimeUtility.encodeText(value.toString(), this.charset, null)); 1859 } -1860 catch (UnsupportedEncodingException e) +1860 catch (final UnsupportedEncodingException e) 1861 { 1862 result = value.toString(); 1863 } @@ -1882,7 +1882,7 @@ 1874 * @return An internet address. 1875 * @throws EmailException Thrown when the supplied address, name or charset were invalid. 1876 */ -1877 private InternetAddress createInternetAddress(String email, String name, String charsetName) +1877 private InternetAddress createInternetAddress(final String email, final String name, final String charsetName) 1878 throws EmailException 1879 { 1880 InternetAddress address = null; @@ -1903,7 +1903,7 @@ 1895 { 1896 // canonicalize the charset name and make sure 1897 // the current platform supports it. -1898 Charset set = Charset.forName(charsetName); +1898 final Charset set = Charset.forName(charsetName); 1899 address.setPersonal(name, set.name()); 1900 } 1901 } @@ -1912,11 +1912,11 @@ 1904 // it will throw AddressException. 1905 address.validate(); 1906 } -1907 catch (AddressException e) +1907 catch (final AddressException e) 1908 { 1909 throw new EmailException(e); 1910 } -1911 catch (UnsupportedEncodingException e) +1911 catch (final UnsupportedEncodingException e) 1912 { 1913 throw new EmailException(e); 1914 } Modified: websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/EmailAttachment.html ============================================================================== --- websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/EmailAttachment.html (original) +++ websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/EmailAttachment.html Wed Jul 9 20:46:21 2014 @@ -30,7 +30,7 @@ 022 * This class models an email attachment. Used by MultiPartEmail. 023 * 024 * @since 1.0 -025 * @version $Id: EmailAttachment.java 1459997 2013-03-22 21:23:15Z tn $ +025 * @version $Id: EmailAttachment.java 1606709 2014-06-30 12:26:06Z ggregory $ 026 */ 027public class EmailAttachment 028{ @@ -116,7 +116,7 @@ 108 * @param desc A String. 109 * @since 1.0 110 */ -111 public void setDescription(String desc) +111 public void setDescription(final String desc) 112 { 113 this.description = desc; 114 } @@ -127,7 +127,7 @@ 119 * @param aName A String. 120 * @since 1.0 121 */ -122 public void setName(String aName) +122 public void setName(final String aName) 123 { 124 this.name = aName; 125 } @@ -142,7 +142,7 @@ 134 * @param aPath A String. 135 * @since 1.0 136 */ -137 public void setPath(String aPath) +137 public void setPath(final String aPath) 138 { 139 this.path = aPath; 140 } @@ -153,7 +153,7 @@ 145 * @param aUrl A URL. 146 * @since 1.0 147 */ -148 public void setURL(URL aUrl) +148 public void setURL(final URL aUrl) 149 { 150 this.url = aUrl; 151 } @@ -164,7 +164,7 @@ 156 * @param aDisposition A String. 157 * @since 1.0 158 */ -159 public void setDisposition(String aDisposition) +159 public void setDisposition(final String aDisposition) 160 { 161 this.disposition = aDisposition; 162 }