Revert D2564759

Differential Revision: D2564818

fb-gh-sync-id: 75e44551fc2c7e22be8096f12c06aa88b72a4508
This commit is contained in:
Hermes Pique 2015-10-21 05:23:30 -07:00 committed by facebook-github-bot-7
parent e1b2c84a81
commit 9960878ba4
7 changed files with 14 additions and 14 deletions

View File

@ -12,7 +12,7 @@ package com.facebook.react.bridge;
import com.facebook.proguard.annotations.DoNotStrip;
/**
* Exception thrown by {@link ReadableMapKeySetIterator#nextKey()} when the iterator tries
* Exception thrown by {@link ReadableMapKeySeyIterator#nextKey()} when the iterator tries
* to iterate over elements after the end of the key set.
*/
@DoNotStrip

View File

@ -24,5 +24,5 @@ public interface ReadableMap {
ReadableArray getArray(String name);
ReadableMap getMap(String name);
ReadableType getType(String name);
ReadableMapKeySetIterator keySetIterator();
ReadableMapKeySeyIterator keySetIterator();
}

View File

@ -15,7 +15,7 @@ import com.facebook.proguard.annotations.DoNotStrip;
* Interface of a iterator for a {@link NativeMap}'s key set.
*/
@DoNotStrip
public interface ReadableMapKeySetIterator {
public interface ReadableMapKeySeyIterator {
boolean hasNextKey();
String nextKey();

View File

@ -44,20 +44,20 @@ public class ReadableNativeMap extends NativeMap implements ReadableMap {
public native ReadableType getType(String name);
@Override
public ReadableMapKeySetIterator keySetIterator() {
return new ReadableNativeMapKeySetIterator(this);
public ReadableMapKeySeyIterator keySetIterator() {
return new ReadableNativeMapKeySeyIterator(this);
}
/**
* Implementation of a {@link ReadableNativeMap} iterator in native memory.
*/
@DoNotStrip
private static class ReadableNativeMapKeySetIterator extends Countable
implements ReadableMapKeySetIterator {
private static class ReadableNativeMapKeySeyIterator extends Countable
implements ReadableMapKeySeyIterator {
private final ReadableNativeMap mReadableNativeMap;
public ReadableNativeMapKeySetIterator(ReadableNativeMap readableNativeMap) {
public ReadableNativeMapKeySeyIterator(ReadableNativeMap readableNativeMap) {
mReadableNativeMap = readableNativeMap;
initialize(mReadableNativeMap);
}

View File

@ -14,7 +14,7 @@ import javax.annotation.Nullable;
import android.util.SparseBooleanArray;
import com.facebook.infer.annotation.Assertions;
import com.facebook.react.bridge.ReadableMapKeySetIterator;
import com.facebook.react.bridge.ReadableMapKeySeyIterator;
/**
* Class responsible for optimizing the native view hierarchy while still respecting the final UI
@ -417,7 +417,7 @@ public class NativeViewHierarchyOptimizer {
return false;
}
ReadableMapKeySetIterator keyIterator = props.mBackingMap.keySetIterator();
ReadableMapKeySeyIterator keyIterator = props.mBackingMap.keySetIterator();
while (keyIterator.hasNextKey()) {
if (!ViewProps.isLayoutOnly(keyIterator.nextKey())) {
return false;

View File

@ -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.ReadableMapKeySetIterator;
import com.facebook.react.bridge.ReadableMapKeySeyIterator;
/**
* 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;
ReadableMapKeySetIterator iterator = propMap.keySetIterator();
ReadableMapKeySeyIterator iterator = propMap.keySetIterator();
while (iterator.hasNextKey()) {
String key = iterator.nextKey();
ViewManagersPropertyCache.PropSetter setter = propSetters.get(key);

View File

@ -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.ReadableMapKeySetIterator;
import com.facebook.react.bridge.ReadableMapKeySeyIterator;
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;
ReadableMapKeySetIterator iterator = propMap.keySetIterator();
ReadableMapKeySeyIterator iterator = propMap.keySetIterator();
// TODO(krzysztof): Remove missingSetters code once all views are migrated to @ReactProp
boolean missingSetters = false;
while (iterator.hasNextKey()) {