This commit is contained in:
Leijurv 2018-08-14 15:24:23 -07:00
parent 72f7c564a1
commit 92b3ac93d0
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -55,6 +55,9 @@ public class Settings {
private final Class<T> klass;
private Setting(T value) {
if (value == null) {
throw new IllegalArgumentException("Cannot determine value type class from null");
}
this.value = value;
this.klass = (Class<T>) value.getClass();
}