diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md index 3640426729..39604d4e11 100644 --- a/THIRD_PARTY_NOTICES.md +++ b/THIRD_PARTY_NOTICES.md @@ -455,7 +455,7 @@ limitations under the License. ### Scope -The Sentry Java SDK includes an adapted version of the ANR-WatchDog library for Application Not Responding (ANR) detection on Android. The code resides in `io.sentry.vendor.anrwatchdog.ANRWatchDog` and `io.sentry.android.core.ApplicationNotResponding` (adapted from `ANRError`). +The Sentry Java SDK includes an adapted version of the ANR-WatchDog library for Application Not Responding (ANR) detection on Android. The code resides in `io.sentry.vendor.anrwatchdog.ANRWatchDog`. ``` MIT License diff --git a/sentry-android-core/src/main/java/io/sentry/android/core/ApplicationNotResponding.java b/sentry-android-core/src/main/java/io/sentry/android/core/ApplicationNotResponding.java index 18279fbeaf..ab0d11c05f 100644 --- a/sentry-android-core/src/main/java/io/sentry/android/core/ApplicationNotResponding.java +++ b/sentry-android-core/src/main/java/io/sentry/android/core/ApplicationNotResponding.java @@ -1,8 +1,3 @@ -// Adapted from ANR-WatchDog. -// Copyright (c) 2016 Salomon BRYS. -// Licensed under the MIT License. -// https://github.com/SalomonBrys/ANR-WatchDog/blob/1969075f75f5980e9000eaffbaa13b0daf282dcb/anr-watchdog/src/main/java/com/github/anrwatchdog/ANRError.java -// The API unnecessary here was removed. package io.sentry.android.core; import io.sentry.util.Objects; @@ -11,12 +6,8 @@ import org.jetbrains.annotations.Nullable; /** - * Error thrown by ANRWatchDog when an ANR is detected. Contains the stack trace of the frozen UI - * thread. - * - *
It is important to notice that, in an ApplicationNotResponding, all the "Caused by" are not - * really the cause of the exception. Each "Caused by" is the stack trace of a running thread. Note - * that the main thread always comes first. + * Represents an Android application-not-responding condition and carries a snapshot of the + * unresponsive thread's stack trace when available. */ @ApiStatus.Internal public final class ApplicationNotResponding extends RuntimeException {