Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ final class FormatterProvider {
private final LoadingCache<FormatterCacheKey, Optional<FormatterService>> implementationCache =
Caffeine.newBuilder().maximumSize(1).build(FormatterProvider::createFormatter);

@SuppressWarnings("for-rollout:deprecation")
static IdeaPluginDescriptor getPluginDescriptor() {
return Preconditions.checkNotNull(
PluginManager.getPlugin(PluginId.getId(PLUGIN_ID)), "Couldn't find our own plugin: %s", PLUGIN_ID);
Expand Down Expand Up @@ -125,7 +124,6 @@ private static List<Path> getProvidedImplementationUrls(List<URI> implementation
private static List<Path> getBundledImplementationUrls() {
// Load from the jars bundled with the plugin.
IdeaPluginDescriptor ourPlugin = getPluginDescriptor();
@SuppressWarnings("for-rollout:deprecation")
Path implDir = ourPlugin.getPath().toPath().resolve("impl");
log.debug("Using palantir-java-format implementation bundled with plugin: {}", implDir);
return listDirAsUrlsUnchecked(implDir);
Expand Down Expand Up @@ -174,7 +172,6 @@ private static OptionalInt getSdkVersion(Project project) {
private static OptionalInt parseSdkJavaVersion(Sdk sdk) {
// Parses the actual version out of "SDK#getVersionString" which returns 'java version "15"'
// or 'openjdk version "15.0.2"'.
@SuppressWarnings("for-rollout:deprecation")
String version = Preconditions.checkNotNull(
JdkUtil.getJdkMainAttribute(sdk, Name.IMPLEMENTATION_VERSION), "JDK version is null");
return parseSdkJavaVersion(version);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1828,7 +1828,6 @@ boolean visitSingleMemberAnnotation(AnnotationTree node) {
return true;
}

@SuppressWarnings("for-rollout:deprecation")
@Override
public Void visitCase(CaseTree node, Void unused) {
sync(node);
Expand Down