Check for updates in lastModified()
This commit is contained in:
parent
335f351c5c
commit
773ef11ab0
1 changed files with 4 additions and 0 deletions
|
@ -243,6 +243,10 @@ public final class ResourceProperties extends Properties {
|
|||
* @return last modified date
|
||||
*/
|
||||
public long lastModified() {
|
||||
if ((System.currentTimeMillis() - lastCheck) > cacheTime) {
|
||||
update();
|
||||
}
|
||||
|
||||
return lastModified;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue