diff options
Diffstat (limited to 'test/transform/resource/after-delombok')
-rw-r--r-- | test/transform/resource/after-delombok/BuilderWithNonNull.java | 40 | ||||
-rw-r--r-- | test/transform/resource/after-delombok/JacksonJsonProperty.java | 41 |
2 files changed, 81 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/BuilderWithNonNull.java b/test/transform/resource/after-delombok/BuilderWithNonNull.java new file mode 100644 index 00000000..bee7d415 --- /dev/null +++ b/test/transform/resource/after-delombok/BuilderWithNonNull.java @@ -0,0 +1,40 @@ +class BuilderWithNonNull { + @lombok.NonNull + private final String id; + @java.lang.SuppressWarnings("all") + BuilderWithNonNull(@lombok.NonNull final String id) { + if (id == null) { + throw new java.lang.NullPointerException("id is marked non-null but is null"); + } + this.id = id; + } + @java.lang.SuppressWarnings("all") + public static class BuilderWithNonNullBuilder { + @java.lang.SuppressWarnings("all") + private String id; + @java.lang.SuppressWarnings("all") + BuilderWithNonNullBuilder() { + } + @java.lang.SuppressWarnings("all") + public BuilderWithNonNullBuilder id(@lombok.NonNull final String id) { + if (id == null) { + throw new java.lang.NullPointerException("id is marked non-null but is null"); + } + this.id = id; + return this; + } + @java.lang.SuppressWarnings("all") + public BuilderWithNonNull build() { + return new BuilderWithNonNull(id); + } + @java.lang.Override + @java.lang.SuppressWarnings("all") + public java.lang.String toString() { + return "BuilderWithNonNull.BuilderWithNonNullBuilder(id=" + this.id + ")"; + } + } + @java.lang.SuppressWarnings("all") + public static BuilderWithNonNullBuilder builder() { + return new BuilderWithNonNullBuilder(); + } +}
\ No newline at end of file diff --git a/test/transform/resource/after-delombok/JacksonJsonProperty.java b/test/transform/resource/after-delombok/JacksonJsonProperty.java new file mode 100644 index 00000000..842ba298 --- /dev/null +++ b/test/transform/resource/after-delombok/JacksonJsonProperty.java @@ -0,0 +1,41 @@ +import com.fasterxml.jackson.annotation.JsonProperty; +public class JacksonJsonProperty { + @JsonProperty("kebab-case-prop") + public String kebabCaseProp; + @java.lang.SuppressWarnings("all") + JacksonJsonProperty(final String kebabCaseProp) { + this.kebabCaseProp = kebabCaseProp; + } + @java.lang.SuppressWarnings("all") + public static class JacksonJsonPropertyBuilder { + @java.lang.SuppressWarnings("all") + private String kebabCaseProp; + @java.lang.SuppressWarnings("all") + JacksonJsonPropertyBuilder() { + } + @JsonProperty("kebab-case-prop") + @java.lang.SuppressWarnings("all") + public JacksonJsonPropertyBuilder kebabCaseProp(final String kebabCaseProp) { + this.kebabCaseProp = kebabCaseProp; + return this; + } + @java.lang.SuppressWarnings("all") + public JacksonJsonProperty build() { + return new JacksonJsonProperty(kebabCaseProp); + } + @java.lang.Override + @java.lang.SuppressWarnings("all") + public java.lang.String toString() { + return "JacksonJsonProperty.JacksonJsonPropertyBuilder(kebabCaseProp=" + this.kebabCaseProp + ")"; + } + } + @java.lang.SuppressWarnings("all") + public static JacksonJsonPropertyBuilder builder() { + return new JacksonJsonPropertyBuilder(); + } + @JsonProperty("kebab-case-prop") + @java.lang.SuppressWarnings("all") + public void setKebabCaseProp(final String kebabCaseProp) { + this.kebabCaseProp = kebabCaseProp; + } +}
\ No newline at end of file |