mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IG: fix test
This commit is contained in:
+3
-3
@@ -7,7 +7,7 @@ public class AssignmentToNull
|
||||
public static void main(String[] args)
|
||||
{
|
||||
new AssignmentToNull(new Object()).bar();
|
||||
<warning descr="Assignment of variable 'args[0]' to 'null'">args[0]</warning> = null;
|
||||
<warning descr="'null' assigned to variable 'args[0]'">args[0]</warning> = null;
|
||||
}
|
||||
|
||||
public AssignmentToNull(Object foo)
|
||||
@@ -19,8 +19,8 @@ public class AssignmentToNull
|
||||
{
|
||||
Object foo = new Object();
|
||||
System.out.println("foo = " + foo);
|
||||
<warning descr="Assignment of variable 'foo' to 'null'">foo</warning> = null;
|
||||
<warning descr="Assignment of variable 'm_foo' to 'null'">m_foo</warning> = null;
|
||||
<warning descr="'null' assigned to variable 'foo'">foo</warning> = null;
|
||||
<warning descr="'null' assigned to variable 'm_foo'">m_foo</warning> = null;
|
||||
System.out.println("foo = " + foo);
|
||||
System.out.println("m_foo = " + m_foo);
|
||||
}
|
||||
|
||||
-1
@@ -17,7 +17,6 @@ package com.siyeh.ig.assignment;
|
||||
|
||||
import com.intellij.codeInspection.InspectionProfileEntry;
|
||||
import com.siyeh.ig.LightInspectionTestCase;
|
||||
import junit.framework.TestCase;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user