AppletLoader: fix code to compile on java 1.4

This commit is contained in:
kappa1 2010-07-11 13:03:16 +00:00
parent 2769e06be2
commit f5eae9c5ca
1 changed files with 2 additions and 2 deletions

View File

@ -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);