mirror of
https://github.com/tiennm99/lombok.git
synced 2026-09-08 22:20:13 +00:00
added test case and delombok result for issue 520 (val in try-with-resources). WARNING: I havent added ecj test output yet because so far there is no ecj7 available for testing with our buildscripts. I should fix that first and then Ill sort this out.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
//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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user