Skip to content

Commit 0cadb8c

Browse files
kdwkrmeta-codesync[bot]
authored andcommitted
Suppress DEPRECATION warnings for checking scaledDensity on some tests (#54278)
Summary: Suppress DEPRECATION warnings for checking scaledDensity on some tests. ## Changelog: [Internal] Suppress DEPRECATION warnings for checking scaledDensity on some tests. Pull Request resolved: #54278 Test Plan: none Reviewed By: cipolleschi, fabriziocucci Differential Revision: D85554602 Pulled By: javache fbshipit-source-id: 26a8e6a4c658581dbf17358f7b1a791513fb1933
1 parent 59affc3 commit 0cadb8c

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

packages/react-native/ReactAndroid/src/test/java/com/facebook/react/uimanager/DisplayMetricsHolderTest.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8+
// Suppress deprecation warnings for checking scaledDensity
9+
@file:Suppress("DEPRECATION")
10+
811
package com.facebook.react.uimanager
912

1013
import android.annotation.TargetApi

packages/react-native/ReactAndroid/src/test/java/com/facebook/react/uimanager/PixelUtilTest.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8+
// Suppress deprecation warnings for checking scaledDensity
9+
@file:Suppress("DEPRECATION")
10+
811
package com.facebook.react.uimanager
912

1013
import android.content.Context

0 commit comments

Comments
 (0)