[java-i18n] Restore passed to non-nls variable behavior

GitOrigin-RevId: 8ec8b1f762120000cb492411bf0386e18325a7e1
This commit is contained in:
Tagir Valeev
2020-07-24 08:49:24 +00:00
committed by intellij-monorepo-bot
parent bce2b85074
commit a3838dcd03
6 changed files with 48 additions and 4 deletions
@@ -0,0 +1,12 @@
import org.jetbrains.annotations.NonNls;
// "Annotate variable 'a' as @NonNls" "true"
class Foo {
public void doTest() {
@NonNls String a = (s("test"));
}
String s(String s) {
return s;
}
}
@@ -0,0 +1,12 @@
import org.jetbrains.annotations.NonNls;
// "Annotate variable 'a' as @NonNls" "true"
class Foo {
public void doTest() {
@NonNls String a = (this.s("test"));
}
String s(String s) {
return s;
}
}
@@ -0,0 +1,10 @@
// "Annotate variable 'a' as @NonNls" "true"
class Foo {
public void doTest() {
String a = (s("t<caret>est"));
}
String s(String s) {
return s;
}
}
@@ -0,0 +1,10 @@
// "Annotate variable 'a' as @NonNls" "true"
class Foo {
public void doTest() {
String a = (this.s("t<caret>est"));
}
String s(String s) {
return s;
}
}