From a65caea3c2d4b8775c46092188863bf920b14ea5 Mon Sep 17 00:00:00 2001 From: Alexander Schwartz Date: Wed, 27 Dec 2023 23:13:02 +0100 Subject: [PATCH] Fix Sentry reporting --- CHANGELOG.adoc | 4 ++++ .../asciidoc/intellij/errorHandler/SentryErrorReporter.java | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index b85d4ce80..3fd879fef 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -7,6 +7,10 @@ This document provides a high-level view of the changes introduced by release. [[releasenotes]] == Release notes +=== 0.40.9 + +- Fix Sentry reporting + === 0.40.8 - Add language support for C# which is known as `csharp` by highlight.js (#1474) diff --git a/src/main/java/org/asciidoc/intellij/errorHandler/SentryErrorReporter.java b/src/main/java/org/asciidoc/intellij/errorHandler/SentryErrorReporter.java index 64fdd451c..cfef25cd0 100644 --- a/src/main/java/org/asciidoc/intellij/errorHandler/SentryErrorReporter.java +++ b/src/main/java/org/asciidoc/intellij/errorHandler/SentryErrorReporter.java @@ -7,7 +7,6 @@ import com.intellij.notification.NotificationType; import com.intellij.notification.Notifications; import com.intellij.openapi.application.ApplicationInfo; -import com.intellij.openapi.application.impl.ApplicationInfoImpl; import com.intellij.openapi.diagnostic.Attachment; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.diagnostic.SubmittedReportInfo; @@ -96,7 +95,7 @@ public boolean isEnabled(@Nullable SentryLevel level) { os.setName(SystemInfo.OS_NAME); os.setVersion(SystemInfo.OS_VERSION + "-" + SystemInfo.OS_ARCH); - final ApplicationInfoImpl applicationInfo = (ApplicationInfoImpl) ApplicationInfo.getInstance(); + final ApplicationInfo applicationInfo = ApplicationInfo.getInstance(); final SentryRuntime runtime = new SentryRuntime(); runtime.setName(applicationInfo.getBuild().getProductCode());