From: David ‘Bombe’ Roden Date: Mon, 27 Sep 2021 09:36:15 +0000 (+0200) Subject: Fix ambiguous import for Module X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=f859b95e2b8c4c0c4070e0bb3280fe936436dd2c;p=Sone.git Fix ambiguous import for Module And this is the reason why everybody should be using single-class imports and star imports should be avoided. The Module class (or interface?) was added in Java 9 because of the whole module business and now the star imports are suddenly ambiguous. Lesson learned! --- diff --git a/src/main/java/net/pterodactylus/sone/main/SonePlugin.java b/src/main/java/net/pterodactylus/sone/main/SonePlugin.java index 82ab065..d0b07e6 100644 --- a/src/main/java/net/pterodactylus/sone/main/SonePlugin.java +++ b/src/main/java/net/pterodactylus/sone/main/SonePlugin.java @@ -42,6 +42,7 @@ import com.google.common.annotations.*; import com.google.common.eventbus.*; import com.google.common.cache.*; import com.google.inject.*; +import com.google.inject.Module; import com.google.inject.name.*; import kotlin.jvm.functions.*;