From 44a1e46e8baf626f0335faee3036857cd2b0440a Mon Sep 17 00:00:00 2001 From: Alexande B Date: Mon, 22 Jul 2024 16:50:25 +0300 Subject: [PATCH] chore: supress warning about deprecated onReceivedError method --- sdk/src/main/java/com/hcaptcha/sdk/HCaptchaWebViewHelper.java | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/src/main/java/com/hcaptcha/sdk/HCaptchaWebViewHelper.java b/sdk/src/main/java/com/hcaptcha/sdk/HCaptchaWebViewHelper.java index e86b58c..81398af 100644 --- a/sdk/src/main/java/com/hcaptcha/sdk/HCaptchaWebViewHelper.java +++ b/sdk/src/main/java/com/hcaptcha/sdk/HCaptchaWebViewHelper.java @@ -162,6 +162,7 @@ public void onPageFinished(WebView view, String url) { } @Override + @SuppressWarnings("java:S1874") // another onReceivedError with non-deprecated signature requires 23 API level public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) { super.onReceivedError(view, errorCode, description, failingUrl); HCaptchaLog.d("[webview] onReceivedError \"%s\" (%d)", description, errorCode);