-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #73 SneakyThrows without parameter did not default to Throwable…
….class Added tests for SneakyThrows
- Loading branch information
Showing
3 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
class SneakyThrowsPlain { | ||
public void test() { | ||
try { | ||
System.out.println("test1"); | ||
} catch (java.lang.Throwable $ex) { | ||
throw lombok.Lombok.sneakyThrow($ex); | ||
} | ||
} | ||
|
||
public void test2() { | ||
try { | ||
System.out.println("test2"); | ||
} catch (java.lang.Throwable $ex) { | ||
throw lombok.Lombok.sneakyThrow($ex); | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import lombok.SneakyThrows; | ||
class SneakyThrowsPlain { | ||
@lombok.SneakyThrows public void test() { | ||
System.out.println("test1"); | ||
} | ||
|
||
@SneakyThrows public void test2() { | ||
System.out.println("test2"); | ||
} | ||
} |