Skip to content

Commit

Permalink
Modernization of pre Java 6 code
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Jan 17, 2018
1 parent 79aeb2c commit 844ea8e
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
import org.openqa.selenium.remote.server.SeleniumServer;
import org.openqa.selenium.support.ui.FluentWait;

import java.util.Iterator;
import java.util.concurrent.Callable;

public class DefaultProxyIsUnregisteredIfDownForTooLongTest {
Expand Down Expand Up @@ -115,9 +114,8 @@ public Boolean call() throws Exception {

private String getProxyId() throws Exception {
RemoteProxy p = null;
Iterator<RemoteProxy> it = registry.getAllProxies().iterator();
while(it.hasNext()) {
p = it.next();
for (RemoteProxy remoteProxy : registry.getAllProxies()) {
p = remoteProxy;
}
if (p == null) {
throw new Exception("Unable to find registered proxy at hub");
Expand Down

0 comments on commit 844ea8e

Please sign in to comment.