diff options
Diffstat (limited to 'plugins/groovy/test/org/jetbrains/plugins/groovy/codeInspection/confusing/GroovyPointlessBooleanInspectionTest.groovy')
-rw-r--r-- | plugins/groovy/test/org/jetbrains/plugins/groovy/codeInspection/confusing/GroovyPointlessBooleanInspectionTest.groovy | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/groovy/test/org/jetbrains/plugins/groovy/codeInspection/confusing/GroovyPointlessBooleanInspectionTest.groovy b/plugins/groovy/test/org/jetbrains/plugins/groovy/codeInspection/confusing/GroovyPointlessBooleanInspectionTest.groovy index 331a8483dfb2..e1f137646974 100644 --- a/plugins/groovy/test/org/jetbrains/plugins/groovy/codeInspection/confusing/GroovyPointlessBooleanInspectionTest.groovy +++ b/plugins/groovy/test/org/jetbrains/plugins/groovy/codeInspection/confusing/GroovyPointlessBooleanInspectionTest.groovy @@ -1,4 +1,4 @@ -// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package org.jetbrains.plugins.groovy.codeInspection.confusing import com.intellij.codeInspection.LocalInspectionTool @@ -34,6 +34,11 @@ class GroovyPointlessBooleanInspectionTest extends GroovyLatestTest implements H doTest($/!<caret><warning descr="Redundant boolean operations">!!true</warning>/$, '!true') } + @Test + void 'non-primitive type'() { + highlightingTest('Boolean x = null; x == true') + } + private void doTest(String before, String after) { highlightingTest before doActionTest('Simplify', after) |