Commit 340a181
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
open-java-format-idea-plugin/src/main/java/com/palantir/javaformat/intellij/FormatterProvider.java
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | 52 | | |
54 | 53 | | |
55 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
92 | | - | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
0 commit comments