mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-03 04:44:53 +07:00
GitOrigin-RevId: 5ee84ec5206ded06637d9b08026e8dc7bdfff1f0
24 lines
494 B
Java
24 lines
494 B
Java
|
|
import java.lang.annotation.Documented;
|
|
import java.lang.annotation.ElementType;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.lang.annotation.Target;
|
|
|
|
@Documented
|
|
@Retention(RetentionPolicy.CLASS)
|
|
@Target({ElementType.PARAMETER, ElementType.TYPE_USE})
|
|
@interface Anno {
|
|
String value() default "";
|
|
}
|
|
|
|
class Test {
|
|
void foo(@Anno String s) {
|
|
newMethod(s);
|
|
}
|
|
|
|
private void newMethod(String s) {
|
|
if (s == null) {}
|
|
}
|
|
}
|