Change name to getAllActiveResources for future comprehensibility.

This commit is contained in:
Michael Bayne
2013-01-10 16:39:46 -08:00
parent f4ee206516
commit 431e35d3e2
2 changed files with 6 additions and 5 deletions
@@ -302,9 +302,10 @@ public class Application
}
/**
* Returns a list of all the {@link Resource} objects used by this application.
* Returns a list of all the active {@link Resource} objects used by this application (code and
* non-code).
*/
public List<Resource> getAllResources ()
public List<Resource> getAllActiveResources ()
{
List<Resource> allResources = new ArrayList<Resource>();
allResources.addAll(getActiveCodeResources());
@@ -1208,7 +1209,7 @@ public class Application
ProgressObserver obs, int[] alreadyValid, Set<Resource> unpacked)
throws InterruptedException
{
List<Resource> rsrcs = getAllResources();
List<Resource> rsrcs = getAllActiveResources();
List<Resource> failures = new ArrayList<Resource>();
// total up the file size of the resources to validate
@@ -1301,7 +1302,7 @@ public class Application
*/
public void clearValidationMarkers ()
{
clearValidationMarkers(getAllResources().iterator());
clearValidationMarkers(getAllActiveResources().iterator());
}
/**
@@ -508,7 +508,7 @@ public abstract class Getdown extends Thread
reportTrackingEvent("app_start", -1);
// redownload any that are corrupt or invalid...
log.info(failures.size() + " of " + _app.getAllResources().size() +
log.info(failures.size() + " of " + _app.getAllActiveResources().size() +
" rsrcs require update (" + alreadyValid[0] + " assumed valid).");
setStep(Step.REDOWNLOAD_RESOURCES);
download(failures);