mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
When parameter is under @ParametersAreNotNullByDefault, but inherited from another context where there's no container annotation, it's considered as unannotated, thus no warning should be displayed Fixes EA-123379 - assert: NullableStuffInspectionBase.checkParameters
15 lines
312 B
Java
15 lines
312 B
Java
import javax.annotation.ParametersAreNonnullByDefault;
|
|
|
|
class Test {
|
|
static class XX {
|
|
void get(Object t) {}
|
|
}
|
|
|
|
@ParametersAreNonnullByDefault
|
|
static class X extends XX {
|
|
// Do not warn as ParametersAreNonnullByDefault does not work for overridden parameters
|
|
void get(Object x) {
|
|
|
|
}
|
|
}
|
|
} |