mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
0715fbde33
commit
5874dddfdd
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user