Fix typo in ReadableMapKeySetIterator.
Differential Revision: D2564759 fb-gh-sync-id: 6a57fb71d4da1d467661a3ae786f637172b21e73
This commit is contained in:
parent
f1ab581337
commit
e1b2c84a81
|
@ -12,7 +12,7 @@ package com.facebook.react.bridge;
|
|||
import com.facebook.proguard.annotations.DoNotStrip;
|
||||
|
||||
/**
|
||||
* Exception thrown by {@link ReadableMapKeySeyIterator#nextKey()} when the iterator tries
|
||||
* Exception thrown by {@link ReadableMapKeySetIterator#nextKey()} when the iterator tries
|
||||
* to iterate over elements after the end of the key set.
|
||||
*/
|
||||
@DoNotStrip
|
||||
|
|
|
@ -24,5 +24,5 @@ public interface ReadableMap {
|
|||
ReadableArray getArray(String name);
|
||||
ReadableMap getMap(String name);
|
||||
ReadableType getType(String name);
|
||||
ReadableMapKeySeyIterator keySetIterator();
|
||||
ReadableMapKeySetIterator keySetIterator();
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ import com.facebook.proguard.annotations.DoNotStrip;
|
|||
* Interface of a iterator for a {@link NativeMap}'s key set.
|
||||
*/
|
||||
@DoNotStrip
|
||||
public interface ReadableMapKeySeyIterator {
|
||||
public interface ReadableMapKeySetIterator {
|
||||
|
||||
boolean hasNextKey();
|
||||
String nextKey();
|
|
@ -44,20 +44,20 @@ public class ReadableNativeMap extends NativeMap implements ReadableMap {
|
|||
public native ReadableType getType(String name);
|
||||
|
||||
@Override
|
||||
public ReadableMapKeySeyIterator keySetIterator() {
|
||||
return new ReadableNativeMapKeySeyIterator(this);
|
||||
public ReadableMapKeySetIterator keySetIterator() {
|
||||
return new ReadableNativeMapKeySetIterator(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementation of a {@link ReadableNativeMap} iterator in native memory.
|
||||
*/
|
||||
@DoNotStrip
|
||||
private static class ReadableNativeMapKeySeyIterator extends Countable
|
||||
implements ReadableMapKeySeyIterator {
|
||||
private static class ReadableNativeMapKeySetIterator extends Countable
|
||||
implements ReadableMapKeySetIterator {
|
||||
|
||||
private final ReadableNativeMap mReadableNativeMap;
|
||||
|
||||
public ReadableNativeMapKeySeyIterator(ReadableNativeMap readableNativeMap) {
|
||||
public ReadableNativeMapKeySetIterator(ReadableNativeMap readableNativeMap) {
|
||||
mReadableNativeMap = readableNativeMap;
|
||||
initialize(mReadableNativeMap);
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ import javax.annotation.Nullable;
|
|||
import android.util.SparseBooleanArray;
|
||||
|
||||
import com.facebook.infer.annotation.Assertions;
|
||||
import com.facebook.react.bridge.ReadableMapKeySeyIterator;
|
||||
import com.facebook.react.bridge.ReadableMapKeySetIterator;
|
||||
|
||||
/**
|
||||
* Class responsible for optimizing the native view hierarchy while still respecting the final UI
|
||||
|
@ -417,7 +417,7 @@ public class NativeViewHierarchyOptimizer {
|
|||
return false;
|
||||
}
|
||||
|
||||
ReadableMapKeySeyIterator keyIterator = props.mBackingMap.keySetIterator();
|
||||
ReadableMapKeySetIterator keyIterator = props.mBackingMap.keySetIterator();
|
||||
while (keyIterator.hasNextKey()) {
|
||||
if (!ViewProps.isLayoutOnly(keyIterator.nextKey())) {
|
||||
return false;
|
||||
|
|
|
@ -17,7 +17,7 @@ import java.util.Map;
|
|||
import com.facebook.csslayout.CSSNode;
|
||||
import com.facebook.infer.annotation.Assertions;
|
||||
import com.facebook.react.bridge.ReadableMap;
|
||||
import com.facebook.react.bridge.ReadableMapKeySeyIterator;
|
||||
import com.facebook.react.bridge.ReadableMapKeySetIterator;
|
||||
|
||||
/**
|
||||
* Base node class for representing virtual tree of React nodes. Shadow nodes are used primarily
|
||||
|
@ -166,7 +166,7 @@ public class ReactShadowNode extends CSSNode {
|
|||
Map<String, ViewManagersPropertyCache.PropSetter> propSetters =
|
||||
ViewManagersPropertyCache.getNativePropSettersForShadowNodeClass(getClass());
|
||||
ReadableMap propMap = props.mBackingMap;
|
||||
ReadableMapKeySeyIterator iterator = propMap.keySetIterator();
|
||||
ReadableMapKeySetIterator iterator = propMap.keySetIterator();
|
||||
while (iterator.hasNextKey()) {
|
||||
String key = iterator.nextKey();
|
||||
ViewManagersPropertyCache.PropSetter setter = propSetters.get(key);
|
||||
|
|
|
@ -19,7 +19,7 @@ import android.view.View;
|
|||
|
||||
import com.facebook.react.bridge.ReadableArray;
|
||||
import com.facebook.react.bridge.ReadableMap;
|
||||
import com.facebook.react.bridge.ReadableMapKeySeyIterator;
|
||||
import com.facebook.react.bridge.ReadableMapKeySetIterator;
|
||||
import com.facebook.react.touch.CatalystInterceptingViewGroup;
|
||||
import com.facebook.react.touch.JSResponderHandler;
|
||||
|
||||
|
@ -36,7 +36,7 @@ public abstract class ViewManager<T extends View, C extends ReactShadowNode> {
|
|||
Map<String, ViewManagersPropertyCache.PropSetter> propSetters =
|
||||
ViewManagersPropertyCache.getNativePropSettersForViewManagerClass(getClass());
|
||||
ReadableMap propMap = props.mBackingMap;
|
||||
ReadableMapKeySeyIterator iterator = propMap.keySetIterator();
|
||||
ReadableMapKeySetIterator iterator = propMap.keySetIterator();
|
||||
// TODO(krzysztof): Remove missingSetters code once all views are migrated to @ReactProp
|
||||
boolean missingSetters = false;
|
||||
while (iterator.hasNextKey()) {
|
||||
|
|
Loading…
Reference in New Issue