diff --git a/plugins/java-i18n/src/com/intellij/codeInspection/i18n/I18nInspection.java b/plugins/java-i18n/src/com/intellij/codeInspection/i18n/I18nInspection.java index 21598f71895d..6261fef7cf81 100644 --- a/plugins/java-i18n/src/com/intellij/codeInspection/i18n/I18nInspection.java +++ b/plugins/java-i18n/src/com/intellij/codeInspection/i18n/I18nInspection.java @@ -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)