This commit is contained in:
fullwall 2012-05-27 16:32:11 +08:00
parent 10543438bd
commit 0302da1513

View File

@ -93,7 +93,7 @@ public class Settings {
@SuppressWarnings("unchecked")
public List<String> asList() {
return (List<String>) value;
return value instanceof List<String> ? (List<String>) value : (value = Lists.newArrayList(value));
}
public long asLong() {