mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-06 01:06:54 +07:00
21 lines
706 B
Java
21 lines
706 B
Java
import org.jetbrains.annotations.*;
|
|
|
|
interface NotNullInt {
|
|
@NotNull
|
|
String getString();
|
|
|
|
void setString(@Nullable String s);
|
|
}
|
|
|
|
abstract class MethodBase {
|
|
@Nullable public String getString() {
|
|
return null;
|
|
}
|
|
}
|
|
abstract class ParamBase {
|
|
public void setString(@NotNull String s) {}
|
|
}
|
|
|
|
abstract class MethodFail extends MethodBase implements <warning descr="Nullable method 'getString' from 'MethodBase' implements non-null method from 'NotNullInt'">NotNullInt</warning> { }
|
|
|
|
abstract class ParamFail extends ParamBase implements <warning descr="Non-null parameter 's' in method 'setString' from 'ParamBase' should not override nullable parameter from 'NotNullInt'">NotNullInt</warning> { } |