From c01933614ca5181c8319abeace46727ff66bafa3 Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 24 Jul 2022 16:15:55 +0100 Subject: [PATCH] Bind Jackson module consistently with other Guice modules --- .../src/main/kotlin/org/openrs2/archive/ArchiveModule.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/archive/src/main/kotlin/org/openrs2/archive/ArchiveModule.kt b/archive/src/main/kotlin/org/openrs2/archive/ArchiveModule.kt index 37e1b2cf75..32b6b87b5a 100644 --- a/archive/src/main/kotlin/org/openrs2/archive/ArchiveModule.kt +++ b/archive/src/main/kotlin/org/openrs2/archive/ArchiveModule.kt @@ -41,14 +41,14 @@ public object ArchiveModule : AbstractModule() { .toProvider(DatabaseProvider::class.java) .`in`(Scopes.SINGLETON) + Multibinder.newSetBinder(binder(), Module::class.java) + .addBinding().to(JavaTimeModule::class.java) + val keyBinder = Multibinder.newSetBinder(binder(), KeyDownloader::class.java) keyBinder.addBinding().to(OpenOsrsKeyDownloader::class.java) keyBinder.addBinding().to(PolarKeyDownloader::class.java) keyBinder.addBinding().to(RuneLiteKeyDownloader::class.java) - val moduleBinder = Multibinder.newSetBinder(binder(), Module::class.java) - moduleBinder.addBinding().to(JavaTimeModule::class.java) - val nameBinder = Multibinder.newSetBinder(binder(), NameDownloader::class.java) nameBinder.addBinding().to(RuneStarNameDownloader::class.java) }