mirror of
https://github.com/tiennm99/lombok.git
synced 2026-08-01 10:20:51 +00:00
[Log] updated naming for @Log (topic= instead of mchmulder's 'value').
15 lines
411 B
Java
15 lines
411 B
Java
import lombok.val;
|
|
import java.io.IOException;
|
|
public class ValInTryWithResources {
|
|
public ValInTryWithResources() {
|
|
super();
|
|
}
|
|
public void whyTryInsteadOfCleanup() throws IOException {
|
|
try (final @val java.io.InputStream in = getClass().getResourceAsStream("ValInTryWithResources.class"))
|
|
{
|
|
final @val java.io.InputStream i = in;
|
|
final @val int j = in.read();
|
|
}
|
|
}
|
|
}
|