attach JDK Annotations automatically on JDK creation to fix IDEA-211771

GitOrigin-RevId: 975cffd646b68abb31a61eb6ac50de264c428cdc
This commit is contained in:
Alexey Kudravtsev
2019-05-03 03:07:50 +03:00
committed by intellij-monorepo-bot
parent d5e8ba9e13
commit 5910039653
19 changed files with 327 additions and 215 deletions
@@ -37,7 +37,7 @@ public class Example {
@NotNull Class x = <warning descr="'null' is assigned to a variable that is annotated with @NotNull">ClassUtils.primitiveToWrapper(null)</warning>;
}
void writeBytes(@Nullable byte[] bytes) throws IOException {
new FilterOutputStream(null).write(<warning descr="Argument 'bytes' might be null">bytes</warning>);
void writeBytes(@Nullable byte[] bytes, FilterOutputStream stream) throws IOException {
stream.write(<warning descr="Argument 'bytes' might be null">bytes</warning>);
}
}