Robin Skoglund created HTTPCORE-375:
---------------------------------------
Summary: 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
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've instead be using {{String.getBytes(Charset)}}.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]