mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-31 23:21:09 +07:00
We won't need to have the 'jetbrains-annotations-java5' library in the monorepo after migrating all modules to Java 8 (IJPL-160046). Also, it makes sense to test the behavior for the modern variant of the annotations anyway. IJ-MR-172675 GitOrigin-RevId: c263316db155756cb07c6d439d9f575dfdb096a6
13 lines
239 B
Java
13 lines
239 B
Java
import org.jetbrains.annotations.NotNull;
|
|
|
|
class Test {
|
|
public @NotNull String noNull(@NotNull String text) {
|
|
assert text != null;
|
|
return "";
|
|
}
|
|
|
|
private void foo() {
|
|
@NotNull String str = "";
|
|
assert str != null;
|
|
}
|
|
} |