So, you’re tired of rethrowing checked Exceptions that you can’t handle? Did you wish a long time ago IOException and SQLException were in fact RuntimeExceptions (as they should be according to Sun’s own definition)? The pain was there but it got kind of dull over the years? Acceptance of the inevitable and all that. How about this:
@SneakyThrows public void doSomething() { throw new Exception(); }
Did I hear a “WTF”? Say hello to project Lombok.
IBM developerWorks has a great article to get you started with your own custom AST transformations.
Tagged: AST, AST Transformation, Compiler, Java, Lombok
