mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 10:18:46 +00:00
Test cases for remaining features.
This commit is contained in:
1 parent
ced71c5468
commit
c3f34a8447
16 files changed
+330
No files matched your search
@@ -0,0 +1,51 @@
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
import java.util.List;
|
||||
|
||||
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
|
||||
@interface TA {
|
||||
}
|
||||
|
||||
class BuilderTypeAnnos {
|
||||
@TA
|
||||
private List<@TA String> foo;
|
||||
|
||||
@java.lang.SuppressWarnings("all")
|
||||
BuilderTypeAnnos(@TA final List<@TA String> foo) {
|
||||
this.foo = foo;
|
||||
}
|
||||
|
||||
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public static class BuilderTypeAnnosBuilder {
|
||||
@java.lang.SuppressWarnings("all")
|
||||
private List<@TA String> foo;
|
||||
|
||||
@java.lang.SuppressWarnings("all")
|
||||
BuilderTypeAnnosBuilder() {
|
||||
}
|
||||
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public BuilderTypeAnnosBuilder foo(@TA final List<@TA String> foo) {
|
||||
this.foo = foo;
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public BuilderTypeAnnos build() {
|
||||
return new BuilderTypeAnnos(foo);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public java.lang.String toString() {
|
||||
return "BuilderTypeAnnos.BuilderTypeAnnosBuilder(foo=" + this.foo + ")";
|
||||
}
|
||||
}
|
||||
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public static BuilderTypeAnnosBuilder builder() {
|
||||
return new BuilderTypeAnnosBuilder();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
import java.util.List;
|
||||
|
||||
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
|
||||
@interface TA {
|
||||
}
|
||||
|
||||
class BuilderTypeAnnos {
|
||||
@TA
|
||||
private List<@TA String> foo;
|
||||
|
||||
@java.lang.SuppressWarnings("all")
|
||||
BuilderTypeAnnos(final List<@TA String> foo) {
|
||||
this.foo = foo;
|
||||
}
|
||||
|
||||
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public static class BuilderTypeAnnosBuilder {
|
||||
@java.lang.SuppressWarnings("all")
|
||||
private List<@TA String> foo;
|
||||
|
||||
@java.lang.SuppressWarnings("all")
|
||||
BuilderTypeAnnosBuilder() {
|
||||
}
|
||||
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public BuilderTypeAnnosBuilder foo(final List<@TA String> foo) {
|
||||
this.foo = foo;
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public BuilderTypeAnnos build() {
|
||||
return new BuilderTypeAnnos(foo);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public java.lang.String toString() {
|
||||
return "BuilderTypeAnnos.BuilderTypeAnnosBuilder(foo=" + this.foo + ")";
|
||||
}
|
||||
}
|
||||
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public static BuilderTypeAnnosBuilder builder() {
|
||||
return new BuilderTypeAnnosBuilder();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
import java.util.List;
|
||||
|
||||
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
|
||||
@interface TA {
|
||||
}
|
||||
|
||||
class ConstructorsTypeAnnos {
|
||||
@TA
|
||||
List<@TA String> foo;
|
||||
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public ConstructorsTypeAnnos(@TA final List<@TA String> foo) {
|
||||
this.foo = foo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
import java.util.List;
|
||||
|
||||
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
|
||||
@interface TA {
|
||||
}
|
||||
|
||||
class ConstructorsTypeAnnos {
|
||||
@TA
|
||||
List<@TA String> foo;
|
||||
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public ConstructorsTypeAnnos(final List<@TA String> foo) {
|
||||
this.foo = foo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
import java.util.List;
|
||||
|
||||
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
|
||||
@interface TA {
|
||||
}
|
||||
|
||||
class SetterTypeAnnos {
|
||||
@TA
|
||||
List<@TA String> foo;
|
||||
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public void setFoo(@TA final List<@TA String> foo) {
|
||||
this.foo = foo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
import java.util.List;
|
||||
|
||||
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
|
||||
@interface TA {
|
||||
}
|
||||
|
||||
class SetterTypeAnnos {
|
||||
@TA
|
||||
List<@TA String> foo;
|
||||
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public void setFoo(final List<@TA String> foo) {
|
||||
this.foo = foo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
import java.util.List;
|
||||
|
||||
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
|
||||
@interface TA {
|
||||
}
|
||||
|
||||
class WitherTypeAnnos {
|
||||
@TA
|
||||
final List<@TA String> foo;
|
||||
|
||||
WitherTypeAnnos(@TA List<@TA String> foo) {
|
||||
this.foo = foo;
|
||||
}
|
||||
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public WitherTypeAnnos withFoo(@TA final List<@TA String> foo) {
|
||||
return this.foo == foo ? this : new WitherTypeAnnos(foo);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
import java.util.List;
|
||||
|
||||
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
|
||||
@interface TA {
|
||||
}
|
||||
|
||||
class WitherTypeAnnos {
|
||||
@TA
|
||||
final List<@TA String> foo;
|
||||
|
||||
WitherTypeAnnos(@TA List<@TA String> foo) {
|
||||
this.foo = foo;
|
||||
}
|
||||
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public WitherTypeAnnos withFoo(final List<@TA String> foo) {
|
||||
return this.foo == foo ? this : new WitherTypeAnnos(foo);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
//CONF: lombok.copyAnnotations += TA
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
import java.util.List;
|
||||
|
||||
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
|
||||
@interface TA {
|
||||
}
|
||||
|
||||
@lombok.Builder
|
||||
class BuilderTypeAnnos {
|
||||
private @TA List<@TA String> foo;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
import java.util.List;
|
||||
|
||||
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
|
||||
@interface TA {
|
||||
}
|
||||
|
||||
@lombok.Builder
|
||||
class BuilderTypeAnnos {
|
||||
private @TA List<@TA String> foo;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
//CONF: lombok.copyAnnotations += TA
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
import java.util.List;
|
||||
|
||||
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
|
||||
@interface TA {
|
||||
}
|
||||
|
||||
@lombok.AllArgsConstructor
|
||||
class ConstructorsTypeAnnos {
|
||||
@TA List<@TA String> foo;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
import java.util.List;
|
||||
|
||||
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
|
||||
@interface TA {
|
||||
}
|
||||
|
||||
@lombok.AllArgsConstructor
|
||||
class ConstructorsTypeAnnos {
|
||||
@TA List<@TA String> foo;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
//CONF: lombok.copyAnnotations += TA
|
||||
|
||||
import lombok.Setter;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
import java.util.List;
|
||||
|
||||
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
|
||||
@interface TA {
|
||||
}
|
||||
|
||||
class SetterTypeAnnos {
|
||||
@Setter
|
||||
@TA List<@TA String> foo;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
import lombok.Setter;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
import java.util.List;
|
||||
|
||||
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
|
||||
@interface TA {
|
||||
}
|
||||
|
||||
class SetterTypeAnnos {
|
||||
@Setter
|
||||
@TA List<@TA String> foo;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
//CONF: lombok.copyAnnotations += TA
|
||||
|
||||
import lombok.experimental.Wither;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
import java.util.List;
|
||||
|
||||
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
|
||||
@interface TA {
|
||||
}
|
||||
|
||||
class WitherTypeAnnos {
|
||||
@Wither final @TA List<@TA String> foo;
|
||||
|
||||
WitherTypeAnnos(@TA List<@TA String> foo) {
|
||||
this.foo = foo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
import lombok.experimental.Wither;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
import java.util.List;
|
||||
|
||||
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
|
||||
@interface TA {
|
||||
}
|
||||
|
||||
class WitherTypeAnnos {
|
||||
@Wither final @TA List<@TA String> foo;
|
||||
|
||||
WitherTypeAnnos(@TA List<@TA String> foo) {
|
||||
this.foo = foo;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user