mirror of
https://github.com/tiennm99/lombok.git
synced 2026-08-01 10:20:51 +00:00
[Log] updated naming for @Log (topic= instead of mchmulder's 'value').
46 lines
951 B
Java
46 lines
951 B
Java
import lombok.SneakyThrows;
|
|
class SneakyThrowsPlain {
|
|
@lombok.SneakyThrows SneakyThrowsPlain() {
|
|
super();
|
|
try
|
|
{
|
|
System.out.println("constructor");
|
|
}
|
|
catch (final java.lang.Throwable $ex)
|
|
{
|
|
throw lombok.Lombok.sneakyThrow($ex);
|
|
}
|
|
}
|
|
@lombok.SneakyThrows SneakyThrowsPlain(int x) {
|
|
this();
|
|
try
|
|
{
|
|
System.out.println("constructor2");
|
|
}
|
|
catch (final java.lang.Throwable $ex)
|
|
{
|
|
throw lombok.Lombok.sneakyThrow($ex);
|
|
}
|
|
}
|
|
public @lombok.SneakyThrows void test() {
|
|
try
|
|
{
|
|
System.out.println("test1");
|
|
}
|
|
catch (final java.lang.Throwable $ex)
|
|
{
|
|
throw lombok.Lombok.sneakyThrow($ex);
|
|
}
|
|
}
|
|
public @SneakyThrows void test2() {
|
|
try
|
|
{
|
|
System.out.println("test2");
|
|
}
|
|
catch (final java.lang.Throwable $ex)
|
|
{
|
|
throw lombok.Lombok.sneakyThrow($ex);
|
|
}
|
|
}
|
|
}
|