Open lftx opened 5 years ago
public String getString(String key, String defValue) { synchronized (this) { awaitLoadedLocked(); String v = (String)mMap.get(key); return v != null ? v : defValue; } }
When judging that the variable v is not empty, need to pay attention to the possibility that it is NULL or space .
public String getString(String key, String defValue) { synchronized (this) { awaitLoadedLocked(); String v = (String)mMap.get(key); return v != null ? v : defValue; } }
When judging that the variable v is not empty, need to pay attention to the possibility that it is NULL or space .