Replace deprecated IDE APIs in the IDEA plugin · openjavaformat/open-java-format@340a181 · GitHub
Skip to content

Commit 340a181

Browse files
committed
Replace deprecated IDE APIs in the IDEA plugin
The marketplace verifier flagged three calls against 2026.3. PluginManager.getPlugin is both deprecated and internal, so PluginManager.getInstance().findEnabledPlugin takes over, and PluginDescriptor.getPath gives way to getPluginPath. TrustedProjects.isTrusted stays: the class it points to, com.intellij.ide.trustedProjects.TrustedProjects, is @ApiStatus.Internal — worse for a plugin to call than an experimental one.
1 parent 3f6c827 commit 340a181

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

‎open-java-format-idea-plugin/src/main/java/com/palantir/javaformat/intellij/FormatterProvider.java‎

Lines changed: 4 additions & 4 deletions

‎open-java-format-idea-plugin/src/main/java/com/palantir/javaformat/intellij/PalantirJavaFormatFormattingService.java‎

Lines changed: 3 additions & 0 deletions

0 commit comments

Comments
 (0)