Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
4.4-alpha1
-
None
Description
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)'.