From 5f080c5aeb101e74192a375a0392ac3c3d9f4b0a Mon Sep 17 00:00:00 2001 From: Pieter De Baets Date: Tue, 26 May 2026 09:13:45 -0700 Subject: [PATCH] Suppress DEPRECATION warning in NetworkEventUtilTest (#56971) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/56971 The OSS build runs Kotlin with `-Werror`, and the test calls the now-deprecated overload `RequestBody.create(MediaType?, String)`. The file already suppresses `DEPRECATION_ERROR` for the same OkHttp-version skew; extend the existing `Silvochka:Suppress` to also cover the warning-level `DEPRECATION` so the build stops failing. ## Changelog: [Internal] Reviewed By: cortinico Differential Revision: D106364355 fbshipit-source-id: fff61bbc0dec19e4d68b7a3c51262673587d904c --- .../com/facebook/react/modules/network/NetworkEventUtilTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/modules/network/NetworkEventUtilTest.kt b/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/modules/network/NetworkEventUtilTest.kt index 61198122277..1f3cc38b19c 100644 --- a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/modules/network/NetworkEventUtilTest.kt +++ b/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/modules/network/NetworkEventUtilTest.kt @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -@file:Suppress("DEPRECATION_ERROR") // Conflicting okhttp versions +@file:Suppress("DEPRECATION", "DEPRECATION_ERROR") // Conflicting okhttp versions package com.facebook.react.modules.network