forked from projectlombok/lombok
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request projectlombok#3602 from oleludwig/fix_sneak_throws…
…_and_prevent_null_analysis_remover Fix removal of SneakyThrows and PreventNullAnalysis from bytecode
- Loading branch information
Showing
6 changed files
with
50 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ Mateusz Matela <[email protected]> | |
Michael Dardis <[email protected]> | ||
Michael Ernst <[email protected]> | ||
Michiel Verheul <[email protected]> | ||
Ole Ludwig <[email protected]> | ||
Pascal Bihler <[email protected]> | ||
Peter Grant <[email protected]> | ||
Philipp Eichhorn <[email protected]> | ||
|
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
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
15 changes: 15 additions & 0 deletions
15
test/bytecode/resource/PostCompilePreventNullAnalysis.java
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,15 @@ | ||
public class PostCompilePreventNullAnalysis { | ||
public void test() { | ||
Object o = "Hello World!"; | ||
try { | ||
System.out.println(o); | ||
} finally { | ||
if (o != null) { | ||
if (lombok.Lombok.preventNullAnalysis(o) != null) { | ||
o.toString(); | ||
} | ||
} | ||
} | ||
} | ||
|
||
} |
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