mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 08:18:29 +00:00
[checkerframework]
A bit of a shadow feature because the checker framework folks need to do some work on their side. this update makes lombok generate a few checker framework annotations (if configured to do so) which let the checker framework add warnings and errors for example if you misuse builders, or ignore the return values of withers, etc.
This commit is contained in:
49 files changed
+1330
-205
No files matched your search
@@ -0,0 +1,19 @@
|
||||
//CONF: checkerframework = true
|
||||
import java.util.List;
|
||||
import lombok.Singular;
|
||||
|
||||
class CheckerFrameworkSuperBuilder {
|
||||
@lombok.experimental.SuperBuilder
|
||||
public static class Parent {
|
||||
@lombok.Builder.Default int x = 5;
|
||||
int y;
|
||||
int z;
|
||||
@Singular List<String> names;
|
||||
}
|
||||
|
||||
@lombok.experimental.SuperBuilder
|
||||
public static class Child extends Parent {
|
||||
@lombok.Builder.Default int a = 1;
|
||||
int b;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user