Make JSCConfig non-nullable

Reviewed By: andreicoman11

Differential Revision: D3463317

fbshipit-source-id: feeda132cd596317ca45b083d69ae8df3ffbd6f0
This commit is contained in:
Alexander Blom
2016-06-22 04:06:25 -07:00
committed by Facebook Github Bot 1
parent 523d39ad92
commit e54ff3d03f
3 changed files with 14 additions and 9 deletions

View File

@@ -8,5 +8,12 @@ import com.facebook.react.bridge.WritableNativeMap;
* Interface for the configuration object that is passed to JSC.
*/
public interface JSCConfig {
public WritableNativeMap getConfigMap();
JSCConfig EMPTY = new JSCConfig() {
@Override
public WritableNativeMap getConfigMap() {
return new WritableNativeMap();
}
};
WritableNativeMap getConfigMap();
}