Format runtime visible/invisible type annotations attributes
This commit is contained in:
parent
76c436714f
commit
5ff7a358f9
3 changed files with 211 additions and 5 deletions
14
testsuite/classes/java/GenericClass.java
Normal file
14
testsuite/classes/java/GenericClass.java
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import java.util.function.Supplier;
|
||||
|
||||
public class GenericClass<@CustomTypeAnnotation T> {
|
||||
|
||||
public <T> Supplier<T> getSupplier(T value) {
|
||||
return new Supplier<T>() {
|
||||
@Override
|
||||
public T get() {
|
||||
return value;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue