@@ -61,7 +61,6 @@ final class FormatterProvider {
6161 private final LoadingCache <FormatterCacheKey , Optional <FormatterService >> implementationCache =
6262 Caffeine .newBuilder ().maximumSize (1 ).build (FormatterProvider ::createFormatter );
6363
64- @ SuppressWarnings ("for-rollout:deprecation" )
6564 static IdeaPluginDescriptor getPluginDescriptor () {
6665 return Preconditions .checkNotNull (
6766 PluginManager .getPlugin (PluginId .getId (PLUGIN_ID )), "Couldn't find our own plugin: %s" , PLUGIN_ID );
@@ -125,7 +124,6 @@ private static List<Path> getProvidedImplementationUrls(List<URI> implementation
125124 private static List <Path > getBundledImplementationUrls () {
126125 // Load from the jars bundled with the plugin.
127126 IdeaPluginDescriptor ourPlugin = getPluginDescriptor ();
128- @ SuppressWarnings ("for-rollout:deprecation" )
129127 Path implDir = ourPlugin .getPath ().toPath ().resolve ("impl" );
130128 log .debug ("Using palantir-java-format implementation bundled with plugin: {}" , implDir );
131129 return listDirAsUrlsUnchecked (implDir );
@@ -174,7 +172,6 @@ private static OptionalInt getSdkVersion(Project project) {
174172 private static OptionalInt parseSdkJavaVersion (Sdk sdk ) {
175173 // Parses the actual version out of "SDK#getVersionString" which returns 'java version "15"'
176174 // or 'openjdk version "15.0.2"'.
177- @ SuppressWarnings ("for-rollout:deprecation" )
178175 String version = Preconditions .checkNotNull (
179176 JdkUtil .getJdkMainAttribute (sdk , Name .IMPLEMENTATION_VERSION ), "JDK version is null" );
180177 return parseSdkJavaVersion (version );
0 commit comments