SneakyThrows.java fix typo - return String instead void

This commit is contained in:
Roman Ivanov authored and Roel Spilker committed 2021-06-10 21:06:19 +02:00
1 parent 157ee0291a
commit c335c2bfc9
1 file changed
+2 -2
+2 -2
View File
@@ -39,14 +39,14 @@ import java.lang.annotation.Target;
* Example:
* <pre>
* &#64;SneakyThrows(UnsupportedEncodingException.class)
* public void utf8ToString(byte[] bytes) {
* public String utf8ToString(byte[] bytes) {
* return new String(bytes, "UTF-8");
* }
* </pre>
*
* Becomes:
* <pre>
* public void utf8ToString(byte[] bytes) {
* public String utf8ToString(byte[] bytes) {
* try {
* return new String(bytes, "UTF-8");
* } catch (UnsupportedEncodingException $uniqueName) {