/**
* Helper class for interacting with a {@link Configuration}.
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
public class ConfigurationLoader {
if (soneId == null) {
break;
}
- soneFollowingTimes.put(soneId, configuration.getLongValue("SoneFollowingTimes/" + soneCounter++ + "/Time").getValue(Long.MAX_VALUE));
+ soneFollowingTimes.put(soneId, configuration.getLongValue("SoneFollowingTimes/" + soneCounter++ + "/Time").getValue(null));
}
return soneFollowingTimes;
}
}
private Set<String> loadIds(String prefix) {
- Set<String> ids = new HashSet<String>();
+ Set<String> ids = new HashSet<>();
int idCounter = 0;
while (true) {
String id = configuration