Skip to content

Commit d2525af

Browse files
Excavator: Remove calls to deprecated APIs
1 parent dcae2b2 commit d2525af

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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);

palantir-java-format/src/main/java/com/palantir/javaformat/java/JavaInputAstVisitor.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1828,7 +1828,6 @@ boolean visitSingleMemberAnnotation(AnnotationTree node) {
18281828
return true;
18291829
}
18301830

1831-
@SuppressWarnings("for-rollout:deprecation")
18321831
@Override
18331832
public Void visitCase(CaseTree node, Void unused) {
18341833
sync(node);

0 commit comments

Comments
 (0)