fix CopyrightManagerTest

This commit is contained in:
Vladimir Krivosheev
2018-02-14 14:01:21 +01:00
parent 92ecd1a507
commit 64a68658d3
@@ -82,13 +82,13 @@ class CopyrightManager @JvmOverloads constructor(private val project: Project, s
override fun isSchemeFile(name: CharSequence) = !StringUtil.equals(name, "profiles_settings.xml")
override fun getSchemeKey(attributeProvider: Function<String, String?>, fileNameWithoutExtension: String): String? {
override fun getSchemeKey(attributeProvider: Function<String, String?>, fileNameWithoutExtension: String): String {
val schemeKey = super.getSchemeKey(attributeProvider, fileNameWithoutExtension)
if (schemeKey != null) {
return schemeKey
}
LOG.warn("Name is not specified for scheme $fileNameWithoutExtension, file name will be used instead")
return schemeKey
return fileNameWithoutExtension
}
}, schemeNameToFileName = OLD_NAME_CONVERTER, streamProvider = schemeManagerIprProvider)