BytecodeAnalysisIndex: conservatively handle cases when contract inferred only via exceptional path

Fixes IDEA-155544 Wrong inferred contract annotation for Console.readPassword()
This commit is contained in:
Tagir Valeev committed 2017-10-04 16:15:07 +07:00
1 parent 8763eae790
commit 38936bdfd4
9 files changed
+110 -55

No files matched your search

@@ -1008,9 +1008,6 @@
<annotation name='org.jetbrains.annotations.NotNull'/>
</item>
<item name='javax.swing.JTable.GenericEditor java.awt.Component getTableCellEditorComponent(javax.swing.JTable, java.lang.Object, boolean, int, int)'>
<annotation name='org.jetbrains.annotations.Contract'>
<val val="&quot;null,_,_,_,_-&gt;null&quot;"/>
</annotation>
<annotation name='org.jetbrains.annotations.Nullable'/>
</item>
<item name='javax.swing.JTable.GenericEditor java.lang.Object getCellEditorValue()'>
@@ -164,9 +164,6 @@
</annotation>
</item>
<item name='org.apache.velocity.util.StringUtils java.lang.String stackTrace(java.lang.Throwable)'>
<annotation name='org.jetbrains.annotations.Contract'>
<val val="&quot;null-&gt;null&quot;"/>
</annotation>
<annotation name='org.jetbrains.annotations.Nullable'/>
</item>
<item name='org.apache.velocity.util.StringUtils java.lang.String sub(java.lang.String, java.lang.String, java.lang.String)'>