pwittchen / prefser

Wrapper for Android SharedPreferences with object serialization and RxJava Observables
Apache License 2.0
229 stars 26 forks source link

add null-check for key in get method with default value #4

Closed pwittchen closed 9 years ago

pwittchen commented 9 years ago

The following method:

<T> T get(String key, Class classOfT, T defaultValue);

requires null-check for key as follows:

checkNotNull(classOfT, "classOfT == null");

and appropriate Unit Test.