diff options
author | Roman Ivanov <roivanoff@gmail.com> | 2021-05-16 20:18:01 +0300 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2021-06-10 21:06:19 +0200 |
commit | c335c2bfc96caafc1f873be487285444f5d160e9 (patch) | |
tree | 4c1f414c00bea7ce7dd21ed824172b1b62b03285 /src/core/lombok | |
parent | 157ee0291a2925d23ae1290285b5278a4df1030c (diff) | |
download | lombok-c335c2bfc96caafc1f873be487285444f5d160e9.tar.gz lombok-c335c2bfc96caafc1f873be487285444f5d160e9.tar.bz2 lombok-c335c2bfc96caafc1f873be487285444f5d160e9.zip |
SneakyThrows.java fix typo - return String instead void
Diffstat (limited to 'src/core/lombok')
-rw-r--r-- | src/core/lombok/SneakyThrows.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lombok/SneakyThrows.java b/src/core/lombok/SneakyThrows.java index 0506d615..2a8009a3 100644 --- a/src/core/lombok/SneakyThrows.java +++ b/src/core/lombok/SneakyThrows.java @@ -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) { |