Bug 747779 - Fix raw type Iterator warning in ProfileMigrator.java. r=kats

Using an untyped Iterator causes warnings (and thus, build errors) in Java 7.
This commit is contained in:
Chris Lord 2012-04-30 16:13:26 +01:00
parent 0715fbde33
commit 5874dddfdd

View File

@ -541,9 +541,9 @@ public class ProfileMigrator {
File cacheFile = GeckoAppShell.getCacheDir(mContext); File cacheFile = GeckoAppShell.getCacheDir(mContext);
File[] files = cacheFile.listFiles(); File[] files = cacheFile.listFiles();
if (files != null) { if (files != null) {
Iterator cacheFiles = Arrays.asList(files).iterator(); Iterator<File> cacheFiles = Arrays.asList(files).iterator();
while (cacheFiles.hasNext()) { while (cacheFiles.hasNext()) {
File libFile = (File)cacheFiles.next(); File libFile = cacheFiles.next();
if (libFile.getName().endsWith(".so")) { if (libFile.getName().endsWith(".so")) {
libFile.delete(); libFile.delete();
} }