remove useless !! for notnull method invocations

GitOrigin-RevId: 9fe6335666e08b33fa85d92fe5b16ed3708cc673
This commit is contained in:
Sergey Ignatov
2020-01-24 11:39:30 +00:00
committed by intellij-monorepo-bot
parent 2e4e3f4859
commit 10af1d8574
2 changed files with 6 additions and 6 deletions
@@ -52,11 +52,11 @@ class DuplicateExpressionsFixTest : LightJavaCodeInsightFixtureTestCase() {
}
private fun introduce(expr: String) =
InspectionsBundle.message("inspection.duplicate.expressions.introduce.variable.fix.name", expr)!!
InspectionsBundle.message("inspection.duplicate.expressions.introduce.variable.fix.name", expr)
private fun reuse(name: String, expr: String) =
InspectionsBundle.message("inspection.duplicate.expressions.reuse.variable.fix.name", name, expr)!!
InspectionsBundle.message("inspection.duplicate.expressions.reuse.variable.fix.name", name, expr)
private fun replace(name: String, expr: String) =
InspectionsBundle.message("inspection.duplicate.expressions.replace.other.occurrences.fix.name", name, expr)!!
InspectionsBundle.message("inspection.duplicate.expressions.replace.other.occurrences.fix.name", name, expr)
}
@@ -25,9 +25,9 @@ import org.intellij.lang.annotations.Language
* @author Pavel.Dolgov
*/
class Java9ModuleExportsPackageToItselfTest : LightJava9ModulesCodeInsightFixtureTestCase() {
private val message = InspectionsBundle.message("inspection.module.exports.package.to.itself")!!
private val fix1 = InspectionsBundle.message("exports.to.itself.delete.statement.fix")!!
private val fix2 = InspectionsBundle.message("exports.to.itself.delete.module.ref.fix", "M")!!
private val message = InspectionsBundle.message("inspection.module.exports.package.to.itself")
private val fix1 = InspectionsBundle.message("exports.to.itself.delete.statement.fix")
private val fix2 = InspectionsBundle.message("exports.to.itself.delete.module.ref.fix", "M")
override fun setUp() {
super.setUp()