mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
when a nullable parameter is reassigned with an unknown value, don't still consider it nullable (IDEA-54770)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class BrokenAlignment {
|
||||
|
||||
String unknown(String s) { return s; }
|
||||
|
||||
public void example(@Nullable String value) {
|
||||
value = unknown(<warning descr="Argument 'value' might be null but passed to non annotated parameter">value</warning>);
|
||||
if (value.contains("%")) {
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user