diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2021-03-24 06:20:02 +0100 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2021-03-24 06:22:15 +0100 |
commit | 52a31bc4ae2806907194d32567a820c670670357 (patch) | |
tree | 0c5322c9c41fffe091d72834d9e5981f077e6c7b /test/transform/resource/before | |
parent | 3d7754e269ec84604d43be97a684bb26b519c6b9 (diff) | |
download | lombok-52a31bc4ae2806907194d32567a820c670670357.tar.gz lombok-52a31bc4ae2806907194d32567a820c670670357.tar.bz2 lombok-52a31bc4ae2806907194d32567a820c670670357.zip |
[records] [`@NonNull`] eclipse impl onfthe `@NonNull` on record components feature.
All tests passing.
Diffstat (limited to 'test/transform/resource/before')
22 files changed, 23 insertions, 23 deletions
diff --git a/test/transform/resource/before/BuilderSimpleOnRecord.java b/test/transform/resource/before/BuilderSimpleOnRecord.java index 7968db64..fdf681e7 100644 --- a/test/transform/resource/before/BuilderSimpleOnRecord.java +++ b/test/transform/resource/before/BuilderSimpleOnRecord.java @@ -3,5 +3,5 @@ import java.util.List; @lombok.Builder(access = lombok.AccessLevel.PROTECTED) -record BuilderSimpleOnRecord<T>(List<T> l, String a) { +public record BuilderSimpleOnRecord<T>(List<T> l, String a) { } diff --git a/test/transform/resource/before/BuilderSingularOnRecord.java b/test/transform/resource/before/BuilderSingularOnRecord.java index 0ffd80be..c34fdabd 100644 --- a/test/transform/resource/before/BuilderSingularOnRecord.java +++ b/test/transform/resource/before/BuilderSingularOnRecord.java @@ -7,5 +7,5 @@ import lombok.Builder; import lombok.Singular; @Builder -record BuilderSingularOnRecord<T>(@Singular List<T> children, @Singular Collection<? extends Number> scarves, @SuppressWarnings("all") @Singular("rawList") List rawList) { +public record BuilderSingularOnRecord<T>(@Singular List<T> children, @Singular Collection<? extends Number> scarves, @SuppressWarnings("all") @Singular("rawList") List rawList) { }
\ No newline at end of file diff --git a/test/transform/resource/before/ConstructorsOnRecord.java b/test/transform/resource/before/ConstructorsOnRecord.java index d45495c8..003fc533 100644 --- a/test/transform/resource/before/ConstructorsOnRecord.java +++ b/test/transform/resource/before/ConstructorsOnRecord.java @@ -7,5 +7,5 @@ import lombok.RequiredArgsConstructor; @AllArgsConstructor @RequiredArgsConstructor @NoArgsConstructor -record ConstructorsOnRecord(String a, String b) { +public record ConstructorsOnRecord(String a, String b) { }
\ No newline at end of file diff --git a/test/transform/resource/before/DataOnRecord.java b/test/transform/resource/before/DataOnRecord.java index ed32c337..caf14d52 100644 --- a/test/transform/resource/before/DataOnRecord.java +++ b/test/transform/resource/before/DataOnRecord.java @@ -3,5 +3,5 @@ import lombok.Data; @Data -record DataOnRecord(String a, String b) { +public record DataOnRecord(String a, String b) { }
\ No newline at end of file diff --git a/test/transform/resource/before/EqualsAndHashCodeOnRecord.java b/test/transform/resource/before/EqualsAndHashCodeOnRecord.java index 5c295b3d..84b808bb 100644 --- a/test/transform/resource/before/EqualsAndHashCodeOnRecord.java +++ b/test/transform/resource/before/EqualsAndHashCodeOnRecord.java @@ -3,5 +3,5 @@ import lombok.EqualsAndHashCode; @EqualsAndHashCode -record EqualsAndHashCodeOnRecord(String a, String b) { +public record EqualsAndHashCodeOnRecord(String a, String b) { }
\ No newline at end of file diff --git a/test/transform/resource/before/FieldDefaultsOnRecord.java b/test/transform/resource/before/FieldDefaultsOnRecord.java index cf74508d..94089b41 100644 --- a/test/transform/resource/before/FieldDefaultsOnRecord.java +++ b/test/transform/resource/before/FieldDefaultsOnRecord.java @@ -1,5 +1,5 @@ // version 14: @lombok.experimental.FieldDefaults(makeFinal = true) -record FieldDefaultsOnRecord(String a, String b) { +public record FieldDefaultsOnRecord(String a, String b) { }
\ No newline at end of file diff --git a/test/transform/resource/before/FieldNameConstantsOnRecord.java b/test/transform/resource/before/FieldNameConstantsOnRecord.java index 0905e082..876bb853 100644 --- a/test/transform/resource/before/FieldNameConstantsOnRecord.java +++ b/test/transform/resource/before/FieldNameConstantsOnRecord.java @@ -4,6 +4,6 @@ import lombok.experimental.FieldNameConstants; import lombok.AccessLevel; @FieldNameConstants(level = AccessLevel.PACKAGE) -record FieldNameConstantsOnRecord(String iAmADvdPlayer, int $skipMe, @FieldNameConstants.Exclude int andMe, String butPrintMePlease) { +public record FieldNameConstantsOnRecord(String iAmADvdPlayer, int $skipMe, @FieldNameConstants.Exclude int andMe, String butPrintMePlease) { static double skipMeToo; }
\ No newline at end of file diff --git a/test/transform/resource/before/GetterOnRecord.java b/test/transform/resource/before/GetterOnRecord.java index 5a56a6d4..0addbfc6 100644 --- a/test/transform/resource/before/GetterOnRecord.java +++ b/test/transform/resource/before/GetterOnRecord.java @@ -3,5 +3,5 @@ import lombok.Getter; @Getter -record GetterOnRecord(String a, String b) { +public record GetterOnRecord(String a, String b) { }
\ No newline at end of file diff --git a/test/transform/resource/before/LoggerConfigOnRecord.java b/test/transform/resource/before/LoggerConfigOnRecord.java index c5f5a05a..b30392b3 100644 --- a/test/transform/resource/before/LoggerConfigOnRecord.java +++ b/test/transform/resource/before/LoggerConfigOnRecord.java @@ -4,5 +4,5 @@ import lombok.extern.slf4j.Slf4j; @Slf4j -record LoggerConfigOnRecord(String a, String b) { +public record LoggerConfigOnRecord(String a, String b) { }
\ No newline at end of file diff --git a/test/transform/resource/before/LoggerSlf4jOnRecord.java b/test/transform/resource/before/LoggerSlf4jOnRecord.java index f3402742..26359fd6 100644 --- a/test/transform/resource/before/LoggerSlf4jOnRecord.java +++ b/test/transform/resource/before/LoggerSlf4jOnRecord.java @@ -3,5 +3,5 @@ import lombok.extern.slf4j.Slf4j; @Slf4j -record LoggerSlf4jOnRecord(String a, String b) { +public record LoggerSlf4jOnRecord(String a, String b) { }
\ No newline at end of file diff --git a/test/transform/resource/before/NonNullExistingConstructorOnRecord.java b/test/transform/resource/before/NonNullExistingConstructorOnRecord.java index 1faf7d69..6a00e2c4 100644 --- a/test/transform/resource/before/NonNullExistingConstructorOnRecord.java +++ b/test/transform/resource/before/NonNullExistingConstructorOnRecord.java @@ -2,8 +2,8 @@ import lombok.NonNull; -record NonNullOnRecord(@NonNull String a, @NonNull String b) { - public NonNullOnRecord(@NonNull String b) { +public record NonNullExistingConstructorOnRecord(@NonNull String a, @NonNull String b) { + public NonNullExistingConstructorOnRecord(@NonNull String b) { this("default", b); } }
\ No newline at end of file diff --git a/test/transform/resource/before/NonNullOnRecord.java b/test/transform/resource/before/NonNullOnRecord.java index 56a96433..ba6121a6 100644 --- a/test/transform/resource/before/NonNullOnRecord.java +++ b/test/transform/resource/before/NonNullOnRecord.java @@ -2,5 +2,5 @@ import lombok.NonNull; -record NonNullOnRecord(@NonNull String a, @NonNull String b) { +public record NonNullOnRecord(@NonNull String a, @NonNull String b) { }
\ No newline at end of file diff --git a/test/transform/resource/before/NonNullOnRecord3.java b/test/transform/resource/before/NonNullOnRecord3.java index 88870192..24198002 100644 --- a/test/transform/resource/before/NonNullOnRecord3.java +++ b/test/transform/resource/before/NonNullOnRecord3.java @@ -2,7 +2,7 @@ import lombok.NonNull; -record NonNullOnRecord3(@NonNull String a) { +public record NonNullOnRecord3(@NonNull String a) { public NonNullOnRecord3(String a) { this.a = a; } diff --git a/test/transform/resource/before/SetterOnRecord.java b/test/transform/resource/before/SetterOnRecord.java index c91e06cd..97e1a966 100644 --- a/test/transform/resource/before/SetterOnRecord.java +++ b/test/transform/resource/before/SetterOnRecord.java @@ -3,5 +3,5 @@ import lombok.Setter; @Setter -record SetterOnRecord(String a, String b) { +public record SetterOnRecord(String a, String b) { }
\ No newline at end of file diff --git a/test/transform/resource/before/SynchronizedInRecord.java b/test/transform/resource/before/SynchronizedInRecord.java index 99f87543..0569fd5e 100644 --- a/test/transform/resource/before/SynchronizedInRecord.java +++ b/test/transform/resource/before/SynchronizedInRecord.java @@ -2,7 +2,7 @@ import lombok.Synchronized; -record SynchronizedInRecord(String a, String b) { +public record SynchronizedInRecord(String a, String b) { @Synchronized public void foo() { String foo = "bar"; diff --git a/test/transform/resource/before/ToStringOnRecord.java b/test/transform/resource/before/ToStringOnRecord.java index 279c6f6c..2d3ae039 100644 --- a/test/transform/resource/before/ToStringOnRecord.java +++ b/test/transform/resource/before/ToStringOnRecord.java @@ -3,5 +3,5 @@ import lombok.ToString; @ToString -record ToStringOnRecord(String a, String b) { +public record ToStringOnRecord(String a, String b) { }
\ No newline at end of file diff --git a/test/transform/resource/before/UtilityClassOnRecord.java b/test/transform/resource/before/UtilityClassOnRecord.java index 1e3ebb38..4d73a166 100644 --- a/test/transform/resource/before/UtilityClassOnRecord.java +++ b/test/transform/resource/before/UtilityClassOnRecord.java @@ -3,5 +3,5 @@ import lombok.experimental.UtilityClass; @UtilityClass -record UtilityClassOnRecord(String a, String b) { +public record UtilityClassOnRecord(String a, String b) { }
\ No newline at end of file diff --git a/test/transform/resource/before/ValueOnRecord.java b/test/transform/resource/before/ValueOnRecord.java index e1e49595..64f685be 100644 --- a/test/transform/resource/before/ValueOnRecord.java +++ b/test/transform/resource/before/ValueOnRecord.java @@ -3,5 +3,5 @@ import lombok.Value; @Value -record ValueOnRecord(String a, String b) { +public record ValueOnRecord(String a, String b) { }
\ No newline at end of file diff --git a/test/transform/resource/before/WithByOnRecord.java b/test/transform/resource/before/WithByOnRecord.java index 6c7b8e2d..8558d9a7 100644 --- a/test/transform/resource/before/WithByOnRecord.java +++ b/test/transform/resource/before/WithByOnRecord.java @@ -3,5 +3,5 @@ import lombok.experimental.WithBy; @WithBy -record WithByOnRecord(String a, String b) { +public record WithByOnRecord(String a, String b) { }
\ No newline at end of file diff --git a/test/transform/resource/before/WithByOnRecordComponent.java b/test/transform/resource/before/WithByOnRecordComponent.java index 7e0f0f19..48bd66ca 100644 --- a/test/transform/resource/before/WithByOnRecordComponent.java +++ b/test/transform/resource/before/WithByOnRecordComponent.java @@ -2,5 +2,5 @@ import lombok.experimental.WithBy; -record WithByOnRecordComponent(@WithBy String a, String b) { +public record WithByOnRecordComponent(@WithBy String a, String b) { }
\ No newline at end of file diff --git a/test/transform/resource/before/WithOnRecord.java b/test/transform/resource/before/WithOnRecord.java index 211da3c8..99e77630 100644 --- a/test/transform/resource/before/WithOnRecord.java +++ b/test/transform/resource/before/WithOnRecord.java @@ -3,5 +3,5 @@ import lombok.With; @With -record WithOnRecord(String a, String b) { +public record WithOnRecord(String a, String b) { }
\ No newline at end of file diff --git a/test/transform/resource/before/WithOnRecordComponent.java b/test/transform/resource/before/WithOnRecordComponent.java index 6f827851..d8461b8b 100644 --- a/test/transform/resource/before/WithOnRecordComponent.java +++ b/test/transform/resource/before/WithOnRecordComponent.java @@ -2,5 +2,5 @@ import lombok.With; -record WithOnRecordComponent(@With String a, String b) { +public record WithOnRecordComponent(@With String a, String b) { }
\ No newline at end of file |