mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
moving tests to CE
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<problems>
|
||||
<problem>
|
||||
<file>Npe.java</file>
|
||||
<line>12</line>
|
||||
<description>Expression 'o' might evaluate to null</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>Npe.java</file>
|
||||
<line>13</line>
|
||||
<description>Expression 'o' might evaluate to null</description>
|
||||
</problem>
|
||||
</problems>
|
||||
@@ -0,0 +1,15 @@
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class Npe {
|
||||
@NotNull Object aField;
|
||||
@Nullable Object nullable() {
|
||||
return null;
|
||||
}
|
||||
|
||||
void bar() {
|
||||
Object o = nullable();
|
||||
aField = o;
|
||||
@NotNull Object aLocalVariable = o;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user