mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-22 11:29:28 +07:00
#fixes IDEA-312566 GitOrigin-RevId: 19b94aae737b8b314271f24608334de33d23eff4
20 lines
422 B
Java
20 lines
422 B
Java
package edu.umd.cs.findbugs.annotations;
|
|
|
|
import java.lang.annotation.Annotation;
|
|
|
|
@interface DefaultAnnotationForParameters {
|
|
Class<? extends Annotation>[] value();
|
|
}
|
|
|
|
@interface NonNull {
|
|
}
|
|
|
|
@DefaultAnnotationForParameters(NonNull.class)
|
|
class X {
|
|
native String get();
|
|
|
|
void test(String s) {
|
|
if (<warning descr="Condition 's == null' is always 'false'">s == null</warning>) {}
|
|
if (get() == null) {}
|
|
}
|
|
} |