mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
moving tests to CE
This commit is contained in:
@@ -0,0 +1,85 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<problems>
|
||||
<problem>
|
||||
<file>Test.java</file>
|
||||
<line>23</line>
|
||||
<text_range start="556" end="557" />
|
||||
<method>
|
||||
<name>String f()</name>
|
||||
<display_name>f()</display_name>
|
||||
<package><default></package>
|
||||
<class>
|
||||
<name>CC</name>
|
||||
<display_name>CC</display_name>
|
||||
</class>
|
||||
</method>
|
||||
<description>Cannot annotate with both @Nullable and @NotNull</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>Test.java</file>
|
||||
<line>23</line>
|
||||
<method>
|
||||
<name>String f()</name>
|
||||
<name>f()</name>
|
||||
<package><default></package>
|
||||
<class>
|
||||
<name>CC</name>
|
||||
<display_name>CC</display_name>
|
||||
</class>
|
||||
</method>
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">@NotNull/@Nullable problems</problem_class>
|
||||
<description>Cannot annotate with both @Nullable and @NotNull</description>
|
||||
</problem>
|
||||
|
||||
|
||||
<problem>
|
||||
<file>Test.java</file>
|
||||
<line>16</line>
|
||||
<text_range start="368" end="373" />
|
||||
<method>
|
||||
<name>C getC2()</name>
|
||||
<display_name>getC2()</display_name>
|
||||
<package><default></package>
|
||||
<class>
|
||||
<name>CC</name>
|
||||
<display_name>CC</display_name>
|
||||
</class>
|
||||
</method>
|
||||
<description>Not annotated method overrides method annotated with @NotNull</description>
|
||||
</problem>
|
||||
|
||||
|
||||
<problem>
|
||||
<file>Test.java</file>
|
||||
<line>18</line>
|
||||
<text_range start="417" end="418" />
|
||||
<method>
|
||||
<name>void f1(C p)</name>
|
||||
<display_name>f1(C)</display_name>
|
||||
<package><default></package>
|
||||
<class>
|
||||
<name>CC</name>
|
||||
<display_name>CC</display_name>
|
||||
</class>
|
||||
</method>
|
||||
<description>Parameter annotated @NonNull must not override @Nullable parameter</description>
|
||||
</problem>
|
||||
|
||||
|
||||
<problem>
|
||||
<file>Test.java</file>
|
||||
<line>15</line>
|
||||
<text_range start="338" end="342" />
|
||||
<method>
|
||||
<name>C getC()</name>
|
||||
<display_name>getC()</display_name>
|
||||
<package><default></package>
|
||||
<class>
|
||||
<name>CC</name>
|
||||
<display_name>CC</display_name>
|
||||
</class>
|
||||
</method>
|
||||
<description>Method annotated with @Nullable must not override @NotNull method</description>
|
||||
</problem>
|
||||
</problems>
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
import org.jetbrains.annotations.*;
|
||||
|
||||
class C {
|
||||
public static C C = null;
|
||||
@NotNull public C getC() {return C;}
|
||||
@NotNull public C getC2() {return C;}
|
||||
|
||||
public void f1(@Nullable C p) {}
|
||||
public void f2(@NotNull C p) {}
|
||||
public void f3(@Nullable C p) {}
|
||||
public void f4(@NotNull C p) {}
|
||||
}
|
||||
|
||||
class CC extends C {
|
||||
@Nullable public C getC() {return C;}
|
||||
public C getC2() {return C;}
|
||||
|
||||
public void f1(@NotNull C p) {}
|
||||
public void f2(@NotNull C p) {}
|
||||
public void f3(@Nullable C p) {}
|
||||
public void f4(@Nullable C p) {}
|
||||
|
||||
@Nullable @NotNull String f() { return null;}
|
||||
}
|
||||
Reference in New Issue
Block a user