What is the recommended way to handle an UnsupportedEncodingException when calling String.getBytes(\"UTF-8\") inside a library method?
If I\'m reading http://docs.orac
If you use Lombok, @SneakyThrows annotation can be used to avoid this.
From Lombok documentation:
"@SneakyThrows can be used to sneakily throw checked exceptions without actually declaring this in your method's throws clause.
https://projectlombok.org/features/SneakyThrows