fix(lsp/java): impl optimizations in JavaJarModelBuilder

- avoid allocating temporary lists
- avoid multiple string operations

Apart from this, the commit fixes some compilation errors.
This commit is contained in:
Akash Yadav
2024-05-27 14:22:19 +05:30
parent d605cb21be
commit 7bea046fa0
13 changed files with 174 additions and 111 deletions
@@ -706,7 +706,7 @@ class ResourceEntry(val name : String) {
var allowNew: AllowNew? = null
var overlayable: OverlayableItem? = null
internal val values = mutableListOf<ResourceConfigValue>()
val values = mutableListOf<ResourceConfigValue>()
fun findValue(config: ConfigDescription, product: String = ""): ResourceConfigValue? {
return values.find { it.config == config && it.product == product }