AppletLoader: fix code to compile on java 1.4
This commit is contained in:
parent
2769e06be2
commit
f5eae9c5ca
|
@ -1006,7 +1006,7 @@ public class AppletLoader extends Applet implements Runnable, AppletStub {
|
||||||
|
|
||||||
if (cacheEnabled && lastModified != 0 &&
|
if (cacheEnabled && lastModified != 0 &&
|
||||||
filesLastModified.containsKey(fileName)) {
|
filesLastModified.containsKey(fileName)) {
|
||||||
long savedLastModified = (Long)filesLastModified.get(fileName);
|
long savedLastModified = ((Long)filesLastModified.get(fileName)).longValue();
|
||||||
|
|
||||||
// if lastModifed time is the same, don't redownload
|
// if lastModifed time is the same, don't redownload
|
||||||
if (savedLastModified == lastModified) {
|
if (savedLastModified == lastModified) {
|
||||||
|
@ -1019,7 +1019,7 @@ public class AppletLoader extends Applet implements Runnable, AppletStub {
|
||||||
}
|
}
|
||||||
|
|
||||||
// put key and value in the hashmap
|
// put key and value in the hashmap
|
||||||
filesLastModified.put(fileName, lastModified);
|
filesLastModified.put(fileName, new Long(lastModified));
|
||||||
|
|
||||||
// update progress bar
|
// update progress bar
|
||||||
percentage = 5 + (int)(10 * i/(float)urlList.length);
|
percentage = 5 + (int)(10 * i/(float)urlList.length);
|
||||||
|
|
Loading…
Reference in New Issue