From b7c5d4c34d372e62fb28b24f325bab0609cd7acb Mon Sep 17 00:00:00 2001 From: Ilya Klyuchnikov Date: Tue, 12 Nov 2024 10:36:49 -0800 Subject: [PATCH] naming Summary: - as title, - removing a nit Reviewed By: VLanvin Differential Revision: D65830000 fbshipit-source-id: 542c31b2f8b73f9656ed70c3041b5f630d322180 --- .../main/scala/com/whatsapp/eqwalizer/ast/stub/Db.scala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eqwalizer/src/main/scala/com/whatsapp/eqwalizer/ast/stub/Db.scala b/eqwalizer/src/main/scala/com/whatsapp/eqwalizer/ast/stub/Db.scala index f7072b2..95d9c1c 100644 --- a/eqwalizer/src/main/scala/com/whatsapp/eqwalizer/ast/stub/Db.scala +++ b/eqwalizer/src/main/scala/com/whatsapp/eqwalizer/ast/stub/Db.scala @@ -12,7 +12,7 @@ import scala.collection.mutable import com.whatsapp.eqwalizer.io.Ipc private object Db { - private val transValidStubs: mutable.Map[String, Option[ModuleStub]] = + private val stubs: mutable.Map[String, Option[ModuleStub]] = mutable.Map.empty private val loadedModules: mutable.Set[String] = mutable.Set.empty @@ -20,12 +20,12 @@ private object Db { */ def getModuleStub(module: String): Option[ModuleStub] = { loadedModules.add(module) - if (transValidStubs.contains(module)) - transValidStubs(module) + if (stubs.contains(module)) + stubs(module) else { val optStub = Ipc.getAstBytes(module, Ipc.TransitiveStub).map(readFromArray[ModuleStub](_)) - transValidStubs.put(module, optStub) + stubs.put(module, optStub) optStub } }