Remove redundant calls to toString()

This commit is contained in:
Martin Fietz 2018-01-14 18:00:21 +01:00
parent 01fa0a56ea
commit 55e2ac4ebe
1 changed files with 1 additions and 1 deletions

View File

@ -858,7 +858,7 @@ public abstract class NanoHTTPD {
this.tempFileManager = tempFileManager;
this.inputStream = new PushbackInputStream(inputStream, BUFSIZE);
this.outputStream = outputStream;
String remoteIp = inetAddress.isLoopbackAddress() || inetAddress.isAnyLocalAddress() ? "127.0.0.1" : inetAddress.getHostAddress().toString();
String remoteIp = inetAddress.isLoopbackAddress() || inetAddress.isAnyLocalAddress() ? "127.0.0.1" : inetAddress.getHostAddress();
headers = new ArrayMap<>();
headers.put("remote-addr", remoteIp);