Skip to content

Commit 6fb0966

Browse files
author
Stephane Landelle
committed
Target JDK7, use getHostString instead of getHostName, close AsyncHttpClient#672
1 parent 56d4f19 commit 6fb0966

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,13 +262,13 @@
262262
<configuration>
263263
<signature>
264264
<groupId>org.codehaus.mojo.signature</groupId>
265-
<artifactId>java16</artifactId>
265+
<artifactId>java17</artifactId>
266266
<version>1.0</version>
267267
</signature>
268268
</configuration>
269269
<executions>
270270
<execution>
271-
<id>check-java-1.6-compat</id>
271+
<id>check-java-1.7-compat</id>
272272
<phase>process-classes</phase>
273273
<goals>
274274
<goal>check</goal>
@@ -567,8 +567,8 @@
567567
<surefire.redirectTestOutputToFile>true</surefire.redirectTestOutputToFile>
568568
<netty.version>3.9.3.Final</netty.version>
569569
<grizzly.version>2.3.16</grizzly.version>
570-
<maven.compiler.source>1.6</maven.compiler.source>
571-
<maven.compiler.target>1.6</maven.compiler.target>
570+
<maven.compiler.source>1.7</maven.compiler.source>
571+
<maven.compiler.target>1.7</maven.compiler.target>
572572
<surefire.version>2.12</surefire.version>
573573
</properties>
574574
</project>

src/main/java/com/ning/http/client/providers/netty/channel/SslInitializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public SslInitializer(ChannelManager channelManager) {
3838
public void connectRequested(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {
3939

4040
InetSocketAddress remoteInetSocketAddress = (InetSocketAddress) e.getValue();
41-
String peerHost = remoteInetSocketAddress.getHostName();
41+
String peerHost = remoteInetSocketAddress.getHostString();
4242
int peerPort = remoteInetSocketAddress.getPort();
4343

4444
SslHandler sslHandler = channelManager.createSslHandler(peerHost, peerPort);

0 commit comments

Comments
 (0)