mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-25 21:58:35 +00:00
14 lines
287 B
Plaintext
14 lines
287 B
Plaintext
import lombok.SneakyThrows;
|
|
|
|
public class SneakyThrowsExample implements Runnable {
|
|
@SneakyThrows(UnsupportedEncodingException.class)
|
|
public String utf8ToString(byte[] bytes) {
|
|
return new String(bytes, "UTF-8");
|
|
}
|
|
|
|
@SneakyThrows
|
|
public void run() {
|
|
throw new Throwable();
|
|
}
|
|
}
|