[records] [@NonNull] eclipse impl onfthe @NonNull on record components feature.

All tests passing.
This commit is contained in:
Reinier Zwitserloot committed 2021-03-24 06:22:15 +01:00
1 parent 3d7754e269
commit 52a31bc4ae
76 files changed
+316 -131

No files matched your search

@@ -1,6 +1,6 @@
// version 14:
import lombok.With;
@With record WithOnRecord(String a, String b) {
public @With record WithOnRecord(String a, String b) {
/* Implicit */ private final String a;
/* Implicit */ private final String b;
public WithOnRecord(String a, String b) {
@@ -8,9 +8,15 @@ import lombok.With;
.a = a;
.b = b;
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
public @java.lang.SuppressWarnings("all") WithOnRecord withA(final String a) {
return ((this.a == a) ? this : new WithOnRecord(a, this.b));
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
public @java.lang.SuppressWarnings("all") WithOnRecord withB(final String b) {
return ((this.b == b) ? this : new WithOnRecord(this.a, b));
}