Skip to content

Commit 5f080c5

Browse files
javachemeta-codesync[bot]
authored andcommitted
Suppress DEPRECATION warning in NetworkEventUtilTest (#56971)
Summary: Pull Request resolved: #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
1 parent 4d36e57 commit 5f080c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react-native/ReactAndroid/src/test/java/com/facebook/react/modules/network/NetworkEventUtilTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
@file:Suppress("DEPRECATION_ERROR") // Conflicting okhttp versions
8+
@file:Suppress("DEPRECATION", "DEPRECATION_ERROR") // Conflicting okhttp versions
99

1010
package com.facebook.react.modules.network
1111

0 commit comments

Comments
 (0)