aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/ValInTryWithResources.java
blob: a532d48c11ed7b0b405ddf380fa6a4d866f3a02d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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();
      }
  }
}