Language mismatch
Reports when the language of a reference does not match the expected language of the usage context.
Example:
@Language("JavaScript")
String JS_CODE = "var x;";
@Language("XPath")
String XPATH_CODE = JS_CODE; // warning here
Inspection options
Option | Type | Default |
---|---|---|
Report in implied language context | Checkbox | true |
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | IntelliLang, 233.SNAPSHOT |
Last modified: 13 July 2023