mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
Fixes IDEA-272286 org.eclipse.jdt.annotation.NonNullByDefault should not add @NonNull to Local variables GitOrigin-RevId: a9c8f21ea5e50ef4696d2c98e5a0b01e40dd1797
18 lines
305 B
Java
18 lines
305 B
Java
package org.eclipse.jdt.annotation;
|
|
|
|
import java.lang.annotation.*;
|
|
|
|
@interface NonNullByDefault {}
|
|
@Target(ElementType.TYPE_USE)
|
|
@interface NonNull {}
|
|
|
|
@NonNullByDefault
|
|
class X {
|
|
void test() {
|
|
@NonNull String x = Y.getFoo();
|
|
}
|
|
}
|
|
|
|
class Y {
|
|
static @NonNull String getFoo() { return null; }
|
|
} |