From a1a26a0742ea216ca9ac442b7819e33a9ca61218 Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Sun, 30 Jun 2024 16:26:08 +0200 Subject: Fix deprecations and plugin config errors --- src/main/java/me/laria/code/idea_caseconv/settings/Settings.java | 4 ++-- src/main/resources/META-INF/plugin.xml | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'src/main') diff --git a/src/main/java/me/laria/code/idea_caseconv/settings/Settings.java b/src/main/java/me/laria/code/idea_caseconv/settings/Settings.java index 28f15b1..74b9903 100644 --- a/src/main/java/me/laria/code/idea_caseconv/settings/Settings.java +++ b/src/main/java/me/laria/code/idea_caseconv/settings/Settings.java @@ -1,7 +1,7 @@ package me.laria.code.idea_caseconv.settings; +import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.components.PersistentStateComponent; -import com.intellij.openapi.components.ServiceManager; import com.intellij.openapi.components.State; import com.intellij.openapi.components.Storage; import com.intellij.util.xmlb.XmlSerializerUtil; @@ -17,7 +17,7 @@ public class Settings implements PersistentStateComponent { public static Settings getInstance() { - return ServiceManager.getService(Settings.class); + return ApplicationManager.getApplication().getService(Settings.class); } @Nullable diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index e261956..9f0a560 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -1,7 +1,7 @@ me.laria.code.idea_caseconv Case Conversion - 0.8.0 + 0.8.1 Laria Chabowski @@ -40,6 +40,9 @@
+
Version 0.8.1
+
Replace usages of deprecated ServiceManager methods
+
Version 0.8.0
Compatibility 241.*
@@ -64,7 +67,7 @@ ]]> - + -- cgit v1.2.3-70-g09d2