Ignore non-jar files in ServiceLoaderLite (KT-29513)
This commit is contained in:
@@ -71,7 +71,7 @@ object ServiceLoaderLite {
|
||||
|
||||
return when {
|
||||
file.isDirectory -> findImplementationsInDirectory(classIdentifier, file)
|
||||
file.isFile -> findImplementationsInJar(classIdentifier, file)
|
||||
file.isFile && file.extension.toLowerCase() == "jar" -> findImplementationsInJar(classIdentifier, file)
|
||||
else -> emptySet()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user