when a nullable parameter is reassigned with an unknown value, don't still consider it nullable (IDEA-54770)

This commit is contained in:
peter
2012-10-29 12:57:21 +01:00
parent 1efafb561a
commit 1ff583bd4a
3 changed files with 15 additions and 0 deletions
@@ -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("%")) {
}
}
}