Unify the way objects of a given type are created in the models

Reviewed By: sblackshear

Differential Revision: D3351930

fbshipit-source-id: 9418a2a
master
Jeremy Dubreil 9 years ago committed by Facebook Github Bot 6
parent a756b7bff2
commit 0a2c47cdd5

@ -30,7 +30,7 @@ public class ContentProviderClient {
ContentResolver contentResolver, IContentProvider contentProvider, boolean stable) { ContentResolver contentResolver, IContentProvider contentProvider, boolean stable) {
mContentResolver = contentResolver; mContentResolver = contentResolver;
mContentProvider = contentProvider; mContentProvider = contentProvider;
mPackageName = InferUndefined.string_undefined(); mPackageName = (String)InferUndefined.object_undefined();
mStable = stable; mStable = stable;
} }

@ -132,7 +132,7 @@ public final class UTF8StreamJsonParser
public String getText() public String getText()
throws IOException, JsonParseException { throws IOException, JsonParseException {
throwExceptions(); throwExceptions();
return InferUndefined.string_undefined(); return (String)InferUndefined.object_undefined();
} }
@Override @Override

@ -15,7 +15,7 @@ public class Object {
public Class getClass() { public Class getClass() {
Class c = new Class(); Class c = new Class();
c.name = InferUndefined.string_undefined(); c.name = (String)InferUndefined.object_undefined();
return c; return c;
} }

@ -45,7 +45,7 @@ public final class System {
if (InferUndefined.boolean_undefined()) { if (InferUndefined.boolean_undefined()) {
return null; return null;
} }
return InferUndefined.string_undefined(); return (String)InferUndefined.object_undefined();
} }
} }

Loading…
Cancel
Save