Created
July 18, 2012 10:23
-
-
Save md-5/3135435 to your computer and use it in GitHub Desktop.
Lombok, winning!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.BufferedReader; | |
import java.io.ByteArrayInputStream; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import lombok.Cleanup; | |
import lombok.SneakyThrows; | |
import lombok.val; | |
public class Test { | |
@SneakyThrows(value = IOException.class) | |
public String lol() { | |
@Cleanup | |
val v = new BufferedReader(new InputStreamReader(new ByteArrayInputStream("lol".getBytes()))); | |
return v.readLine(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment