mirror of
https://github.com/tiennm99/lombok.git
synced 2026-08-10 20:22:29 +00:00
Added tests for ecj, fixed a few minor bugs that came out of that.
This commit is contained in:
@@ -3,13 +3,13 @@ import java.io.IOException;
|
||||
import java.util.Random;
|
||||
|
||||
class SneakyThrowsMultiple {
|
||||
@lombok.SneakyThrows(IOException.class,Throwable.class)
|
||||
@lombok.SneakyThrows({IOException.class,Throwable.class})
|
||||
public void test() {
|
||||
System.out.println("test1");
|
||||
throw new IOException();
|
||||
}
|
||||
|
||||
@lombok.SneakyThrows(AWTException.class,IOException.class)
|
||||
@lombok.SneakyThrows({AWTException.class,IOException.class})
|
||||
public void test2() {
|
||||
System.out.println("test2");
|
||||
if (new Random().nextBoolean()) {
|
||||
|
||||
Reference in New Issue
Block a user