From 087f792b28099da3196a47cf6367803dc52b82ae Mon Sep 17 00:00:00 2001 From: Evie Lau Date: Wed, 18 Oct 2023 09:21:02 -0500 Subject: [PATCH] Add NotNull to method parameter --- .../tools/intellij/liberty/lsp/LibertyCustomConfigManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/openliberty/tools/intellij/liberty/lsp/LibertyCustomConfigManager.java b/src/main/java/io/openliberty/tools/intellij/liberty/lsp/LibertyCustomConfigManager.java index 0be77fead..854ac71cf 100644 --- a/src/main/java/io/openliberty/tools/intellij/liberty/lsp/LibertyCustomConfigManager.java +++ b/src/main/java/io/openliberty/tools/intellij/liberty/lsp/LibertyCustomConfigManager.java @@ -18,6 +18,7 @@ import com.intellij.openapi.vfs.VirtualFileManager; import com.intellij.util.messages.MessageBusConnection; import com.intellij.util.messages.Topic; +import org.jetbrains.annotations.NotNull; import java.util.List; @@ -38,7 +39,7 @@ public interface Listener { void processConfigXml(List uris); } - public static LibertyCustomConfigManager getInstance(Project project) { + public static LibertyCustomConfigManager getInstance(@NotNull Project project) { return project.getService(LibertyCustomConfigManager.class); }