mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-28 08:21:35 +00:00
12 lines
283 B
Java
12 lines
283 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();
|
|
}
|
|
}
|
|
} |