suppress self in tests

This commit is contained in:
Anna Kozlova
2016-08-16 20:48:12 +03:00
parent 99eb1a8765
commit 99e645554c
6 changed files with 6 additions and 2 deletions
@@ -22,6 +22,7 @@ import org.jetbrains.annotations.Nullable;
/**
* @author Bas Leijdekkers
*/
@SuppressWarnings("OptionalUsedAsFieldOrParameterType")
public class OptionalUsedAsFieldOrParameterTypeInspectionTest extends LightInspectionTestCase {
public void testOptionalField() {
@@ -21,6 +21,7 @@ import com.siyeh.ig.LightInspectionTestCase;
/**
* @author Bas Leijdekkers
*/
@SuppressWarnings("CollectionAddedToSelf")
public class CollectionAddedToSelfInspectionTest extends LightInspectionTestCase {
@Override
protected InspectionProfileEntry getInspection() {
@@ -21,7 +21,7 @@ import com.siyeh.ig.LightInspectionTestCase;
/**
* @author Bas Leijdekkers
*/
@SuppressWarnings("EqualsBetweenInconvertibleTypes")
@SuppressWarnings({"EqualsBetweenInconvertibleTypes", "ResultOfMethodCallIgnored"})
public class EqualsBetweenInconvertibleTypesInspectionTest extends LightInspectionTestCase {
public void testSimple() {
@@ -3,6 +3,7 @@ package com.siyeh.ig.bugs;
import com.intellij.codeInspection.LocalInspectionTool;
import com.siyeh.ig.LightInspectionTestCase;
@SuppressWarnings("ResultOfMethodCallIgnored")
public class IgnoreResultOfCallInspectionTest extends LightInspectionTestCase {
@Override
@@ -22,7 +22,7 @@ import org.jetbrains.annotations.Nullable;
/**
* @author Bas Leijdekkers
*/
@SuppressWarnings("OptionalGetWithoutIsPresent")
@SuppressWarnings({"OptionalGetWithoutIsPresent", "OptionalUsedAsFieldOrParameterType"})
public class OptionalGetWithoutIsPresentInspectionTest extends LightInspectionTestCase {
public void testSimple() {
@@ -21,6 +21,7 @@ import com.siyeh.ig.LightInspectionTestCase;
/**
* @author Bas Leijdekkers
*/
@SuppressWarnings("SuspiciousToArrayCall")
public class SuspiciousToArrayCallInspectionTest extends LightInspectionTestCase {
public void testCast() {