mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
No effective change - refactor DefaultContainer from iterator to forEach
This commit is contained in:
@@ -62,9 +62,8 @@ public class DefaultContainer implements SpiContainer {
|
||||
}
|
||||
|
||||
private void invokeBootupPlugin() {
|
||||
Iterator<SpiContainerBootup> it = ServiceLoader.load(SpiContainerBootup.class).iterator();
|
||||
while (it.hasNext()) {
|
||||
it.next().bootup();
|
||||
for (SpiContainerBootup boot : ServiceLoader.load(SpiContainerBootup.class)) {
|
||||
boot.bootup();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user