mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 00:17:45 +00:00
SneakyThrows.java fix typo - return String instead void
This commit is contained in:
1 parent
157ee0291a
commit
c335c2bfc9
1 file changed
+2
-2
@@ -39,14 +39,14 @@ import java.lang.annotation.Target;
|
||||
* Example:
|
||||
* <pre>
|
||||
* @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) {
|
||||
|
||||
Reference in new issue
Block a user