Fix bug that always caused resource- and app-less properties to be cleared in update().

This commit is contained in:
hns 2005-03-16 16:48:01 +00:00
parent 2127a6738f
commit 301d589fae

View file

@ -37,7 +37,7 @@ public final class ResourceProperties extends Properties {
private boolean ignoreCase = true;
// Cached checksum of last check
private long lastChecksum = -1;
private long lastChecksum = 0;
// Time of last check
private long lastCheck = 0;
@ -137,11 +137,7 @@ public final class ResourceProperties extends Properties {
*/
public boolean needsUpdate() {
lastCheck = System.currentTimeMillis();
if (getChecksum() != lastChecksum) {
return true;
} else {
return false;
}
return (getChecksum() != lastChecksum);
}
/**