All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jetbrains.pluginverifier.usages.properties.DeprecatedPropertyUsageWarning.kt Maven / Gradle / Ivy

Go to download

JetBrains Plugin Verifier Classes for IntelliJ Platform integration with API usage detection and reporting.

There is a newer version: 1.381
Show newest version
package com.jetbrains.pluginverifier.usages.properties

import com.jetbrains.plugin.structure.base.utils.formatMessage
import com.jetbrains.pluginverifier.results.location.Location
import com.jetbrains.pluginverifier.warnings.CompatibilityWarning

data class DeprecatedPropertyUsageWarning(
  val propertyKey: String,
  val originalResourceBundle: String,
  val deprecatedResourceBundle: String,
  val usageLocation: Location
) : CompatibilityWarning() {

  override val problemType: String
    get() = "Reference to a deprecated property of resource bundle was moved"

  override val shortDescription: String
    get() = "Reference to a deprecated property ''{0}'' of resource bundle ''{1}'', which was moved to ''{2}''".formatMessage(
      propertyKey, originalResourceBundle, deprecatedResourceBundle
    )

  override val fullDescription: String
    get() = (
      "{0} {1} references deprecated property ''{2}'' that was moved from the resource bundle ''{3}'' to ''{4}''. " +
        "The clients will continue to get the correct value of the property but they are encouraged " +
        "to place the property to their own resource bundle."
      ).formatMessage(
        usageLocation.elementType.presentableName.capitalize(),
        usageLocation,
        propertyKey,
        originalResourceBundle,
        deprecatedResourceBundle
      )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy