You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2014/11/26 16:33:12 UTC

[jira] [Resolved] (HTTPCORE-375) Remove unnecessary throws UnsupportedEncodingException

     [ https://issues.apache.org/jira/browse/HTTPCORE-375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski resolved HTTPCORE-375.
----------------------------------------
       Resolution: Fixed
    Fix Version/s:     (was: 5.0)
                   5.0-alpha1

> Remove unnecessary throws UnsupportedEncodingException
> ------------------------------------------------------
>
>                 Key: HTTPCORE-375
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-375
>             Project: HttpComponents HttpCore
>          Issue Type: Improvement
>          Components: HttpCore
>    Affects Versions: 4.4-alpha1
>            Reporter: Robin Skoglund
>            Priority: Minor
>             Fix For: 5.0-alpha1
>
>         Attachments: HTTPCORE-375.patch
>
>
> StringEntity has constructors that unneccessarily declare 'throws UnsupportedEncodingException'. This over-complicates client code because you have to set up a lot of "this should never happen" exception handling.
> There's also a constructor that uses 'String.getBytes(String)', that should instead be using 'String.getBytes(Charset)'.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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