In the source code (it seems that it wouldn't bother Android if defValue was null... but why isn't it annotated like getString?):
Copy code
@Override
public int getInt(String key, int defValue) {
synchronized (mLock) {
awaitLoadedLocked();
Integer v = (Integer)mMap.get(key);
return v != null ? v : defValue;
}
}