@@ -61,6 +61,7 @@ final class FormatterProvider {
61
61
private final LoadingCache <FormatterCacheKey , Optional <FormatterService >> implementationCache =
62
62
Caffeine .newBuilder ().maximumSize (1 ).build (FormatterProvider ::createFormatter );
63
63
64
+ @ SuppressWarnings ("for-rollout:deprecation" )
64
65
static IdeaPluginDescriptor getPluginDescriptor () {
65
66
return Preconditions .checkNotNull (
66
67
PluginManager .getPlugin (PluginId .getId (PLUGIN_ID )), "Couldn't find our own plugin: %s" , PLUGIN_ID );
@@ -124,6 +125,7 @@ private static List<Path> getProvidedImplementationUrls(List<URI> implementation
124
125
private static List <Path > getBundledImplementationUrls () {
125
126
// Load from the jars bundled with the plugin.
126
127
IdeaPluginDescriptor ourPlugin = getPluginDescriptor ();
128
+ @ SuppressWarnings ("for-rollout:deprecation" )
127
129
Path implDir = ourPlugin .getPath ().toPath ().resolve ("impl" );
128
130
log .debug ("Using palantir-java-format implementation bundled with plugin: {}" , implDir );
129
131
return listDirAsUrlsUnchecked (implDir );
@@ -172,6 +174,7 @@ private static OptionalInt getSdkVersion(Project project) {
172
174
private static OptionalInt parseSdkJavaVersion (Sdk sdk ) {
173
175
// Parses the actual version out of "SDK#getVersionString" which returns 'java version "15"'
174
176
// or 'openjdk version "15.0.2"'.
177
+ @ SuppressWarnings ("for-rollout:deprecation" )
175
178
String version = Preconditions .checkNotNull (
176
179
JdkUtil .getJdkMainAttribute (sdk , Name .IMPLEMENTATION_VERSION ), "JDK version is null" );
177
180
return parseSdkJavaVersion (version );
0 commit comments