aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/SneakyThrowsSingle.java
blob: e7b78ec751eebd1928733c5d7adf02728114f4fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import java.io.IOException;

class SneakyThrowsSingle {
	@lombok.SneakyThrows(Throwable.class) 
	public void test() {
		System.out.println("test1");
	}
	
	@lombok.SneakyThrows(IOException.class)
	public void test2() {
		System.out.println("test2");
		throw new IOException();
	}
	
	@lombok.SneakyThrows(value=IOException.class)
	public void test3() {
		System.out.println("test3");
		throw new IOException();
	}

}