mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Migrate Nullable and NonNull annotations to AndroidX
Summary: This diff migrates the usages Nullable and NonNull annotations to AndroidX instead of javax. The purpose of this change is to bring consistency in the annotations used by the core of RN Reviewed By: makovkastar Differential Revision: D16054504 fbshipit-source-id: 21d888854da088d2a14615a90d4dc058e5286b91
This commit is contained in:
committed by
Facebook Github Bot
parent
96318e438f
commit
aa5edca0e2
@@ -6,27 +6,27 @@
|
||||
*/
|
||||
package com.facebook.react.bridge;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import javax.annotation.Nullable;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
/** Interface for a mutable map. Used to pass arguments from Java to JS. */
|
||||
public interface WritableMap extends ReadableMap {
|
||||
|
||||
void putNull(@Nonnull String key);
|
||||
void putNull(@NonNull String key);
|
||||
|
||||
void putBoolean(@Nonnull String key, boolean value);
|
||||
void putBoolean(@NonNull String key, boolean value);
|
||||
|
||||
void putDouble(@Nonnull String key, double value);
|
||||
void putDouble(@NonNull String key, double value);
|
||||
|
||||
void putInt(@Nonnull String key, int value);
|
||||
void putInt(@NonNull String key, int value);
|
||||
|
||||
void putString(@Nonnull String key, @Nullable String value);
|
||||
void putString(@NonNull String key, @Nullable String value);
|
||||
|
||||
void putArray(@Nonnull String key, @Nullable ReadableArray value);
|
||||
void putArray(@NonNull String key, @Nullable ReadableArray value);
|
||||
|
||||
void putMap(@Nonnull String key, @Nullable ReadableMap value);
|
||||
void putMap(@NonNull String key, @Nullable ReadableMap value);
|
||||
|
||||
void merge(@Nonnull ReadableMap source);
|
||||
void merge(@NonNull ReadableMap source);
|
||||
|
||||
WritableMap copy();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user