mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 16:14:46 +00:00
First attempt at adding Getter test cases.
This commit is contained in:
1 parent
fc35839c79
commit
859cb5cf8c
4 files changed
+65
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
import java.util.List;
|
||||
|
||||
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
|
||||
@interface TA {
|
||||
}
|
||||
|
||||
class GetterTypeAnnos {
|
||||
@TA
|
||||
List<@TA String> foo;
|
||||
|
||||
@TA
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public List<@TA String> getFoo() {
|
||||
return this.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 GetterTypeAnnos {
|
||||
@TA
|
||||
List<@TA String> foo;
|
||||
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public List<@TA String> getFoo() {
|
||||
return this.foo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
//CONF: lombok.copyAnnotations += TA
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
import java.util.List;
|
||||
|
||||
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
|
||||
@interface TA {
|
||||
}
|
||||
|
||||
class GetterTypeAnnos {
|
||||
@Getter
|
||||
@TA List<@TA String> foo;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
import lombok.Getter;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
import java.util.List;
|
||||
|
||||
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
|
||||
@interface TA {
|
||||
}
|
||||
|
||||
class GetterTypeAnnos {
|
||||
@Getter
|
||||
@TA List<@TA String> foo;
|
||||
}
|
||||
Reference in new issue
Block a user