[java-i18n] Path.toString() NlsSafe

GitOrigin-RevId: 17838ac51a239d55c029fb2596c54570b3808fc7
This commit is contained in:
Tagir Valeev
2020-09-03 03:45:01 +00:00
committed by intellij-monorepo-bot
parent 29a65e5f06
commit a95ed178a6
@@ -85,6 +85,7 @@ public class I18nInspection extends AbstractBaseUastLocalInspectionTool implemen
CallMatcher.staticCall(CommonClassNames.JAVA_LANG_INTEGER, "toString"),
CallMatcher.staticCall(CommonClassNames.JAVA_LANG_LONG, "toString"),
CallMatcher.instanceCall(CommonClassNames.JAVA_IO_FILE, "getAbsolutePath", "getCanonicalPath", "getName", "getPath"),
CallMatcher.instanceCall("java.nio.file.Path", "toString"),
CallMatcher.instanceCall(CommonClassNames.JAVA_LANG_THROWABLE, "getMessage", "getLocalizedMessage").parameterCount(0),
CallMatcher.instanceCall(CommonClassNames.JAVA_LANG_THROWABLE, "toString").parameterCount(0),
CallMatcher.instanceCall("javax.swing.text.JTextComponent", "getText").parameterCount(0)