Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
package com.facebook.react.bridge;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import java.util.ArrayList;

/**
Expand All @@ -27,13 +26,13 @@ public interface ReadableArray {

int getInt(int index);

@Nullable
@NonNull
String getString(int index);

@Nullable
@NonNull
ReadableArray getArray(int index);

@Nullable
@NonNull
ReadableMap getMap(int index);

@NonNull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,17 @@ public int getInt(int index) {
}

@Override
public @Nullable String getString(int index) {
public @NonNull String getString(int index) {
return (String) getLocalArray()[index];
}

@Override
public @Nullable ReadableNativeArray getArray(int index) {
public @NonNull ReadableNativeArray getArray(int index) {
return (ReadableNativeArray) getLocalArray()[index];
}

@Override
public @Nullable ReadableNativeMap getMap(int index) {
public @NonNull ReadableNativeMap getMap(int index) {
return (ReadableNativeMap) getLocalArray()[index];
}

Expand Down