Fix unnecessary usages of Locale.getDefault()
This commit is contained in:
committed by
Space
parent
a9479ec8d7
commit
7157a54155
@@ -106,9 +106,8 @@ class ModelParser(private val variant: Variant, private val modulePrefix: String
|
||||
private fun findEmbeddableTask(project: Project, sourceSet: SourceSet): Jar? {
|
||||
val jarName = sourceSet.jarTaskName
|
||||
val embeddable = "embeddable"
|
||||
val embeddedName = if (jarName == "jar") embeddable else jarName.dropLast("jar".length) + embeddable.replaceFirstChar {
|
||||
if (it.isLowerCase()) it.titlecase(Locale.getDefault()) else it.toString()
|
||||
}
|
||||
val embeddedName = if (jarName == "jar") embeddable else jarName.dropLast("jar".length) +
|
||||
embeddable.replaceFirstChar { it.uppercase() }
|
||||
return project.tasks.findByName(embeddedName) as? Jar
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user