mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8297682: Use Collections.emptyIterator where applicable
Reviewed-by: stsypanov, alanb, jpai
This commit is contained in:
parent
f36e144923
commit
85f9b37d71
2 changed files with 2 additions and 4 deletions
|
@ -189,8 +189,7 @@ abstract class UnixFileSystem
|
||||||
sm.checkRead(rootDirectory.toString());
|
sm.checkRead(rootDirectory.toString());
|
||||||
return allowedList.iterator();
|
return allowedList.iterator();
|
||||||
} catch (SecurityException x) {
|
} catch (SecurityException x) {
|
||||||
List<Path> disallowed = Collections.emptyList();
|
return Collections.emptyIterator(); //disallowed
|
||||||
return disallowed.iterator();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -383,8 +383,7 @@ public class JavacProcessingEnvironment implements ProcessingEnvironment, Closea
|
||||||
handleException(key, e);
|
handleException(key, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
java.util.List<Processor> pl = Collections.emptyList();
|
return Collections.emptyIterator();
|
||||||
return pl.iterator();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue