aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/ValInTryWithResources.java
blob: 9aae99a26ff292da4c61b443c01d0b1db3c40373 (plain)
1
2
3
4
5
6
7
8
9
10
//version 7
import java.io.IOException;
public class ValInTryWithResources {
	public void whyTryInsteadOfCleanup() throws IOException {
		try (java.io.InputStream in = getClass().getResourceAsStream("ValInTryWithResources.class")) {
			final java.io.InputStream i = in;
			final int j = in.read();
		}
	}
}