Backed out changeset e562d64f2bf9 (bug 1630229) for lints failure on ServiceAllocator.java CLOSED TREE

This commit is contained in:
Bogdan Tara 2020-05-21 21:47:57 +03:00
parent 645e4e3c37
commit 5e15baf1e4

View File

@ -214,7 +214,11 @@ import java.util.Map.Entry;
protected boolean bindService() {
if (mIsDefunct) {
final String errorMsg = "Attempt to bind a defunct InstanceInfo for " + mType + " child process";
throw new BindException(errorMsg);
if (BuildConfig.DEBUG) {
throw new AssertionError(errorMsg);
} else {
throw new BindException(errorMsg);
}
}
return updateBindings();