You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sebb <se...@gmail.com> on 2013/03/17 12:24:45 UTC

Re: svn commit: r1456804 - /commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/mime/MimeUtility.java

On 15 March 2013 08:47,  <si...@apache.org> wrote:
> Author: simonetripodi
> Date: Fri Mar 15 08:47:53 2013
> New Revision: 1456804
>
> URL: http://svn.apache.org/r1456804
> Log:
> checkstyle: Expected @throws tag
>
> Modified:
>     commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/mime/MimeUtility.java
>
> Modified: commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/mime/MimeUtility.java
> URL: http://svn.apache.org/viewvc/commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/mime/MimeUtility.java?rev=1456804&r1=1456803&r2=1456804&view=diff
> ==============================================================================
> --- commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/mime/MimeUtility.java (original)
> +++ commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/mime/MimeUtility.java Fri Mar 15 08:47:53 2013
> @@ -74,7 +74,7 @@ public final class MimeUtility {
>       * @param text   The text to decode.
>       *
>       * @return The decoded test string.
> -     * @exception UnsupportedEncodingException
> +     * @throws UnsupportedEncodingException

Under what conditions is the exception thrown?
Needs documenting.
>       */
>      public static String decodeText(String text) throws UnsupportedEncodingException {
>          // if the text contains any encoded tokens, those tokens will be marked with "=?".  If the
> @@ -178,8 +178,8 @@ public final class MimeUtility {
>       * @param word   The possibly encoded word value.
>       *
>       * @return The decoded word.
> -     * @exception ParseException
> -     * @exception UnsupportedEncodingException
> +     * @throws ParseException
> +     * @throws UnsupportedEncodingException
>       */
>      private static String decodeWord(String word) throws ParseException, UnsupportedEncodingException {
>          // encoded words start with the characters "=?".  If this not an encoded word, we throw a
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org