aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2021-03-24 06:20:02 +0100
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2021-03-24 06:22:15 +0100
commit52a31bc4ae2806907194d32567a820c670670357 (patch)
tree0c5322c9c41fffe091d72834d9e5981f077e6c7b /test/transform/resource/after-delombok
parent3d7754e269ec84604d43be97a684bb26b519c6b9 (diff)
downloadlombok-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/after-delombok')
-rw-r--r--test/transform/resource/after-delombok/BuilderSimpleOnRecord.java2
-rw-r--r--test/transform/resource/after-delombok/BuilderSingularOnRecord.java2
-rw-r--r--test/transform/resource/after-delombok/ConstructorsOnRecord.java2
-rw-r--r--test/transform/resource/after-delombok/DataOnRecord.java2
-rw-r--r--test/transform/resource/after-delombok/EqualsAndHashCodeOnRecord.java2
-rw-r--r--test/transform/resource/after-delombok/FieldDefaultsOnRecord.java2
-rw-r--r--test/transform/resource/after-delombok/FieldNameConstantsOnRecord.java2
-rw-r--r--test/transform/resource/after-delombok/GetterOnRecord.java2
-rw-r--r--test/transform/resource/after-delombok/LoggerConfigOnRecord.java2
-rw-r--r--test/transform/resource/after-delombok/LoggerSlf4jOnRecord.java2
-rw-r--r--test/transform/resource/after-delombok/NonNullExistingConstructorOnRecord.java8
-rw-r--r--test/transform/resource/after-delombok/NonNullOnRecord.java4
-rw-r--r--test/transform/resource/after-delombok/NonNullOnRecord2.java2
-rw-r--r--test/transform/resource/after-delombok/NonNullOnRecord3.java2
-rw-r--r--test/transform/resource/after-delombok/SetterOnRecord.java2
-rw-r--r--test/transform/resource/after-delombok/SynchronizedInRecord.java2
-rw-r--r--test/transform/resource/after-delombok/ToStringOnRecord.java2
-rw-r--r--test/transform/resource/after-delombok/UtilityClassOnRecord.java2
-rw-r--r--test/transform/resource/after-delombok/ValueOnRecord.java2
-rw-r--r--test/transform/resource/after-delombok/WithByOnRecord.java2
-rw-r--r--test/transform/resource/after-delombok/WithByOnRecordComponent.java2
-rw-r--r--test/transform/resource/after-delombok/WithOnRecord.java2
-rw-r--r--test/transform/resource/after-delombok/WithOnRecordComponent.java2
23 files changed, 27 insertions, 27 deletions
diff --git a/test/transform/resource/after-delombok/BuilderSimpleOnRecord.java b/test/transform/resource/after-delombok/BuilderSimpleOnRecord.java
index aa35cf23..acb6f20a 100644
--- a/test/transform/resource/after-delombok/BuilderSimpleOnRecord.java
+++ b/test/transform/resource/after-delombok/BuilderSimpleOnRecord.java
@@ -1,6 +1,6 @@
// version 14:
import java.util.List;
-record BuilderSimpleOnRecord<T>(List<T> l, String a) {
+public record BuilderSimpleOnRecord<T>(List<T> l, String a) {
@java.lang.SuppressWarnings("all")
protected static class BuilderSimpleOnRecordBuilder<T> {
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-delombok/BuilderSingularOnRecord.java b/test/transform/resource/after-delombok/BuilderSingularOnRecord.java
index 41a976cd..0aaa12cd 100644
--- a/test/transform/resource/after-delombok/BuilderSingularOnRecord.java
+++ b/test/transform/resource/after-delombok/BuilderSingularOnRecord.java
@@ -1,7 +1,7 @@
// version 14:
import java.util.Collection;
import java.util.List;
-record BuilderSingularOnRecord<T>(List<T> children, Collection<? extends Number> scarves, @SuppressWarnings("all") List rawList) {
+public record BuilderSingularOnRecord<T>(List<T> children, Collection<? extends Number> scarves, @SuppressWarnings("all") List rawList) {
@java.lang.SuppressWarnings("all")
public static class BuilderSingularOnRecordBuilder<T> {
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-delombok/ConstructorsOnRecord.java b/test/transform/resource/after-delombok/ConstructorsOnRecord.java
index 3d091bd5..1861fd22 100644
--- a/test/transform/resource/after-delombok/ConstructorsOnRecord.java
+++ b/test/transform/resource/after-delombok/ConstructorsOnRecord.java
@@ -1,3 +1,3 @@
// version 14:
-record ConstructorsOnRecord(String a, String b) {
+public record ConstructorsOnRecord(String a, String b) {
}
diff --git a/test/transform/resource/after-delombok/DataOnRecord.java b/test/transform/resource/after-delombok/DataOnRecord.java
index 7fde94f9..e24c7fc2 100644
--- a/test/transform/resource/after-delombok/DataOnRecord.java
+++ b/test/transform/resource/after-delombok/DataOnRecord.java
@@ -1,3 +1,3 @@
// version 14:
-record DataOnRecord(String a, String b) {
+public record DataOnRecord(String a, String b) {
}
diff --git a/test/transform/resource/after-delombok/EqualsAndHashCodeOnRecord.java b/test/transform/resource/after-delombok/EqualsAndHashCodeOnRecord.java
index 93213d80..c251a584 100644
--- a/test/transform/resource/after-delombok/EqualsAndHashCodeOnRecord.java
+++ b/test/transform/resource/after-delombok/EqualsAndHashCodeOnRecord.java
@@ -1,3 +1,3 @@
// version 14:
-record EqualsAndHashCodeOnRecord(String a, String b) {
+public record EqualsAndHashCodeOnRecord(String a, String b) {
}
diff --git a/test/transform/resource/after-delombok/FieldDefaultsOnRecord.java b/test/transform/resource/after-delombok/FieldDefaultsOnRecord.java
index a7b37d9f..fd5f0f95 100644
--- a/test/transform/resource/after-delombok/FieldDefaultsOnRecord.java
+++ b/test/transform/resource/after-delombok/FieldDefaultsOnRecord.java
@@ -1,3 +1,3 @@
// version 14:
-record FieldDefaultsOnRecord(String a, String b) {
+public record FieldDefaultsOnRecord(String a, String b) {
}
diff --git a/test/transform/resource/after-delombok/FieldNameConstantsOnRecord.java b/test/transform/resource/after-delombok/FieldNameConstantsOnRecord.java
index 8f29cc96..ffaab75e 100644
--- a/test/transform/resource/after-delombok/FieldNameConstantsOnRecord.java
+++ b/test/transform/resource/after-delombok/FieldNameConstantsOnRecord.java
@@ -1,5 +1,5 @@
// version 14:
-record FieldNameConstantsOnRecord(String iAmADvdPlayer, int $skipMe, int andMe, String butPrintMePlease) {
+public record FieldNameConstantsOnRecord(String iAmADvdPlayer, int $skipMe, int andMe, String butPrintMePlease) {
static double skipMeToo;
@java.lang.SuppressWarnings("all")
static final class Fields {
diff --git a/test/transform/resource/after-delombok/GetterOnRecord.java b/test/transform/resource/after-delombok/GetterOnRecord.java
index 5b7c5058..6318a6cc 100644
--- a/test/transform/resource/after-delombok/GetterOnRecord.java
+++ b/test/transform/resource/after-delombok/GetterOnRecord.java
@@ -1,3 +1,3 @@
// version 14:
-record GetterOnRecord(String a, String b) {
+public record GetterOnRecord(String a, String b) {
}
diff --git a/test/transform/resource/after-delombok/LoggerConfigOnRecord.java b/test/transform/resource/after-delombok/LoggerConfigOnRecord.java
index 2ef0bffd..58d3fad0 100644
--- a/test/transform/resource/after-delombok/LoggerConfigOnRecord.java
+++ b/test/transform/resource/after-delombok/LoggerConfigOnRecord.java
@@ -1,3 +1,3 @@
// version 14:
-record LoggerConfigOnRecord(String a, String b) {
+public record LoggerConfigOnRecord(String a, String b) {
}
diff --git a/test/transform/resource/after-delombok/LoggerSlf4jOnRecord.java b/test/transform/resource/after-delombok/LoggerSlf4jOnRecord.java
index caa2ce2c..831ac357 100644
--- a/test/transform/resource/after-delombok/LoggerSlf4jOnRecord.java
+++ b/test/transform/resource/after-delombok/LoggerSlf4jOnRecord.java
@@ -1,5 +1,5 @@
// version 16: the SuppressWarnings is not emitted in java14/15 to work around a javac bug.
-record LoggerSlf4jOnRecord(String a, String b) {
+public record LoggerSlf4jOnRecord(String a, String b) {
@java.lang.SuppressWarnings("all")
private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LoggerSlf4jOnRecord.class);
}
diff --git a/test/transform/resource/after-delombok/NonNullExistingConstructorOnRecord.java b/test/transform/resource/after-delombok/NonNullExistingConstructorOnRecord.java
index 15e0aa66..45364815 100644
--- a/test/transform/resource/after-delombok/NonNullExistingConstructorOnRecord.java
+++ b/test/transform/resource/after-delombok/NonNullExistingConstructorOnRecord.java
@@ -1,14 +1,14 @@
-// version 14:
+// version 16:
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);
if (b == null) {
throw new java.lang.NullPointerException("b is marked non-null but is null");
}
}
@java.lang.SuppressWarnings("all")
- public NonNullOnRecord {
+ public NonNullExistingConstructorOnRecord {
if (a == null) {
throw new java.lang.NullPointerException("a is marked non-null but is null");
}
diff --git a/test/transform/resource/after-delombok/NonNullOnRecord.java b/test/transform/resource/after-delombok/NonNullOnRecord.java
index 7acfab36..465c30db 100644
--- a/test/transform/resource/after-delombok/NonNullOnRecord.java
+++ b/test/transform/resource/after-delombok/NonNullOnRecord.java
@@ -1,6 +1,6 @@
-// version 14:
+// version 16:
import lombok.NonNull;
-record NonNullOnRecord(@NonNull String a, @NonNull String b) {
+public record NonNullOnRecord(@NonNull String a, @NonNull String b) {
@java.lang.SuppressWarnings("all")
public NonNullOnRecord {
if (a == null) {
diff --git a/test/transform/resource/after-delombok/NonNullOnRecord2.java b/test/transform/resource/after-delombok/NonNullOnRecord2.java
index a166190c..d3021350 100644
--- a/test/transform/resource/after-delombok/NonNullOnRecord2.java
+++ b/test/transform/resource/after-delombok/NonNullOnRecord2.java
@@ -1,4 +1,4 @@
-// version 14:
+// version 16:
import lombok.NonNull;
record NonNullOnRecord2(@NonNull String a) {
public NonNullOnRecord2 {
diff --git a/test/transform/resource/after-delombok/NonNullOnRecord3.java b/test/transform/resource/after-delombok/NonNullOnRecord3.java
index b1ecf6c0..62b385bc 100644
--- a/test/transform/resource/after-delombok/NonNullOnRecord3.java
+++ b/test/transform/resource/after-delombok/NonNullOnRecord3.java
@@ -1,6 +1,6 @@
// version 14:
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/after-delombok/SetterOnRecord.java b/test/transform/resource/after-delombok/SetterOnRecord.java
index 31665588..a6be2d8c 100644
--- a/test/transform/resource/after-delombok/SetterOnRecord.java
+++ b/test/transform/resource/after-delombok/SetterOnRecord.java
@@ -1,3 +1,3 @@
// version 14:
-record SetterOnRecord(String a, String b) {
+public record SetterOnRecord(String a, String b) {
}
diff --git a/test/transform/resource/after-delombok/SynchronizedInRecord.java b/test/transform/resource/after-delombok/SynchronizedInRecord.java
index 67ca868a..32e7daee 100644
--- a/test/transform/resource/after-delombok/SynchronizedInRecord.java
+++ b/test/transform/resource/after-delombok/SynchronizedInRecord.java
@@ -1,5 +1,5 @@
// version 14:
-record SynchronizedInRecord(String a, String b) {
+public record SynchronizedInRecord(String a, String b) {
public void foo() {
String foo = "bar";
}
diff --git a/test/transform/resource/after-delombok/ToStringOnRecord.java b/test/transform/resource/after-delombok/ToStringOnRecord.java
index f18508d7..6d6d4edf 100644
--- a/test/transform/resource/after-delombok/ToStringOnRecord.java
+++ b/test/transform/resource/after-delombok/ToStringOnRecord.java
@@ -1,3 +1,3 @@
// version 14:
-record ToStringOnRecord(String a, String b) {
+public record ToStringOnRecord(String a, String b) {
}
diff --git a/test/transform/resource/after-delombok/UtilityClassOnRecord.java b/test/transform/resource/after-delombok/UtilityClassOnRecord.java
index c6ee509a..3606b452 100644
--- a/test/transform/resource/after-delombok/UtilityClassOnRecord.java
+++ b/test/transform/resource/after-delombok/UtilityClassOnRecord.java
@@ -1,3 +1,3 @@
// version 14:
-record UtilityClassOnRecord(String a, String b) {
+public record UtilityClassOnRecord(String a, String b) {
}
diff --git a/test/transform/resource/after-delombok/ValueOnRecord.java b/test/transform/resource/after-delombok/ValueOnRecord.java
index 4f845c20..daf92236 100644
--- a/test/transform/resource/after-delombok/ValueOnRecord.java
+++ b/test/transform/resource/after-delombok/ValueOnRecord.java
@@ -1,3 +1,3 @@
// version 14:
-record ValueOnRecord(String a, String b) {
+public record ValueOnRecord(String a, String b) {
}
diff --git a/test/transform/resource/after-delombok/WithByOnRecord.java b/test/transform/resource/after-delombok/WithByOnRecord.java
index 6df5c9c4..4d1ccd01 100644
--- a/test/transform/resource/after-delombok/WithByOnRecord.java
+++ b/test/transform/resource/after-delombok/WithByOnRecord.java
@@ -1,5 +1,5 @@
// version 14:
-record WithByOnRecord(String a, String b) {
+public record WithByOnRecord(String a, String b) {
@java.lang.SuppressWarnings("all")
public WithByOnRecord withABy(final java.util.function.Function<? super String, ? extends String> transformer) {
return new WithByOnRecord(transformer.apply(this.a), this.b);
diff --git a/test/transform/resource/after-delombok/WithByOnRecordComponent.java b/test/transform/resource/after-delombok/WithByOnRecordComponent.java
index 91dd7b38..851c5560 100644
--- a/test/transform/resource/after-delombok/WithByOnRecordComponent.java
+++ b/test/transform/resource/after-delombok/WithByOnRecordComponent.java
@@ -1,5 +1,5 @@
// version 14:
-record WithByOnRecordComponent(String a, String b) {
+public record WithByOnRecordComponent(String a, String b) {
@java.lang.SuppressWarnings("all")
public WithByOnRecordComponent withABy(final java.util.function.Function<? super String, ? extends String> transformer) {
return new WithByOnRecordComponent(transformer.apply(this.a), this.b);
diff --git a/test/transform/resource/after-delombok/WithOnRecord.java b/test/transform/resource/after-delombok/WithOnRecord.java
index e981cc20..5c2f0a8f 100644
--- a/test/transform/resource/after-delombok/WithOnRecord.java
+++ b/test/transform/resource/after-delombok/WithOnRecord.java
@@ -1,5 +1,5 @@
// version 14:
-record WithOnRecord(String a, String b) {
+public record WithOnRecord(String a, String b) {
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
diff --git a/test/transform/resource/after-delombok/WithOnRecordComponent.java b/test/transform/resource/after-delombok/WithOnRecordComponent.java
index 5bc72f34..217da88a 100644
--- a/test/transform/resource/after-delombok/WithOnRecordComponent.java
+++ b/test/transform/resource/after-delombok/WithOnRecordComponent.java
@@ -1,5 +1,5 @@
// version 14:
-record WithOnRecordComponent(String a, String b) {
+public record WithOnRecordComponent(String a, String b) {
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/