Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michail Plushnikov
committed
Feb 5, 2015
1 parent
5aeb591
commit f35d008
Showing
10 changed files
with
101 additions
and
54 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
16 changes: 16 additions & 0 deletions
16
test-manual/lombok/src/main/java/de/plushnikov/builder/BuilderExperimentalExample.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,16 @@ | ||
package de.plushnikov.builder; | ||
|
||
import lombok.experimental.Builder; | ||
|
||
@Builder | ||
public class BuilderExperimentalExample { | ||
private String name; | ||
private int age; | ||
|
||
public static void main(String[] args) { | ||
BuilderExperimentalExample example = BuilderExperimentalExample.builder().age(123).name("Hallo").build(); | ||
BuilderExperimentalExample.builder().name("fsdf").age(23).name("123123").build(); | ||
System.out.println(example); | ||
} | ||
|
||
} |
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
27 changes: 27 additions & 0 deletions
27
test-manual/lombok/src/main/java/de/plushnikov/sneakythrows/BugReport.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,27 @@ | ||
package de.plushnikov.sneakythrows; | ||
|
||
import lombok.SneakyThrows; | ||
import java.io.IOException; | ||
public class BugReport { | ||
private IInner inner; | ||
|
||
//@SneakyThrows(IOException.class) | ||
public BugReport() { | ||
inner = new IInner() { | ||
@SneakyThrows(IOException.class) | ||
@Override | ||
public IInner doSomething() { | ||
System.out.println(); | ||
throw new IOException(); | ||
} | ||
}; | ||
} | ||
|
||
interface IInner { | ||
public IInner doSomething() throws IOException; | ||
} | ||
|
||
public static void main(String[] args) { | ||
System.out.println(new BugReport().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
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