User: joe Date: 14 Sep 23 17:38 Revision: 8c107841011f0b9e652ad78fa7574c0cfb914414 Summary: ConstantValue is the new ConstantConditions apparently TeamCity URL: https://ci.mcdev.io/viewModification.html?tab=vcsModificationFiles&modId=8718&personal=false Index: src/main/kotlin/platform/mixin/inspection/suppress/MixinClassCastInspectionSuppressor.kt =================================================================== --- src/main/kotlin/platform/mixin/inspection/suppress/MixinClassCastInspectionSuppressor.kt (revision c4ba80eaac4b24fca6f1c442ebaac0e7a16947e5) +++ src/main/kotlin/platform/mixin/inspection/suppress/MixinClassCastInspectionSuppressor.kt (revision 8c107841011f0b9e652ad78fa7574c0cfb914414) @@ -42,12 +42,13 @@ import com.intellij.psi.util.PsiUtil /** - * Looks for `ConstantConditions` warnings on type casts and checks if they are casts to interfaces introduced by mixins + * Looks for `ConstantConditions` and `ConstantValue` warnings on type casts and checks if they are casts to interfaces + * introduced by mixins */ class MixinClassCastInspectionSuppressor : InspectionSuppressor { override fun isSuppressedFor(element: PsiElement, toolId: String): Boolean { - if (toolId != INSPECTION) { + if (toolId !in INSPECTIONS) { return false } @@ -126,6 +127,6 @@ SuppressQuickFix.EMPTY_ARRAY companion object { - private const val INSPECTION = "ConstantConditions" + private val INSPECTIONS = setOf("ConstantConditions", "ConstantValue") } }