mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-27 20:25:27 +00:00
7079271802
they should now be able to handle running JDK8 etc tests. CAREFUL: You MUST name your JDK8 'JavaSE-1.8' or it won't work. Also added a basic test for JDK8 features.
12 lines
284 B
Java
12 lines
284 B
Java
//version 7:
|
|
import lombok.val;
|
|
import java.io.IOException;
|
|
|
|
public class ValInTryWithResources {
|
|
public void whyTryInsteadOfCleanup() throws IOException {
|
|
try (val in = getClass().getResourceAsStream("ValInTryWithResources.class")) {
|
|
val i = in;
|
|
val j = in.read();
|
|
}
|
|
}
|
|
} |