Skip to content

Commit 97a5f5e

Browse files
jonnyzzzclaude
andcommitted
Remove @Suppress("UnstableApiUsage") annotations
Keep warnings visible for internal API usage. There are no public stable alternatives for these APIs - the warnings serve as documentation of the technical debt and will alert us if these internal APIs change. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 3f5042c commit 97a5f5e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/main/kotlin/com/jonnyzzz/intellij/hotreload/PluginHotReloadService.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ class PluginHotReloadService {
141141
if (existingPlugin != null) {
142142
val descriptor = existingPlugin as? IdeaPluginDescriptorImpl
143143
if (descriptor !== null) {
144-
@Suppress("UnstableApiUsage")
145144
unloadBlockedReason = DynamicPlugins.checkCanUnloadWithoutRestart(descriptor)
146145
if (unloadBlockedReason != null) {
147146
val warnMsg = "Plugin cannot be unloaded without restart: $unloadBlockedReason"
@@ -158,12 +157,10 @@ class PluginHotReloadService {
158157
if (descriptor !== null) {
159158
progress.report(HotReloadBundle.message("progress.unloading", existingPlugin.name))
160159

161-
@Suppress("UnstableApiUsage")
162160
val options = DynamicPlugins.UnloadPluginOptions(requireMemorySnapshot = unloadBlockedReason != null)
163161

164162
// Use unloadPlugins (plural) instead of unloadPlugin (singular) because
165163
// the plural version properly sets isMarkedForLoading=false on the descriptor
166-
@Suppress("UnstableApiUsage")
167164
val unloaded = DynamicPlugins.unloadPlugins(listOf(descriptor), options = options)
168165

169166
if (!unloaded) {
@@ -215,7 +212,6 @@ class PluginHotReloadService {
215212

216213
// Step 8: Load descriptor from the zip file
217214
progress.report(HotReloadBundle.message("progress.loading.descriptor"))
218-
@Suppress("UnstableApiUsage")
219215
val newDescriptor = try {
220216
loadDescriptorFromArtifact(zipFile, null)
221217
} catch (e: Exception) {
@@ -237,7 +233,6 @@ class PluginHotReloadService {
237233
progress.report(HotReloadBundle.message("progress.installing", pluginName, pluginVersion ?: "unknown"))
238234

239235
// Step 9: Install and load the plugin dynamically
240-
@Suppress("UnstableApiUsage")
241236
val loaded = try {
242237
PluginInstaller.installAndLoadDynamicPlugin(zipFile, null, newDescriptor as IdeaPluginDescriptorImpl)
243238
} catch (e: Exception) {

0 commit comments

Comments
 (0)