In the source code (it seems that it wouldn't both...
# android
d
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;
        }
    }
k
“int” is primitive and can’t have null value