Fix bug that always caused resource- and app-less properties to be cleared in update().
This commit is contained in:
parent
2127a6738f
commit
301d589fae
1 changed files with 2 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue