mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 10:15:53 +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:
1 parent
2c53dc7a65
commit
b3b91a0ddd
2 files changed
+22
No files matched your search
@@ -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