Files
lombok/test/transform/resource/after-ecj/ValInTryWithResources.java
T
Reinier Zwitserloot d78135180c [deps] Updated eclipse deps to 3.9 tree. This also enables testing java7 features on ecj.
[Log] updated naming for @Log (topic= instead of mchmulder's 'value').
2014-02-10 21:56:35 +01:00

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();
}
}
}