import java.net.Socket;
import java.util.HashMap;
public class WhoisIpLookup {
protected static final Logger LOG = LoggerFactory.getLogger(WhoisIpLookup.class);
private static final int PORT = 43;
<BUG>public WhoisIpLookupResult run(String ip) {
</BUG>
return run(InternetRegistry.ARIN, ip);
}
<BUG>public WhoisIpLookupResult run(InternetRegistry registry, String ip) {
</BUG>
WhoisParser parser;

import java.net.Socket;
import java.util.HashMap;
public class WhoisIpLookup {
protected static final Logger LOG = LoggerFactory.getLogger(WhoisIpLookup.class);
private static final int PORT = 43;
public WhoisIpLookupResult run(String ip) throws Exception {
return run(InternetRegistry.ARIN, ip);
}
public WhoisIpLookupResult run(InternetRegistry registry, String ip) throws Exception {
WhoisParser parser;
