@@ -0,0 +1,677 @@
+/*-------------------------------------------------------------------------%0A*%0A* Copyright (c) 2012, PostgreSQL Global Development Group%0A*%0A*%0A*-------------------------------------------------------------------------%0A*/%0Apackage org.postgresql.util;%0A%0A/**%0A * Simple container for host and port.%0A */%0Apublic class HostSpec %7B%0A    protected final String host;%0A    protected final int port;%0A%0A    public HostSpec(String host, int port)%0A    %7B%0A        this.host = host;%0A        this.port = port;%0A    %7D%0A%0A    public String getHost() %7B%0A        return host;%0A    %7D%0A%0A    public int getPort() %7B%0A        return port;%0A    %7D%0A%0A    public String toString() %7B%0A        return host + %22:%22 + port;%0A    %7D%0A%7D%0A

Fix performance regression introduced by using InetSocketAddress.getHostName() Patch provided by Scott Harrington, improved upon by Kris Jurka