IG: fix test

This commit is contained in:
Bas Leijdekkers
2017-06-06 10:39:43 +02:00
parent 022f8f79b6
commit 6dc7596e56
2 changed files with 3 additions and 4 deletions
@@ -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);
}
@@ -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;
/**