mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
suppress self in tests
This commit is contained in:
+1
@@ -22,6 +22,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
/**
|
||||
* @author Bas Leijdekkers
|
||||
*/
|
||||
@SuppressWarnings("OptionalUsedAsFieldOrParameterType")
|
||||
public class OptionalUsedAsFieldOrParameterTypeInspectionTest extends LightInspectionTestCase {
|
||||
|
||||
public void testOptionalField() {
|
||||
|
||||
+1
@@ -21,6 +21,7 @@ import com.siyeh.ig.LightInspectionTestCase;
|
||||
/**
|
||||
* @author Bas Leijdekkers
|
||||
*/
|
||||
@SuppressWarnings("CollectionAddedToSelf")
|
||||
public class CollectionAddedToSelfInspectionTest extends LightInspectionTestCase {
|
||||
@Override
|
||||
protected InspectionProfileEntry getInspection() {
|
||||
|
||||
+1
-1
@@ -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() {
|
||||
|
||||
+1
@@ -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
|
||||
|
||||
+1
-1
@@ -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() {
|
||||
|
||||
+1
@@ -21,6 +21,7 @@ import com.siyeh.ig.LightInspectionTestCase;
|
||||
/**
|
||||
* @author Bas Leijdekkers
|
||||
*/
|
||||
@SuppressWarnings("SuspiciousToArrayCall")
|
||||
public class SuspiciousToArrayCallInspectionTest extends LightInspectionTestCase {
|
||||
|
||||
public void testCast() {
|
||||
|
||||
Reference in New Issue
Block a user