Details
-
Improvement
-
Status: Resolved
-
P4
-
Resolution: Fixed
-
2.16.0
Description
Currently the code assigns a new string with
String s = new String(bytes, "UTF-8");
This has the possibility of throwing an UnsupportedEncodingException.
Using
new String(bytes, StandardCharsets.UTF_8)
avoids the possibility of throwing an UnsupportedEncodingException
Attachments
Issue Links
- links to